#include <libdhcp.h>
Data Fields | |
| LIBDHCP_Callback | callback |
| uint16_t | capability |
| uint8_t | finished |
| uint8_t | decline |
| time_t | timeout |
| time_t | now |
| void * | arg |
| LIBDHCP_Error_Handler | eh |
| uint8_t | log_level |
The libdhcp DHCP client control structure. Each client is called with a pointer to this structure as the first argument to its main dhcp*_client function. This structure specifies what the client is allowed to do and how it will communicate state changes to the calling code.
Definition at line 86 of file libdhcp.h.
| void* libdhcp_control_s::arg |
user data pointer
Definition at line 96 of file libdhcp.h.
Referenced by dhcp6_nic_callback(), dhcp6_nic_from_lease(), do_dhcpv6(), and libdhcp_control_new().
the DHCP clients' main loop calls this on state changes
Definition at line 90 of file libdhcp.h.
Referenced by libdhcp_control_new().
| uint16_t libdhcp_control_s::capability |
LIBDHCP_Capability bits to enable
Definition at line 91 of file libdhcp.h.
Referenced by libdhcp_control_new().
| uint8_t libdhcp_control_s::decline |
The logger / error hander callback
Definition at line 97 of file libdhcp.h.
Referenced by libdhcp_control_new().
| uint8_t libdhcp_control_s::finished |
| uint8_t libdhcp_control_s::log_level |
maximum log level (LOG_FATAL excluded)
Definition at line 99 of file libdhcp.h.
Referenced by libdhcp_control_new(), libdhcp_stderr_logger(), and libdhcp_syslogger().
| time_t libdhcp_control_s::now |
| time_t libdhcp_control_s::timeout |
(timeout+now) == time after which clients MUST return
Definition at line 94 of file libdhcp.h.
Referenced by libdhcp_control_new().
1.4.7