summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/rtems/rtems_bootp.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-09-19 17:30:38 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-09-19 17:30:38 +0000
commit4bde23948cac7627031c6a12ac9aeb6ce6746e42 (patch)
tree3a5b4a72999d02560b489d4160ad91491e315b74 /cpukit/libnetworking/rtems/rtems_bootp.c
parent2001-09-19 Chris Johns <ccj@acm.org> (diff)
downloadrtems-4bde23948cac7627031c6a12ac9aeb6ce6746e42.tar.bz2
2001-09-19 Chris Johns <ccj@acm.org>
* nfs/bootp_subr.c, rtems/rtems_bootp.c, rtems/rtems_bsdnet.h, rtems/rtems_bsdnet_internal.h Added support for populating the initial "root" filesystem with information obtained via the DHCP response.
Diffstat (limited to 'cpukit/libnetworking/rtems/rtems_bootp.c')
-rw-r--r--cpukit/libnetworking/rtems/rtems_bootp.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_bootp.c b/cpukit/libnetworking/rtems/rtems_bootp.c
index 47e3db758f..76bb79170e 100644
--- a/cpukit/libnetworking/rtems/rtems_bootp.c
+++ b/cpukit/libnetworking/rtems/rtems_bootp.c
@@ -14,6 +14,18 @@ void
rtems_bsdnet_do_bootp (void)
{
rtems_bsdnet_semaphore_obtain ();
- bootpc_init ();
+ bootpc_init (FALSE);
+ rtems_bsdnet_semaphore_release ();
+}
+
+/*
+ * Perform a BOOTP request and update "standard" files in /etc
+ * with the results.
+ */
+void
+rtems_bsdnet_do_bootp_and_rootfs (void)
+{
+ rtems_bsdnet_semaphore_obtain ();
+ bootpc_init (TRUE);
rtems_bsdnet_semaphore_release ();
}