FD.io VPP  v18.07-rc0-415-g6c78436
Vector Packet Processing
dhcp6_ia_na_client_cp.c File Reference
+ Include dependency graph for dhcp6_ia_na_client_cp.c:

Go to the source code of this file.

Data Structures

struct  address_info_t
 
struct  client_state_t
 
struct  dhcp6_client_cp_main_t
 

Macros

#define vl_typedefs   /* define message structures */
 
#define vl_endianfun   /* define message structures */
 
#define foreach_dhcp6_client_cp_msg   _(DHCP6_CLIENT_ENABLE_DISABLE, dhcp6_client_enable_disable)
 
#define vl_api_dhcp6_client_enable_disable_t_print   vl_noop_handler
 
#define vl_msg_name_crc_list
 

Enumerations

enum  { RD_CP_EVENT_INTERRUPT, RD_CP_EVENT_DISABLE }
 

Functions

static void send_client_message_start_stop (u32 sw_if_index, u32 server_index, u8 msg_type, address_info_t *address_list, u8 start)
 
static void interrupt_process (void)
 
static u32 ip6_enable (u32 sw_if_index)
 
static u8 ip6_addresses_equal (ip6_address_t *address1, ip6_address_t *address2)
 
static clib_error_tdhcp6_reply_event_handler (vl_api_dhcp6_reply_event_t *mp)
 
static address_info_tcreate_address_list (u32 sw_if_index)
 
 VNET_DHCP6_REPLY_EVENT_FUNCTION (dhcp6_reply_event_handler)
 
