#include #ifdef HAVE_CONFIG_H #include "config.h" #endif #include #include #include #include #include #include "rtems/bootp.h" /* * Perform a BOOTP request */ void rtems_bsdnet_do_bootp (void) { bool ok; rtems_bsdnet_semaphore_obtain (); ok = bootpc_init (false, true); rtems_bsdnet_semaphore_release (); if (!ok) panic ("rtems_bsdnet_do_bootp: bootp failed"); } /* * Perform a BOOTP request and update "standard" files in /etc * with the results. */ void rtems_bsdnet_do_bootp_and_rootfs (void) { bool ok; rtems_bsdnet_semaphore_obtain (); ok = bootpc_init (true, true); rtems_bsdnet_semaphore_release (); if (!ok) panic ("rtems_bsdnet_do_bootp_and_rootfs: bootp failed"); }