FD.io VPP  v19.01.3-6-g70449b9b9
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

◆ foreach_dhcp6_client_cp_msg

#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.

◆ vl_api_dhcp6_client_enable_disable_t_print

#define vl_api_dhcp6_client_enable_disable_t_print   vl_noop_handler

Definition at line 39 of file dhcp6_ia_na_client_cp.c.

◆ vl_endianfun

#define vl_endianfun   /* define message structures */

Definition at line 30 of file dhcp6_ia_na_client_cp.c.

◆ vl_msg_name_crc_list

#define vl_msg_name_crc_list

Definition at line 782 of file dhcp6_ia_na_client_cp.c.

◆ vl_typedefs

#define vl_typedefs   /* define message structures */

Definition at line 26 of file dhcp6_ia_na_client_cp.c.

Enumeration Type Documentation

◆ anonymous enum

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

◆ create_address_list()

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:

◆ dhcp6_addresses_show_command_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:

◆ dhcp6_client_cp_process()

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:

◆ dhcp6_client_enable_disable()

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:

◆ dhcp6_client_enable_disable_command_fn()

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:

◆ dhcp6_clients_show_command_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:

◆ dhcp6_reply_event_handler()

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:

◆ dhcp_client_cp_init()

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:

◆ disable_process()

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:

◆ enable_process()

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:

◆ interrupt_process()

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:

◆ ip6_addresses_equal()

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.

◆ ip6_enable()

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:

◆ send_client_message_start_stop()

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:

◆ setup_message_id_table()

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:

◆ vl_api_dhcp6_client_enable_disable_t_handler()

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()

VNET_DHCP6_REPLY_EVENT_FUNCTION ( dhcp6_reply_event_handler  )

Variable Documentation

◆ dhcp6_addresses_show_command

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

dhcp6_client_cp_main_t dhcp6_client_cp_main
static

Definition at line 76 of file dhcp6_ia_na_client_cp.c.

◆ dhcp6_client_cp_process_node

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.

◆ dhcp6_client_enable_disable_command

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.

◆ dhcp6_clients_show_command

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.