static uword dhcp6_client_cp_process (vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
 
static void disable_process (void)
 
static void enable_process (void)
 
static clib_error_tdhcp6_addresses_show_command_function (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tdhcp6_clients_show_command_function (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static int dhcp6_client_enable_disable (u32 sw_if_index, u8 enable)
 
static clib_error_tdhcp6_client_enable_disable_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static void vl_api_dhcp6_client_enable_disable_t_handler (vl_api_dhcp6_client_enable_disable_t *mp)
 
static void setup_message_id_table (api_main_t *am)
 
static clib_error_tdhcp_client_cp_init (vlib_main_t *vm)
 

Variables

static dhcp6_client_cp_main_t dhcp6_client_cp_main
 
vlib_node_registration_t dhcp6_client_cp_process_node
 (constructor) VLIB_REGISTER_NODE (dhcp6_client_cp_process_node) More...
 
static vlib_cli_command_t dhcp6_addresses_show_command
 (constructor) VLIB_CLI_COMMAND (dhcp6_addresses_show_command) More...
 
static vlib_cli_command_t dhcp6_clients_show_command
 (constructor) VLIB_CLI_COMMAND (dhcp6_clients_show_command) More...
 
static vlib_cli_command_t dhcp6_client_enable_disable_command
 (constructor) VLIB_CLI_COMMAND (dhcp6_client_enable_disable_command) More...
 

Macro Definition Documentation

#define foreach_dhcp6_client_cp_msg   _(DHCP6_CLIENT_ENABLE_DISABLE, dhcp6_client_enable_disable)

Definition at line 36 of file dhcp6_ia_na_client_cp.c.

#define vl_api_dhcp6_client_enable_disable_t_print   vl_noop_handler

Definition at line 39 of file dhcp6_ia_na_client_cp.c.

#define vl_endianfun   /* define message structures */

Definition at line 30 of file dhcp6_ia_na_client_cp.c.

#define vl_msg_name_crc_list

Definition at line 782 of file dhcp6_ia_na_client_cp.c.

#define vl_typedefs   /* define message structures */

Definition at line 26 of file dhcp6_ia_na_client_cp.c.

Enumeration Type Documentation

anonymous enum
Enumerator
RD_CP_EVENT_INTERRUPT 
RD_CP_EVENT_DISABLE 

Definition at line 78 of file dhcp6_ia_na_client_cp.c.

Function Documentation

static address_info_t* create_address_list ( u32  sw_if_index)
static

Definition at line 360 of file dhcp6_ia_na_client_cp.c.

+ Here is the caller graph for this function:

static clib_error_t* dhcp6_addresses_show_command_function ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 536 of file dhcp6_ia_na_client_cp.c.

+ Here is the call graph for this function:

static uword dhcp6_client_cp_process ( vlib_main_t vm,
vlib_node_runtime_t rt,
vlib_frame_t f 
)
static

Definition at line 383 of file dhcp6_ia_na_client_cp.c.

+ Here is the call graph for this function:

static int dhcp6_client_enable_disable ( u32  sw_if_index,
u8  enable 
)
static

Definition at line 626 of file dhcp6_ia_na_client_cp.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* dhcp6_client_enable_disable_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 706 of file dhcp6_ia_na_client_cp.c.

+ Here is the call graph for this function:

static clib_error_t* dhcp6_clients_show_command_function ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 569 of file dhcp6_ia_na_client_cp.c.

+ Here is the call graph for this function:

static clib_error_t* dhcp6_reply_event_handler ( vl_api_dhcp6_reply_event_t mp)
static

Definition at line 182 of file dhcp6_ia_na_client_cp.c.

+ Here is the call graph for this function:

static clib_error_t* dhcp_client_cp_init ( vlib_main_t vm)
static

Definition at line 795 of file dhcp6_ia_na_client_cp.c.

+ Here is the call graph for this function:

static void disable_process ( void  )
static

Definition at line 513 of file dhcp6_ia_na_client_cp.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void enable_process ( void  )
static

Definition at line 523 of file dhcp6_ia_na_client_cp.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void interrupt_process ( void  )
static

Definition at line 503 of file dhcp6_ia_na_client_cp.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8 ip6_addresses_equal ( ip6_address_t address1,
ip6_address_t address2 
)
static

Definition at line 174 of file dhcp6_ia_na_client_cp.c.

static u32 ip6_enable ( u32  sw_if_index)
static

Definition at line 163 of file dhcp6_ia_na_client_cp.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void send_client_message_start_stop ( u32  sw_if_index,
u32  server_index,
u8  msg_type,
address_info_t address_list,
u8  start 
)
static

Definition at line 85 of file dhcp6_ia_na_client_cp.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 787 of file dhcp6_ia_na_client_cp.c.

+ Here is the caller graph for this function:

static void vl_api_dhcp6_client_enable_disable_t_handler ( vl_api_dhcp6_client_enable_disable_t mp)
static

Definition at line 765 of file dhcp6_ia_na_client_cp.c.

+ Here is the call graph for this function:

VNET_DHCP6_REPLY_EVENT_FUNCTION ( dhcp6_reply_event_handler  )

Variable Documentation

vlib_cli_command_t dhcp6_addresses_show_command
static
Initial value:
= {
.path = "show dhcp6 addresses",
.short_help = "show dhcp6 addresses",
}
static clib_error_t * dhcp6_addresses_show_command_function(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (dhcp6_addresses_show_command)

Definition at line 561 of file dhcp6_ia_na_client_cp.c.

dhcp6_client_cp_main_t dhcp6_client_cp_main
static

Definition at line 76 of file dhcp6_ia_na_client_cp.c.

vlib_node_registration_t dhcp6_client_cp_process_node
Initial value:
= {
.name = "dhcp6-client-cp-process",
}
static uword dhcp6_client_cp_process(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)

(constructor) VLIB_REGISTER_NODE (dhcp6_client_cp_process_node)

Definition at line 495 of file dhcp6_ia_na_client_cp.c.

vlib_cli_command_t dhcp6_client_enable_disable_command
static
Initial value:
= {
.path = "dhcp6 client",
.short_help = "dhcp6 client <interface> [disable]",
}
static clib_error_t * dhcp6_client_enable_disable_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (dhcp6_client_enable_disable_command)

Definition at line 756 of file dhcp6_ia_na_client_cp.c.

vlib_cli_command_t dhcp6_clients_show_command
static
Initial value:
= {
.path = "show dhcp6 clients",
.short_help = "show dhcp6 clients",
}
static clib_error_t * dhcp6_clients_show_command_function(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)

(constructor) VLIB_CLI_COMMAND (dhcp6_clients_show_command)

Definition at line 618 of file dhcp6_ia_na_client_cp.c.