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, 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...
|
|
#define EVENT_DHCP_CLIENT_WAKEUP 1 |
#define foreach_dhcp_client_state |
Value:_(DHCP_DISCOVER) \
_(DHCP_REQUEST) \
_(DHCP_BOUND)
Definition at line 25 of file client.h.
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 151 of file client.h.
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.
Enumerator |
---|
foreach_dhcp_client_state |
|
Definition at line 30 of file client.h.
Add/Delete DHCP clients.
Definition at line 976 of file client.c.
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 1062 of file client.c.