Go to the source code of this file.
|
int | dhcp_client_for_us (u32 bi0, vlib_buffer_t *b0, ip4_header_t *ip0, udp_header_t *u0, dhcp_header_t *dh0) |
|
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. More...
|
|
void | dhcp_client_walk (dhcp_client_walk_cb_t cb, void *ctx) |
| Walk (visit each) DHCP client configuration. More...
|
|
◆ EVENT_DHCP_CLIENT_WAKEUP
#define EVENT_DHCP_CLIENT_WAKEUP 1 |
◆ foreach_dhcp_client_state
#define foreach_dhcp_client_state |
Value:_(DHCP_DISCOVER) \
_(DHCP_REQUEST) \
_(DHCP_BOUND)
Definition at line 25 of file client.h.
◆ dhcp_client_fwd_addresses_t
The set of addresses/mask that contribute forwarding info and are installed.
◆ dhcp_client_t
◆ dhcp_client_walk_cb_t
callback function for clients walking the DHCP client configurations
- Parameters
-
client | The client being visitsed |
data | The data passed during the call to 'walk' |
- Returns
- !0 to continue walking 0 to stop.
Definition at line 183 of file client.h.
◆ dhcp_event_cb_t
typedef void(* dhcp_event_cb_t) (u32 client_index, const struct dhcp_client_t_ *client) |
Callback function for DHCP complete events.
Definition at line 42 of file client.h.
◆ dhcp_client_state_t
Enumerator |
---|
foreach_dhcp_client_state | |
Definition at line 30 of file client.h.
◆ dhcp_client_config()
Add/Delete DHCP clients.
Definition at line 1031 of file client.c.
◆ dhcp_client_for_us()
◆ dhcp_client_walk()
Walk (visit each) DHCP client configuration.
- Parameters
-
cb | The callback function invoked as each client is visited |
ctx | Context data passed back to the client in the invocation of the callback. |
Definition at line 1116 of file client.c.
◆ dhcp_client_main