4.104.114.84.95
Line | |
---|
1 | /* |
---|
2 | * $Id$ |
---|
3 | */ |
---|
4 | |
---|
5 | #if HAVE_CONFIG_H |
---|
6 | #include "config.h" |
---|
7 | #endif |
---|
8 | |
---|
9 | #include <rtems.h> |
---|
10 | #include <rtems/error.h> |
---|
11 | #include <sys/types.h> |
---|
12 | #include <rtems/rtems_bsdnet.h> |
---|
13 | #include <rtems/rtems_bsdnet_internal.h> |
---|
14 | |
---|
15 | /* |
---|
16 | * Perform a BOOTP request |
---|
17 | */ |
---|
18 | void |
---|
19 | rtems_bsdnet_do_bootp (void) |
---|
20 | { |
---|
21 | rtems_bsdnet_semaphore_obtain (); |
---|
22 | bootpc_init (FALSE); |
---|
23 | rtems_bsdnet_semaphore_release (); |
---|
24 | } |
---|
25 | |
---|
26 | /* |
---|
27 | * Perform a BOOTP request and update "standard" files in /etc |
---|
28 | * with the results. |
---|
29 | */ |
---|
30 | void |
---|
31 | rtems_bsdnet_do_bootp_and_rootfs (void) |
---|
32 | { |
---|
33 | rtems_bsdnet_semaphore_obtain (); |
---|
34 | bootpc_init (TRUE); |
---|
35 | rtems_bsdnet_semaphore_release (); |
---|
36 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.