FD.io VPP  v19.04-6-g6f05f72
Vector Packet Processing
dhcp_api.c File Reference
+ Include dependency graph for dhcp_api.c:

Go to the source code of this file.

Data Structures

struct  dhcp_client_send_walk_ctx_t_
 

Macros

#define vl_typedefs   /* define message structures */
 
#define vl_endianfun   /* define message structures */
 
#define vl_print(handle, ...)   vlib_cli_output (handle, __VA_ARGS__)
 
#define vl_printfun
 
#define foreach_vpe_api_msg
 
#define vl_msg_name_crc_list
 

Typedefs

typedef struct dhcp_client_send_walk_ctx_t_ dhcp_client_send_walk_ctx_t
 

Functions

static void vl_api_dhcp_proxy_set_vss_t_handler (vl_api_dhcp_proxy_set_vss_t *mp)
 
static void vl_api_dhcp_proxy_config_t_handler (vl_api_dhcp_proxy_config_t *mp)
 
static void vl_api_dhcp_proxy_dump_t_handler (vl_api_dhcp_proxy_dump_t *mp)
 
void dhcp_send_details (fib_protocol_t proto, void *opaque, u32 context, dhcp_proxy_t *proxy)
 Send the details of a proxy session to the API client during a dump. More...
 
static void dhcp_client_lease_encode (vl_api_dhcp_lease_t *lease, const dhcp_client_t *client)
 
static void dhcp_client_data_encode (vl_api_dhcp_client_t *vclient, const dhcp_client_t *client)
 
static void dhcp_compl_event_callback (u32 client_index, const dhcp_client_t *client)
 
static void vl_api_dhcp_client_config_t_handler (vl_api_dhcp_client_config_t *mp)
 
static int send_dhcp_client_entry (const dhcp_client_t *client, void *arg)
 
static void vl_api_dhcp_client_dump_t_handler (vl_api_dhcp_client_dump_t *mp)
 
static void setup_message_id_table (api_main_t *am)
 
static clib_error_tdhcp_api_hookup (vlib_main_t *vm)
 
 VLIB_API_INIT_FUNCTION (dhcp_api_hookup)
 

Macro Definition Documentation

#define foreach_vpe_api_msg
Value:
_(DHCP_PROXY_CONFIG,dhcp_proxy_config) \
_(DHCP_PROXY_DUMP,dhcp_proxy_dump) \
_(DHCP_PROXY_SET_VSS,dhcp_proxy_set_vss) \
_(DHCP_CLIENT_CONFIG, dhcp_client_config) \
_(DHCP_CLIENT_DUMP, dhcp_client_dump) \
_(WANT_DHCP6_PD_REPLY_EVENTS, want_dhcp6_pd_reply_events) \
_(DHCP6_PD_SEND_CLIENT_MESSAGE, dhcp6_pd_send_client_message) \
_(WANT_DHCP6_REPLY_EVENTS, want_dhcp6_reply_events) \
_(DHCP6_SEND_CLIENT_MESSAGE, dhcp6_send_client_message) \
_(DHCP6_CLIENTS_ENABLE_DISABLE, dhcp6_clients_enable_disable) \
_(DHCP6_DUID_LL_SET, dhcp6_duid_ll_set)
void dhcp6_pd_send_client_message(vlib_main_t *vm, u32 sw_if_index, u8 stop, dhcp6_pd_send_client_message_params_t *params)
void dhcp_proxy_dump(fib_protocol_t proto, void *opaque, u32 context)
Dump the proxy configs to the API.
Definition: dhcp_proxy.c:248
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.
Definition: client.c:976
int dhcp_proxy_set_vss(fib_protocol_t proto, u32 tbl_id, u8 vss_type, u8 *vpn_ascii_id, u32 oui, u32 vpn_index, u8 is_del)
Configure/set a new VSS info.
Definition: dhcp_proxy.c:309
void dhcp6_send_client_message(vlib_main_t *vm, u32 sw_if_index, u8 stop, dhcp6_send_client_message_params_t *params)
void dhcp6_clients_enable_disable(u8 enable)

Definition at line 50 of file dhcp_api.c.

#define vl_endianfun   /* define message structures */

Definition at line 38 of file dhcp_api.c.

#define vl_msg_name_crc_list

Definition at line 363 of file dhcp_api.c.

#define vl_print (   handle,
  ... 
)    vlib_cli_output (handle, __VA_ARGS__)

Definition at line 43 of file dhcp_api.c.

#define vl_printfun

Definition at line 44 of file dhcp_api.c.

#define vl_typedefs   /* define message structures */

Definition at line 34 of file dhcp_api.c.

Typedef Documentation

Function Documentation

static clib_error_t* dhcp_api_hookup ( vlib_main_t vm)
static

Definition at line 376 of file dhcp_api.c.

+ Here is the call graph for this function:

static void dhcp_client_data_encode ( vl_api_dhcp_client_t vclient,
const dhcp_client_t client 
)
static

Definition at line 238 of file dhcp_api.c.

+ Here is the caller graph for this function:

static void dhcp_client_lease_encode ( vl_api_dhcp_lease_t lease,
const dhcp_client_t client 
)
static

Definition at line 217 of file dhcp_api.c.

+ Here is the caller graph for this function:

static void dhcp_compl_event_callback ( u32  client_index,
const dhcp_client_t client 
)
static

Definition at line 262 of file dhcp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void dhcp_send_details ( fib_protocol_t  proto,
void *  opaque,
u32  context,
dhcp_proxy_t proxy 
)

Send the details of a proxy session to the API client during a dump.

Definition at line 134 of file dhcp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int send_dhcp_client_entry ( const dhcp_client_t client,
void *  arg 
)
static

Definition at line 319 of file dhcp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void setup_message_id_table ( api_main_t am)
static

Definition at line 368 of file dhcp_api.c.

+ Here is the caller graph for this function:

static void vl_api_dhcp_client_config_t_handler ( vl_api_dhcp_client_config_t mp)
static

Definition at line 282 of file dhcp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_dhcp_client_dump_t_handler ( vl_api_dhcp_client_dump_t mp)
static

Definition at line 341 of file dhcp_api.c.

+ Here is the call graph for this function:

static void vl_api_dhcp_proxy_config_t_handler ( vl_api_dhcp_proxy_config_t mp)
static

Definition at line 84 of file dhcp_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void vl_api_dhcp_proxy_dump_t_handler ( vl_api_dhcp_proxy_dump_t mp)
static

Definition at line 121 of file dhcp_api.c.

+ Here is the call graph for this function:

static void vl_api_dhcp_proxy_set_vss_t_handler ( vl_api_dhcp_proxy_set_vss_t mp)
static

Definition at line 65 of file dhcp_api.c.

+ Here is the call graph for this function:

VLIB_API_INIT_FUNCTION ( dhcp_api_hookup  )

+ Here is the caller graph for this function: