|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
19 #ifndef included_dhcp_client_h
20 #define included_dhcp_client_h
25 #define foreach_dhcp_client_state \
156 #define EVENT_DHCP_CLIENT_WAKEUP 1
dhcp_event_cb_t event_callback
enum ip_dscp_t_ ip_dscp_t
u8 client_detect_feature_enabled
u32 lease_renewal_interval
struct dhcp_client_t_ dhcp_client_t
uword * client_by_sw_if_index
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
struct dhcp_client_fwd_addresses_t_ dhcp_client_fwd_addresses_t
The set of addresses/mask that contribute forwarding info and are installed.
dhcp_client_fwd_addresses_t installed
void dhcp_client_walk(dhcp_client_walk_cb_t cb, void *ctx)
Walk (visit each) DHCP client configuration.
#define foreach_dhcp_client_state
ip4_address_t * domain_server_address
dhcp_event_cb_t event_callback
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.
dhcp_client_fwd_addresses_t learned
leased address, other learned info DHCP the learned set is updated by new messages recieved in the DP...
dhcp_client_state_t state
ip4_address_t dhcp_server
the address of the DHCP server handing out the address.
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.
dhcp_client_main_t dhcp_client_main
u8 client_hardware_address[6]
ip4_address_t router_address
The address of this client's default gateway - may not be present.
ip4_address_t leased_address
the address assigned to this client and it's mask
int(* dhcp_client_walk_cb_t)(const dhcp_client_t *client, void *data)
callback function for clients walking the DHCP client configurations
u32 adj_index_t
An index for adjacencies.
u32 ip4_lookup_node_index
vl_api_interface_index_t sw_if_index
VLIB buffer representation.
The set of addresses/mask that contribute forwarding info and are installed.