diff options
Diffstat (limited to 'c/src/exec/libnetworking/rtems')
-rw-r--r-- | c/src/exec/libnetworking/rtems/rtems_bootp.c | 14 | ||||
-rw-r--r-- | c/src/exec/libnetworking/rtems/rtems_bsdnet.h | 2 | ||||
-rw-r--r-- | c/src/exec/libnetworking/rtems/rtems_bsdnet_internal.h | 2 |
3 files changed, 16 insertions, 2 deletions
diff --git a/c/src/exec/libnetworking/rtems/rtems_bootp.c b/c/src/exec/libnetworking/rtems/rtems_bootp.c index 47e3db758f..76bb79170e 100644 --- a/c/src/exec/libnetworking/rtems/rtems_bootp.c +++ b/c/src/exec/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/c/src/exec/libnetworking/rtems/rtems_bsdnet.h b/c/src/exec/libnetworking/rtems/rtems_bsdnet.h index 7838835f0f..6c60ce1abe 100644 --- a/c/src/exec/libnetworking/rtems/rtems_bsdnet.h +++ b/c/src/exec/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/c/src/exec/libnetworking/rtems/rtems_bsdnet_internal.h b/c/src/exec/libnetworking/rtems/rtems_bsdnet_internal.h index f95f1a1640..4b8c4fa652 100644 --- a/c/src/exec/libnetworking/rtems/rtems_bsdnet_internal.h +++ b/c/src/exec/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, ...); |