FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
ip6_nd_mirror_proxy.c File Reference
+ Include dependency graph for ip6_nd_mirror_proxy.c:

Go to the source code of this file.

Data Structures

struct  vnet_ip6_nd_proxy_trace_t
 

Functions

int ip6_nd_proxy_enable_disable (u32 sw_if_index, u8 enable)
 
static clib_error_tset_int_ip6_nd_proxy_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static u8format_ip6_nd_proxy_trace (u8 *s, va_list *args)
 
static_always_inline void ip6_nd_proxy_unicast (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_buffer_t *b0, ip6_header_t *ip6, u32 *next0)
 
static_always_inline void ip6_nd_proxy_multicast (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_buffer_t *b0, ip6_header_t *ip6, u32 *next0)
 
static_always_inline uword ip6_nd_proxy_node_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, u8 is_multicast)
 
 VNET_FEATURE_INIT (ip6_unicast_nd_proxy_node, static)
 
 VNET_FEATURE_INIT (ip6_multicast_nd_proxy_node, static)
 

Variables

static vlib_cli_command_t set_int_ip6_nd_proxy_enable_command
 (constructor) VLIB_CLI_COMMAND (set_int_ip6_nd_proxy_enable_command) More...
 
vlib_main_tvm
 
vlib_main_t vlib_node_runtime_tnode
 
vlib_main_t vlib_node_runtime_t vlib_frame_tframe
 
vlib_node_registration_t ip6_unicast_nd_proxy_node
 (constructor) VLIB_REGISTER_NODE (ip6_unicast_nd_proxy_node) More...
 
vlib_node_registration_t ip6_multicast_nd_proxy_node
 (constructor) VLIB_REGISTER_NODE (ip6_multicast_nd_proxy_node) More...
 

Function Documentation

◆ format_ip6_nd_proxy_trace()

static u8* format_ip6_nd_proxy_trace ( u8 s,
va_list *  args 
)
static

Definition at line 97 of file ip6_nd_mirror_proxy.c.

+ Here is the call graph for this function:

◆ ip6_nd_proxy_enable_disable()

int ip6_nd_proxy_enable_disable ( u32  sw_if_index,
u8  enable 
)

Definition at line 32 of file ip6_nd_mirror_proxy.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ip6_nd_proxy_multicast()

static_always_inline void ip6_nd_proxy_multicast ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_buffer_t b0,
ip6_header_t ip6,
u32 next0 
)

Definition at line 181 of file ip6_nd_mirror_proxy.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ip6_nd_proxy_node_inline()

static_always_inline uword ip6_nd_proxy_node_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
u8  is_multicast 
)

Definition at line 263 of file ip6_nd_mirror_proxy.c.

+ Here is the call graph for this function:

◆ ip6_nd_proxy_unicast()

static_always_inline void ip6_nd_proxy_unicast ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_buffer_t b0,
ip6_header_t ip6,
u32 next0 
)

Definition at line 116 of file ip6_nd_mirror_proxy.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ set_int_ip6_nd_proxy_command_fn()

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

Definition at line 53 of file ip6_nd_mirror_proxy.c.

+ Here is the call graph for this function:

◆ VNET_FEATURE_INIT() [1/2]

VNET_FEATURE_INIT ( ip6_multicast_nd_proxy_node  ,
static   
)

◆ VNET_FEATURE_INIT() [2/2]

VNET_FEATURE_INIT ( ip6_unicast_nd_proxy_node  ,
static   
)

Variable Documentation

◆ frame

Initial value:

Definition at line 360 of file ip6_nd_mirror_proxy.c.

◆ ip6_multicast_nd_proxy_node

vlib_node_registration_t ip6_multicast_nd_proxy_node
Initial value:
= {
.vector_size = sizeof (u32),
.format_trace = format_ip6_nd_proxy_trace,
.n_errors = 0,
.next_nodes = {
},
.name = "ip6-multicast-nd-proxy",
}

(constructor) VLIB_REGISTER_NODE (ip6_multicast_nd_proxy_node)

Definition at line 383 of file ip6_nd_mirror_proxy.c.

◆ ip6_unicast_nd_proxy_node

vlib_node_registration_t ip6_unicast_nd_proxy_node
Initial value:
= {
.vector_size = sizeof (u32),
.format_trace = format_ip6_nd_proxy_trace,
.n_errors = 0,
.next_nodes = {
},
.name = "ip6-unicast-nd-proxy",
}

(constructor) VLIB_REGISTER_NODE (ip6_unicast_nd_proxy_node)

Definition at line 364 of file ip6_nd_mirror_proxy.c.

◆ node

Definition at line 359 of file ip6_nd_mirror_proxy.c.

◆ set_int_ip6_nd_proxy_enable_command

vlib_cli_command_t set_int_ip6_nd_proxy_enable_command
static
Initial value:
= {
.path = "set interface ip6-nd proxy",
.short_help = "set interface ip6-nd proxy <intfc> [enable|disable]",
}

(constructor) VLIB_CLI_COMMAND (set_int_ip6_nd_proxy_enable_command)

Definition at line 84 of file ip6_nd_mirror_proxy.c.

◆ vm

Definition at line 359 of file ip6_nd_mirror_proxy.c.

VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
set_int_ip6_nd_proxy_command_fn
static clib_error_t * set_int_ip6_nd_proxy_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ip6_nd_mirror_proxy.c:53
ip6_nd_proxy_node_inline
static_always_inline uword ip6_nd_proxy_node_inline(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, u8 is_multicast)
Definition: ip6_nd_mirror_proxy.c:263
frame
vlib_main_t vlib_node_runtime_t vlib_frame_t * frame
Definition: ip6_nd_mirror_proxy.c:360
ICMP6_NEIGHBOR_SOLICITATION_NEXT_REPLY
@ ICMP6_NEIGHBOR_SOLICITATION_NEXT_REPLY
Definition: ip6_nd_inline.h:29
node
vlib_main_t vlib_node_runtime_t * node
Definition: ip6_nd_mirror_proxy.c:359
u32
unsigned int u32
Definition: types.h:88
ICMP6_NEIGHBOR_SOLICITATION_N_NEXT
@ ICMP6_NEIGHBOR_SOLICITATION_N_NEXT
Definition: ip6_nd_inline.h:30
ICMP6_NEIGHBOR_SOLICITATION_NEXT_DROP
@ ICMP6_NEIGHBOR_SOLICITATION_NEXT_DROP
Definition: ip6_nd_inline.h:28
vm
vlib_main_t * vm
Definition: ip6_nd_mirror_proxy.c:359
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123
format_ip6_nd_proxy_trace
static u8 * format_ip6_nd_proxy_trace(u8 *s, va_list *args)
Definition: ip6_nd_mirror_proxy.c:97