RTEMS CPU Kit with SuperCore  4.11.3
Functions
rtems_dhcp_failsafe.c File Reference
#include <rtems.h>
#include <rtems/error.h>
#include <rtems/rtems_bsdnet.h>
#include <rtems/rtems_bsdnet_internal.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <rtems/dhcp.h>
#include <rtems/rtems_dhcp_failsafe.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <net/route.h>
#include <netinet/in.h>
#include <net/if.h>
#include <net/if_var.h>
#include <netinet/in_var.h>
#include <sys/sockio.h>
#include <arpa/inet.h>
Include dependency graph for rtems_dhcp_failsafe.c:

Functions

void rtems_bsdnet_dhcp_failsafe_config (int network_fail_timeout_, int network_down_time_, int broadcast_delay_, int dhcp_monitor_priority_)
 Set the DHCP fallback options. More...
 
void rtems_bsdnet_do_dhcp_failsafe (void)
 

Function Documentation

◆ rtems_bsdnet_dhcp_failsafe_config()

void rtems_bsdnet_dhcp_failsafe_config ( int  network_fail_timeout,
int  network_down_time,
int  broadcast_delay,
int  dhcp_monitor_priority 
)

Set the DHCP fallback options.

See the commentary at the top of the implementation.

Note
Some of these options can be compile-time disabled - see the code.
Parameters
network_fail_timeout_The number of seconds before the interface is considered disconnected
network_down_time_The number of seconds the interface remains down.
broadcast_delay_The delay in seconds before broadcasts are sent.
dhcp_monitor_priority_The monitor priority.