summaryrefslogtreecommitdiffstats
path: root/c/src/libnetworking/rtems/rtems_bootp.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/libnetworking/rtems/rtems_bootp.c')
-rw-r--r--c/src/libnetworking/rtems/rtems_bootp.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/c/src/libnetworking/rtems/rtems_bootp.c b/c/src/libnetworking/rtems/rtems_bootp.c
new file mode 100644
index 0000000000..c3bb8d7ad4
--- /dev/null
+++ b/c/src/libnetworking/rtems/rtems_bootp.c
@@ -0,0 +1,15 @@
+#include <rtems.h>
+#include <rtems/error.h>
+#include <sys/types.h>
+#include <rtems/rtems_bsdnet.h>
+
+/*
+ * Perform a BOOTP request
+ */
+void
+rtems_bsdnet_do_bootp (void)
+{
+ rtems_bsdnet_semaphore_obtain ();
+ bootpc_init ();
+ rtems_bsdnet_semaphore_release ();
+}