19 #ifndef included_dhcp_client_h 20 #define included_dhcp_client_h 25 #define foreach_dhcp_client_state \ 108 u8 client_hardware_address[6];
156 #define EVENT_DHCP_CLIENT_WAKEUP 1
u8 client_detect_feature_enabled
dhcp_client_main_t dhcp_client_main
struct dhcp_client_fwd_addresses_t_ dhcp_client_fwd_addresses_t
The set of addresses/mask that contribute forwarding info and are installed.
ip4_address_t router_address
The address of this client's default gateway - may not be present.
dhcp_client_fwd_addresses_t installed
dhcp_event_cb_t event_callback
dhcp_client_state_t state
ip4_address_t dhcp_server
the address of the DHCP server handing out the address.
u32 lease_renewal_interval
u32 ip4_lookup_node_index
dhcp_event_cb_t event_callback
#define foreach_dhcp_client_state
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)
ip4_address_t leased_address
the address assigned to this client and it's mask
void(* dhcp_event_cb_t)(u32 client_index, const struct dhcp_client_t_ *client)
Callback function for DHCP complete events.
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.
The set of addresses/mask that contribute forwarding info and are installed.
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.
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
dhcp_client_fwd_addresses_t learned
leased address, other learned info DHCP the learned set is updated by new messages recieved in the DP...
vl_api_interface_index_t sw_if_index