FD.io VPP  v18.04-17-g3a0d853
Vector Packet Processing
dhcp_api.c File Reference
+ Include dependency graph for dhcp_api.c:

Go to the source code of this file.

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
 

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...
 
void dhcp_compl_event_callback (u32 client_index, u32 pid, u8 *hostname, u8 mask_width, u8 is_ipv6, u8 *host_address, u8 *router_address, u8 *host_mac)
 
static void vl_api_dhcp_client_config_t_handler (vl_api_dhcp_client_config_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)
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(vlib_main_t *vm, u32 sw_if_index, u8 *hostname, u8 *client_id, u32 is_add, u32 client_index, void *event_callback, u8 set_broadcast_flag, u32 pid)
Definition: client.c:964
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

Definition at line 47 of file dhcp_api.c.

#define vl_endianfun   /* define message structures */

Definition at line 35 of file dhcp_api.c.

#define vl_msg_name_crc_list

Definition at line 265 of file dhcp_api.c.

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

Definition at line 40 of file dhcp_api.c.

#define vl_printfun

Definition at line 41 of file dhcp_api.c.

#define vl_typedefs   /* define message structures */

Definition at line 31 of file dhcp_api.c.

Function Documentation

static clib_error_t* dhcp_api_hookup ( vlib_main_t vm)
static

Definition at line 278 of file dhcp_api.c.

+ Here is the call graph for this function:

void dhcp_compl_event_callback ( u32  client_index,
u32  pid,
u8 hostname,
u8  mask_width,
u8  is_ipv6,
u8 host_address,
u8 router_address,
u8 host_mac 
)

Definition at line 207 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 124 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 270 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 239 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_config_t_handler ( vl_api_dhcp_proxy_config_t mp)
static

Definition at line 74 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 111 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 55 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: