diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-09-19 17:30:38 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-09-19 17:30:38 +0000 |
commit | 4bde23948cac7627031c6a12ac9aeb6ce6746e42 (patch) | |
tree | 3a5b4a72999d02560b489d4160ad91491e315b74 /cpukit/libnetworking/rtems | |
parent | 2001-09-19 Chris Johns <ccj@acm.org> (diff) | |
download | rtems-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')
-rw-r--r-- | cpukit/libnetworking/rtems/rtems_bootp.c | 14 | ||||
-rw-r--r-- | cpukit/libnetworking/rtems/rtems_bsdnet.h | 2 | ||||
-rw-r--r-- | cpukit/libnetworking/rtems/rtems_bsdnet_internal.h | 2 |
3 files changed, 16 insertions, 2 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 (); } diff --git a/cpukit/libnetworking/rtems/rtems_bsdnet.h b/cpukit/libnetworking/rtems/rtems_bsdnet.h index 7838835f0f..6c60ce1abe 100644 --- a/cpukit/libnetworking/rtems/rtems_bsdnet.h +++ b/cpukit/libnetworking/rtems/rtems_bsdnet.h @@ -170,6 +170,8 @@ void rtems_bsdnet_detach (struct rtems_bsdnet_ifconfig *ifconfig); int rtems_bsdnet_ifconfig (const char *ifname, unsigned32 cmd, void *param); void rtems_bsdnet_do_bootp (void); +void rtems_bsdnet_do_bootp_and_rootfs (void); + int rtems_bsdnet_synchronize_ntp (int interval, rtems_task_priority priority); #endif /* _RTEMS_BSDNET_ */ diff --git a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h index f95f1a1640..4b8c4fa652 100644 --- a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h +++ b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h @@ -175,7 +175,7 @@ void domaininit (void *); void ifinit (void *); void ipintr (void); void arpintr (void); -void bootpc_init(void); +void bootpc_init(int ); int socket (int, int, int); int ioctl (int, int, ...); |