19 #ifndef included_dhcp_client_h 20 #define included_dhcp_client_h 25 #define foreach_dhcp_client_state \ 132 #define EVENT_DHCP_CLIENT_WAKEUP 1
u8 client_detect_feature_enabled
dhcp_client_main_t dhcp_client_main
dhcp_event_cb_t event_callback
dhcp_client_state_t state
u32 lease_renewal_interval
dhcp_event_cb_t event_callback
#define foreach_dhcp_client_state
ip4_address_t leased_address
struct dhcp_client_t_ dhcp_client_t
int dhcp_client_for_us(u32 bi0, vlib_buffer_t *b0, ip4_header_t *ip0, udp_header_t *u0, dhcp_header_t *dh0)
void(* dhcp_event_cb_t)(u32 client_index, const struct dhcp_client_t_ *client)
Callback function for DHCP complete events.
u8 client_hardware_address[6]
ip4_address_t * domain_server_address
u32 adj_index_t
An index for adjacencies.
void dhcp_client_walk(dhcp_client_walk_cb_t cb, void *ctx)
Walk (visit each) DHCP client configuration.
enum ip_dscp_t_ ip_dscp_t
int dhcp_client_config(u32 is_add, u32 client_index, vlib_main_t *vm, u32 sw_if_index, u8 *hostname, u8 *client_id, dhcp_event_cb_t event_callback, u8 set_broadcast_flag, ip_dscp_t dscp, u32 pid)
Add/Delete DHCP clients.
ip4_address_t router_address
int(* dhcp_client_walk_cb_t)(const dhcp_client_t *client, void *data)
callback function for clients walking the DHCP client configurations
VLIB buffer representation.
uword * client_by_sw_if_index
ip4_address_t dhcp_server