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

Go to the source code of this file.

Data Structures

struct  ip6_forward_next_trace_t
 
struct  ip6_hop_by_hop_trace_t
 

Macros

#define OI_DECAP   0x80000000
 
#define IP6_MCAST_ADDR_MASK   0xffffffff
 This bits of an IPv6 address to mask to construct a multicast MAC address. More...
 
#define foreach_ip6_hop_by_hop_error
 

Enumerations

enum  ip6_rewrite_next_t { IP6_REWRITE_NEXT_DROP, IP6_REWRITE_NEXT_ICMP_ERROR, IP6_REWRITE_NEXT_FRAGMENT, IP6_REWRITE_N_NEXT }
 
enum  ip6_hop_by_hop_error_t { IP6_HOP_BY_HOP_N_ERROR }
 

Functions

static void ip6_add_interface_prefix_routes (ip6_main_t *im, u32 sw_if_index, u32 fib_index, ip6_address_t *address, u32 address_length)
 
static void ip6_add_interface_routes (vnet_main_t *vnm, u32 sw_if_index, ip6_main_t *im, u32 fib_index, ip_interface_address_t *a)
 
static void ip6_del_interface_prefix_routes (ip6_main_t *im, u32 sw_if_index, u32 fib_index, ip6_address_t *address, u32 address_length)
 
static void ip6_del_interface_routes (u32 sw_if_index, ip6_main_t *im, u32 fib_index, ip6_address_t *address, u32 address_length)
 
void ip6_sw_interface_enable_disable (u32 sw_if_index, u32 is_enable)
 
ip6_address_t * ip6_interface_first_address (ip6_main_t *im, u32 sw_if_index)
 get first IPv6 interface address More...
 
clib_error_tip6_add_del_interface_address (vlib_main_t *vm, u32 sw_if_index, ip6_address_t *address, u32 address_length, u32 is_del)
 
static clib_error_tip6_sw_interface_admin_up_down (vnet_main_t *vnm, u32 sw_if_index, u32 flags)
 
 VNET_SW_INTERFACE_ADMIN_UP_DOWN_FUNCTION (ip6_sw_interface_admin_up_down)
 
 VNET_FEATURE_ARC_INIT (ip6_unicast, static)
 
 VNET_FEATURE_INIT (ip6_flow_classify, static)
 
 VNET_FEATURE_INIT (ip6_inacl, static)
 
 VNET_FEATURE_INIT (ip6_policer_classify, static)
 
 VNET_FEATURE_INIT (ip6_ipsec, static)
 
 VNET_FEATURE_INIT (ip6_l2tp, static)
 
 VNET_FEATURE_INIT (ip6_vpath, static)
 
 VNET_FEATURE_INIT (ip6_vxlan_bypass, static)
 
 VNET_FEATURE_INIT (ip6_not_enabled, static)
 
 VNET_FEATURE_INIT (ip6_lookup, static)
 
 VNET_FEATURE_ARC_INIT (ip6_multicast, static)
 
 VNET_FEATURE_INIT (ip6_vpath_mc, static)
 
 VNET_FEATURE_INIT (ip6_not_enabled_mc, static)
 
 VNET_FEATURE_INIT (ip6_mc_lookup, static)
 
 VNET_FEATURE_ARC_INIT (ip6_output, static)
 
 VNET_FEATURE_INIT (ip6_outacl, static)
 
 VNET_FEATURE_INIT (ip6_ipsec_output, static)
 
 VNET_FEATURE_INIT (ip6_interface_output, static)
 
static clib_error_tip6_sw_interface_add_del (vnet_main_t *vnm, u32 sw_if_index, u32 is_add)
 
 VNET_SW_INTERFACE_ADD_DEL_FUNCTION (ip6_sw_interface_add_del)
 
VLIB_NODE_FN() ip6_lookup_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static u8format_ip6_lookup_trace (u8 *s, va_list *args)
 
VLIB_NODE_FN() ip6_load_balance_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
u8format_ip6_forward_next_trace (u8 *s, va_list *args)
 
static u8format_ip6_rewrite_trace (u8 *s, va_list *args)
 
void ip6_forward_next_trace (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, vlib_rx_or_tx_t which_adj_index)
 
u16 ip6_tcp_udp_icmp_compute_checksum (vlib_main_t *vm, vlib_buffer_t *p0, ip6_header_t *ip0, int *bogus_lengthp)
 
u32 ip6_tcp_udp_icmp_validate_checksum (vlib_main_t *vm, vlib_buffer_t *p0)
 
static int ip6_urpf_loose_check (ip6_main_t *im, vlib_buffer_t *b, ip6_header_t *i)
 returns number of links on which src is reachable. More...
 
static u8 ip6_next_proto_is_tcp_udp (vlib_buffer_t *p0, ip6_header_t *ip0, u32 *udp_offset0)
 
 VNET_FEATURE_ARC_INIT (ip6_local)
 
static_always_inline u8 ip6_tcp_udp_icmp_bad_length (vlib_main_t *vm, vlib_buffer_t *p0)
 
static uword ip6_local_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int head_of_feature_arc)
 
VLIB_NODE_FN() ip6_local_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() ip6_local_end_of_arc_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
 VNET_FEATURE_INIT (ip6_local_end_of_arc, static)
 
void ip6_register_protocol (u32 protocol, u32 node_index)
 
void ip6_unregister_protocol (u32 protocol)
 
static void ip6_mtu_check (vlib_buffer_t *b, u16 packet_bytes, u16 adj_packet_bytes, bool is_locally_generated, u32 *next, u8 is_midchain, u32 *error)
 
static uword ip6_rewrite_inline_with_gso (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int do_counters, int is_midchain, int is_mcast)
 
static uword ip6_rewrite_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int do_counters, int is_midchain, int is_mcast)
 
VLIB_NODE_FN() ip6_rewrite_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() ip6_rewrite_bcast_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() ip6_rewrite_mcast_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() ip6_midchain_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
VLIB_NODE_FN() ip6_mcast_midchain_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
u8format_ip6_hop_by_hop_ext_hdr (u8 *s, va_list *args)
 
static u8format_ip6_hop_by_hop_trace (u8 *s, va_list *args)
 
static u8 ip6_scan_hbh_options (vlib_buffer_t *b0, ip6_header_t *ip0, ip6_hop_by_hop_header_t *hbh0, ip6_hop_by_hop_option_t *opt0, ip6_hop_by_hop_option_t *limit0, u32 *next0)
 
VLIB_NODE_FN() ip6_hop_by_hop_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static clib_error_tip6_hop_by_hop_init (vlib_main_t *vm)
 
void ip6_hbh_set_next_override (uword next)
 
int ip6_hbh_register_option (u8 option, int options(vlib_buffer_t *b, ip6_header_t *ip, ip6_hop_by_hop_option_t *opt), u8 *trace(u8 *s, ip6_hop_by_hop_option_t *opt))
 
int ip6_hbh_unregister_option (u8 option)
 
static clib_error_tip6_lookup_init (vlib_main_t *vm)
 
static clib_error_tset_ip6_flow_hash_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_ip6_local_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
int vnet_set_ip6_classify_intfc (vlib_main_t *vm, u32 sw_if_index, u32 table_index)
 
static clib_error_tset_ip6_classify_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

vlib_node_registration_t ip6_lookup_node
 (constructor) VLIB_REGISTER_NODE (ip6_lookup_node) More...
 
vlib_node_registration_t ip6_load_balance_node
 (constructor) VLIB_REGISTER_NODE (ip6_load_balance_node) More...
 
vlib_node_registration_t ip6_local_node
 (constructor) VLIB_REGISTER_NODE (ip6_local_node) More...
 
vlib_node_registration_t ip6_local_end_of_arc_node
 (constructor) VLIB_REGISTER_NODE (ip6_local_end_of_arc_node) More...
 
vlib_node_registration_t ip6_midchain_node
 (constructor) VLIB_REGISTER_NODE (ip6_midchain_node) More...
 
vlib_node_registration_t ip6_rewrite_node
 (constructor) VLIB_REGISTER_NODE (ip6_rewrite_node) More...
 
vlib_node_registration_t ip6_rewrite_bcast_node
 (constructor) VLIB_REGISTER_NODE (ip6_rewrite_bcast_node) More...
 
vlib_node_registration_t ip6_rewrite_mcast_node
 (constructor) VLIB_REGISTER_NODE (ip6_rewrite_mcast_node) More...
 
vlib_node_registration_t ip6_mcast_midchain_node
 (constructor) VLIB_REGISTER_NODE (ip6_mcast_midchain_node) More...
 
ip6_hop_by_hop_main_t ip6_hop_by_hop_main
 
vlib_node_registration_t ip6_hop_by_hop_node
 (constructor) VLIB_REGISTER_NODE (ip6_hop_by_hop_node) More...
 
static char * ip6_hop_by_hop_error_strings []
 
ip6_main_t ip6_main
 
static vlib_cli_command_t set_ip6_flow_hash_command
 (constructor) VLIB_CLI_COMMAND (set_ip6_flow_hash_command) More...
 
static vlib_cli_command_t show_ip6_local
 (constructor) VLIB_CLI_COMMAND (show_ip6_local) More...
 
static vlib_cli_command_t set_ip6_classify_command
 (constructor) VLIB_CLI_COMMAND (set_ip6_classify_command) More...
 

Macro Definition Documentation

◆ foreach_ip6_hop_by_hop_error

#define foreach_ip6_hop_by_hop_error
Value:
_(PROCESSED, "pkts with ip6 hop-by-hop options") \
_(FORMAT, "incorrectly formatted hop-by-hop options") \
_(UNKNOWN_OPTION, "unknown ip6 hop-by-hop options")

Definition at line 2253 of file ip6_forward.c.

◆ IP6_MCAST_ADDR_MASK

#define IP6_MCAST_ADDR_MASK   0xffffffff

This bits of an IPv6 address to mask to construct a multicast MAC address.

Definition at line 1711 of file ip6_forward.c.

◆ OI_DECAP

#define OI_DECAP   0x80000000

Definition at line 62 of file ip6_forward.c.

Enumeration Type Documentation

◆ ip6_hop_by_hop_error_t

Enumerator
IP6_HOP_BY_HOP_N_ERROR 

Definition at line 2259 of file ip6_forward.c.

◆ ip6_rewrite_next_t

Enumerator
IP6_REWRITE_NEXT_DROP 
IP6_REWRITE_NEXT_ICMP_ERROR 
IP6_REWRITE_NEXT_FRAGMENT 
IP6_REWRITE_N_NEXT 

Definition at line 1699 of file ip6_forward.c.

Function Documentation

◆ format_ip6_forward_next_trace()

u8* format_ip6_forward_next_trace ( u8 s,
va_list *  args 
)

Definition at line 949 of file ip6_forward.c.

+ Here is the call graph for this function:

◆ format_ip6_hop_by_hop_ext_hdr()

u8* format_ip6_hop_by_hop_ext_hdr ( u8 s,
va_list *  args 
)

Definition at line 2289 of file ip6_forward.c.

+ Here is the caller graph for this function:

◆ format_ip6_hop_by_hop_trace()

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

Definition at line 2332 of file ip6_forward.c.

+ Here is the call graph for this function:

◆ format_ip6_lookup_trace()

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

Definition at line 967 of file ip6_forward.c.

+ Here is the call graph for this function:

◆ format_ip6_rewrite_trace()

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

Definition at line 984 of file ip6_forward.c.

+ Here is the call graph for this function:

◆ ip6_add_del_interface_address()

clib_error_t* ip6_add_del_interface_address ( vlib_main_t vm,
u32  sw_if_index,
ip6_address_t *  address,
u32  address_length,
u32  is_del 
)

Definition at line 298 of file ip6_forward.c.

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

◆ ip6_add_interface_prefix_routes()

static void ip6_add_interface_prefix_routes ( ip6_main_t im,
u32  sw_if_index,
u32  fib_index,
ip6_address_t *  address,
u32  address_length 
)
static

Definition at line 65 of file ip6_forward.c.

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

◆ ip6_add_interface_routes()

static void ip6_add_interface_routes ( vnet_main_t vnm,
u32  sw_if_index,
ip6_main_t im,
u32  fib_index,
ip_interface_address_t a 
)
static

Definition at line 123 of file ip6_forward.c.

+ Here is the call graph for this function:

◆ ip6_del_interface_prefix_routes()

static void ip6_del_interface_prefix_routes ( ip6_main_t im,
u32  sw_if_index,
u32  fib_index,
ip6_address_t *  address,
u32  address_length 
)
static

Definition at line 172 of file ip6_forward.c.

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

◆ ip6_del_interface_routes()

static void ip6_del_interface_routes ( u32  sw_if_index,
ip6_main_t im,
u32  fib_index,
ip6_address_t *  address,
u32  address_length 
)
static

Definition at line 221 of file ip6_forward.c.

+ Here is the call graph for this function:

◆ ip6_forward_next_trace()

void ip6_forward_next_trace ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
vlib_rx_or_tx_t  which_adj_index 
)

Definition at line 1004 of file ip6_forward.c.

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

◆ ip6_hbh_register_option()

int ip6_hbh_register_option ( u8  option,
int   optionsvlib_buffer_t *b, ip6_header_t *ip, ip6_hop_by_hop_option_t *opt,
u8 traceu8 *s, ip6_hop_by_hop_option_t *opt 
)

Definition at line 2729 of file ip6_forward.c.

+ Here is the caller graph for this function:

◆ ip6_hbh_set_next_override()

void ip6_hbh_set_next_override ( uword  next)

Definition at line 2721 of file ip6_forward.c.

+ Here is the caller graph for this function:

◆ ip6_hbh_unregister_option()

int ip6_hbh_unregister_option ( u8  option)

Definition at line 2753 of file ip6_forward.c.

+ Here is the caller graph for this function:

◆ ip6_hop_by_hop_init()

static clib_error_t* ip6_hop_by_hop_init ( vlib_main_t vm)
static

Definition at line 2708 of file ip6_forward.c.

+ Here is the call graph for this function:

◆ ip6_hop_by_hop_node()

VLIB_NODE_FN() ip6_hop_by_hop_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 2456 of file ip6_forward.c.

+ Here is the call graph for this function:

◆ ip6_interface_first_address()

ip6_address_t* ip6_interface_first_address ( ip6_main_t im,
u32  sw_if_index 
)

get first IPv6 interface address

Definition at line 279 of file ip6_forward.c.

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

◆ ip6_load_balance_node()

VLIB_NODE_FN() ip6_load_balance_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 749 of file ip6_forward.c.

+ Here is the call graph for this function:

◆ ip6_local_end_of_arc_node()

VLIB_NODE_FN() ip6_local_end_of_arc_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 1650 of file ip6_forward.c.

+ Here is the call graph for this function:

◆ ip6_local_inline()

static uword ip6_local_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  head_of_feature_arc 
)
inlinestatic

Definition at line 1280 of file ip6_forward.c.

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

◆ ip6_local_node()

VLIB_NODE_FN() ip6_local_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 1626 of file ip6_forward.c.

+ Here is the call graph for this function:

◆ ip6_lookup_init()

static clib_error_t* ip6_lookup_init ( vlib_main_t vm)
static

Definition at line 2789 of file ip6_forward.c.

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

◆ ip6_lookup_node()

VLIB_NODE_FN() ip6_lookup_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 729 of file ip6_forward.c.

+ Here is the call graph for this function:

◆ ip6_mcast_midchain_node()

VLIB_NODE_FN() ip6_mcast_midchain_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 2186 of file ip6_forward.c.

+ Here is the call graph for this function:

◆ ip6_midchain_node()

VLIB_NODE_FN() ip6_midchain_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 2176 of file ip6_forward.c.

+ Here is the call graph for this function:

◆ ip6_mtu_check()

static void ip6_mtu_check ( vlib_buffer_t b,
u16  packet_bytes,
u16  adj_packet_bytes,
bool  is_locally_generated,
u32 next,
u8  is_midchain,
u32 error 
)
inlinestatic

Definition at line 1714 of file ip6_forward.c.

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

◆ ip6_next_proto_is_tcp_udp()

static u8 ip6_next_proto_is_tcp_udp ( vlib_buffer_t p0,
ip6_header_t ip0,
u32 udp_offset0 
)
inlinestatic

Definition at line 1214 of file ip6_forward.c.

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

◆ ip6_register_protocol()

void ip6_register_protocol ( u32  protocol,
u32  node_index 
)

Definition at line 1677 of file ip6_forward.c.

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

◆ ip6_rewrite_bcast_node()

VLIB_NODE_FN() ip6_rewrite_bcast_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 2156 of file ip6_forward.c.

+ Here is the call graph for this function:

◆ ip6_rewrite_inline()

static uword ip6_rewrite_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  do_counters,
int  is_midchain,
int  is_mcast 
)
inlinestatic

Definition at line 2137 of file ip6_forward.c.

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

◆ ip6_rewrite_inline_with_gso()

static uword ip6_rewrite_inline_with_gso ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  do_counters,
int  is_midchain,
int  is_mcast 
)
inlinestatic

Definition at line 1741 of file ip6_forward.c.

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

◆ ip6_rewrite_mcast_node()

VLIB_NODE_FN() ip6_rewrite_mcast_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 2166 of file ip6_forward.c.

+ Here is the call graph for this function:

◆ ip6_rewrite_node()

VLIB_NODE_FN() ip6_rewrite_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)

Definition at line 2146 of file ip6_forward.c.

+ Here is the call graph for this function:

◆ ip6_scan_hbh_options()

static u8 ip6_scan_hbh_options ( vlib_buffer_t b0,
ip6_header_t ip0,
ip6_hop_by_hop_header_t hbh0,
ip6_hop_by_hop_option_t opt0,
ip6_hop_by_hop_option_t limit0,
u32 next0 
)
inlinestatic

Definition at line 2380 of file ip6_forward.c.

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

◆ ip6_sw_interface_add_del()

static clib_error_t* ip6_sw_interface_add_del ( vnet_main_t vnm,
u32  sw_if_index,
u32  is_add 
)
static

Definition at line 685 of file ip6_forward.c.

+ Here is the call graph for this function:

◆ ip6_sw_interface_admin_up_down()

static clib_error_t* ip6_sw_interface_admin_up_down ( vnet_main_t vnm,
u32  sw_if_index,
u32  flags 
)
static

Definition at line 521 of file ip6_forward.c.

◆ ip6_sw_interface_enable_disable()

void ip6_sw_interface_enable_disable ( u32  sw_if_index,
u32  is_enable 
)

Definition at line 240 of file ip6_forward.c.

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

◆ ip6_tcp_udp_icmp_bad_length()

static_always_inline u8 ip6_tcp_udp_icmp_bad_length ( vlib_main_t vm,
vlib_buffer_t p0 
)

Definition at line 1236 of file ip6_forward.c.

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

◆ ip6_tcp_udp_icmp_compute_checksum()

u16 ip6_tcp_udp_icmp_compute_checksum ( vlib_main_t vm,
vlib_buffer_t p0,
ip6_header_t ip0,
int *  bogus_lengthp 
)

Definition at line 1096 of file ip6_forward.c.

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

◆ ip6_tcp_udp_icmp_validate_checksum()

u32 ip6_tcp_udp_icmp_validate_checksum ( vlib_main_t vm,
vlib_buffer_t p0 
)

Definition at line 1161 of file ip6_forward.c.

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

◆ ip6_unregister_protocol()

void ip6_unregister_protocol ( u32  protocol)

Definition at line 1689 of file ip6_forward.c.

+ Here is the caller graph for this function:

◆ ip6_urpf_loose_check()

static int ip6_urpf_loose_check ( ip6_main_t im,
vlib_buffer_t b,
ip6_header_t i 
)
inlinestatic

returns number of links on which src is reachable.

Definition at line 1195 of file ip6_forward.c.

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

◆ set_ip6_classify_command_fn()

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

Definition at line 3072 of file ip6_forward.c.

+ Here is the call graph for this function:

◆ set_ip6_flow_hash_command_fn()

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

Definition at line 2836 of file ip6_forward.c.

+ Here is the call graph for this function:

◆ show_ip6_local_command_fn()

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

Definition at line 2967 of file ip6_forward.c.

+ Here is the call graph for this function:

◆ VNET_FEATURE_ARC_INIT() [1/4]

VNET_FEATURE_ARC_INIT ( ip6_local  )

◆ VNET_FEATURE_ARC_INIT() [2/4]

VNET_FEATURE_ARC_INIT ( ip6_multicast  ,
static   
)

◆ VNET_FEATURE_ARC_INIT() [3/4]

VNET_FEATURE_ARC_INIT ( ip6_output  ,
static   
)

◆ VNET_FEATURE_ARC_INIT() [4/4]

VNET_FEATURE_ARC_INIT ( ip6_unicast  ,
static   
)

◆ VNET_FEATURE_INIT() [1/16]

VNET_FEATURE_INIT ( ip6_flow_classify  ,
static   
)

◆ VNET_FEATURE_INIT() [2/16]

VNET_FEATURE_INIT ( ip6_inacl  ,
static   
)

◆ VNET_FEATURE_INIT() [3/16]

VNET_FEATURE_INIT ( ip6_interface_output  ,
static   
)

◆ VNET_FEATURE_INIT() [4/16]

VNET_FEATURE_INIT ( ip6_ipsec  ,
static   
)

◆ VNET_FEATURE_INIT() [5/16]

VNET_FEATURE_INIT ( ip6_ipsec_output  ,
static   
)

◆ VNET_FEATURE_INIT() [6/16]

VNET_FEATURE_INIT ( ip6_l2tp  ,
static   
)

◆ VNET_FEATURE_INIT() [7/16]

VNET_FEATURE_INIT ( ip6_local_end_of_arc  ,
static   
)

◆ VNET_FEATURE_INIT() [8/16]

VNET_FEATURE_INIT ( ip6_lookup  ,
static   
)

◆ VNET_FEATURE_INIT() [9/16]

VNET_FEATURE_INIT ( ip6_mc_lookup  ,
static   
)

◆ VNET_FEATURE_INIT() [10/16]

VNET_FEATURE_INIT ( ip6_not_enabled  ,
static   
)

◆ VNET_FEATURE_INIT() [11/16]

VNET_FEATURE_INIT ( ip6_not_enabled_mc  ,
static   
)

◆ VNET_FEATURE_INIT() [12/16]

VNET_FEATURE_INIT ( ip6_outacl  ,
static   
)

◆ VNET_FEATURE_INIT() [13/16]

VNET_FEATURE_INIT ( ip6_policer_classify  ,
static   
)

◆ VNET_FEATURE_INIT() [14/16]

VNET_FEATURE_INIT ( ip6_vpath  ,
static   
)

◆ VNET_FEATURE_INIT() [15/16]

VNET_FEATURE_INIT ( ip6_vpath_mc  ,
static   
)

◆ VNET_FEATURE_INIT() [16/16]

VNET_FEATURE_INIT ( ip6_vxlan_bypass  ,
static   
)

◆ vnet_set_ip6_classify_intfc()

int vnet_set_ip6_classify_intfc ( vlib_main_t vm,
u32  sw_if_index,
u32  table_index 
)

Definition at line 3016 of file ip6_forward.c.

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

◆ VNET_SW_INTERFACE_ADD_DEL_FUNCTION()

VNET_SW_INTERFACE_ADD_DEL_FUNCTION ( ip6_sw_interface_add_del  )

◆ VNET_SW_INTERFACE_ADMIN_UP_DOWN_FUNCTION()

VNET_SW_INTERFACE_ADMIN_UP_DOWN_FUNCTION ( ip6_sw_interface_admin_up_down  )

Variable Documentation

◆ ip6_hop_by_hop_error_strings

char* ip6_hop_by_hop_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}

Definition at line 2281 of file ip6_forward.c.

◆ ip6_hop_by_hop_main

ip6_hop_by_hop_main_t ip6_hop_by_hop_main

Definition at line 2250 of file ip6_forward.c.

◆ ip6_hop_by_hop_node

vlib_node_registration_t ip6_hop_by_hop_node
Initial value:
=
{
.name = "ip6-hop-by-hop",
.sibling_of = "ip6-lookup",
.vector_size = sizeof (u32),
.format_trace = format_ip6_hop_by_hop_trace,
.error_strings = ip6_hop_by_hop_error_strings,
.n_next_nodes = 0,
}

(constructor) VLIB_REGISTER_NODE (ip6_hop_by_hop_node)

Definition at line 2694 of file ip6_forward.c.

◆ ip6_load_balance_node

vlib_node_registration_t ip6_load_balance_node
Initial value:
=
{
.name = "ip6-load-balance",
.vector_size = sizeof (u32),
.sibling_of = "ip6-lookup",
.format_trace = format_ip6_lookup_trace,
}

(constructor) VLIB_REGISTER_NODE (ip6_load_balance_node)

Definition at line 926 of file ip6_forward.c.

◆ ip6_local_end_of_arc_node

vlib_node_registration_t ip6_local_end_of_arc_node
Initial value:
= {
.name = "ip6-local-end-of-arc",
.vector_size = sizeof (u32),
.sibling_of = "ip6-local",
}

(constructor) VLIB_REGISTER_NODE (ip6_local_end_of_arc_node)

Definition at line 1658 of file ip6_forward.c.

◆ ip6_local_node

vlib_node_registration_t ip6_local_node
Initial value:
=
{
.name = "ip6-local",
.vector_size = sizeof (u32),
.n_next_nodes = IP_LOCAL_N_NEXT,
.next_nodes =
{
[IP_LOCAL_NEXT_DROP] = "ip6-drop",
[IP_LOCAL_NEXT_PUNT] = "ip6-punt",
[IP_LOCAL_NEXT_UDP_LOOKUP] = "ip6-udp-lookup",
[IP_LOCAL_NEXT_ICMP] = "ip6-icmp-input",
[IP_LOCAL_NEXT_REASSEMBLY] = "ip6-full-reassembly",
},
}

(constructor) VLIB_REGISTER_NODE (ip6_local_node)

Definition at line 1633 of file ip6_forward.c.

◆ ip6_lookup_node

vlib_node_registration_t ip6_lookup_node
Initial value:
=
{
.name = "ip6-lookup",
.vector_size = sizeof (u32),
.format_trace = format_ip6_lookup_trace,
.n_next_nodes = IP6_LOOKUP_N_NEXT,
.next_nodes = IP6_LOOKUP_NEXT_NODES,
}

(constructor) VLIB_REGISTER_NODE (ip6_lookup_node)

Definition at line 739 of file ip6_forward.c.

◆ ip6_main

ip6_main_t ip6_main

Definition at line 2785 of file ip6_forward.c.

◆ ip6_mcast_midchain_node

vlib_node_registration_t ip6_mcast_midchain_node
Initial value:
=
{
.name = "ip6-mcast-midchain",
.vector_size = sizeof (u32),
.format_trace = format_ip6_rewrite_trace,
.sibling_of = "ip6-rewrite",
}

(constructor) VLIB_REGISTER_NODE (ip6_mcast_midchain_node)

Definition at line 2236 of file ip6_forward.c.

◆ ip6_midchain_node

vlib_node_registration_t ip6_midchain_node
Initial value:
=
{
.name = "ip6-midchain",
.vector_size = sizeof (u32),
.sibling_of = "ip6-rewrite",
}

(constructor) VLIB_REGISTER_NODE (ip6_midchain_node)

Definition at line 2197 of file ip6_forward.c.

◆ ip6_rewrite_bcast_node

vlib_node_registration_t ip6_rewrite_bcast_node
Initial value:
= {
.name = "ip6-rewrite-bcast",
.vector_size = sizeof (u32),
.format_trace = format_ip6_rewrite_trace,
.sibling_of = "ip6-rewrite",
}

(constructor) VLIB_REGISTER_NODE (ip6_rewrite_bcast_node)

Definition at line 2219 of file ip6_forward.c.

◆ ip6_rewrite_mcast_node

vlib_node_registration_t ip6_rewrite_mcast_node
Initial value:
=
{
.name = "ip6-rewrite-mcast",
.vector_size = sizeof (u32),
.format_trace = format_ip6_rewrite_trace,
.sibling_of = "ip6-rewrite",
}

(constructor) VLIB_REGISTER_NODE (ip6_rewrite_mcast_node)

Definition at line 2227 of file ip6_forward.c.

◆ ip6_rewrite_node

vlib_node_registration_t ip6_rewrite_node
Initial value:
=
{
.name = "ip6-rewrite",
.vector_size = sizeof (u32),
.format_trace = format_ip6_rewrite_trace,
.n_next_nodes = IP6_REWRITE_N_NEXT,
.next_nodes =
{
[IP6_REWRITE_NEXT_DROP] = "ip6-drop",
[IP6_REWRITE_NEXT_ICMP_ERROR] = "ip6-icmp-error",
[IP6_REWRITE_NEXT_FRAGMENT] = "ip6-frag",
},
}

(constructor) VLIB_REGISTER_NODE (ip6_rewrite_node)

Definition at line 2205 of file ip6_forward.c.

◆ set_ip6_classify_command

vlib_cli_command_t set_ip6_classify_command
static
Initial value:
=
{
.path = "set ip6 classify",
.short_help =
"set ip6 classify intfc <interface> table-index <classify-idx>",
}

(constructor) VLIB_CLI_COMMAND (set_ip6_classify_command)

Definition at line 3125 of file ip6_forward.c.

◆ set_ip6_flow_hash_command

vlib_cli_command_t set_ip6_flow_hash_command
static
Initial value:
= {
.path = "set ip6 flow-hash",
.short_help = "set ip6 flow-hash table <table-id> [src] [dst] [sport] "
"[dport] [proto] [reverse] [flowlabel]",
}

(constructor) VLIB_CLI_COMMAND (set_ip6_flow_hash_command)

Definition at line 2958 of file ip6_forward.c.

◆ show_ip6_local

vlib_cli_command_t show_ip6_local
static
Initial value:
=
{
.path = "show ip6 local",
.short_help = "show ip6 local",
}

(constructor) VLIB_CLI_COMMAND (show_ip6_local)

Definition at line 3006 of file ip6_forward.c.

IP6_LOOKUP_NEXT_NODES
#define IP6_LOOKUP_NEXT_NODES
Definition: adj.h:122
VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
IP_LOCAL_N_NEXT
@ IP_LOCAL_N_NEXT
Definition: lookup.h:116
IP6_REWRITE_NEXT_ICMP_ERROR
@ IP6_REWRITE_NEXT_ICMP_ERROR
Definition: ip6_forward.c:1702
IP6_REWRITE_N_NEXT
@ IP6_REWRITE_N_NEXT
Definition: ip6_forward.c:1704
set_ip6_classify_command_fn
static clib_error_t * set_ip6_classify_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ip6_forward.c:3072
IP_LOCAL_NEXT_ICMP
@ IP_LOCAL_NEXT_ICMP
Definition: lookup.h:114
IP_LOCAL_NEXT_REASSEMBLY
@ IP_LOCAL_NEXT_REASSEMBLY
Definition: lookup.h:115
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
ip6_hop_by_hop_error_strings
static char * ip6_hop_by_hop_error_strings[]
Definition: ip6_forward.c:2281
IP6_REWRITE_NEXT_DROP
@ IP6_REWRITE_NEXT_DROP
Definition: ip6_forward.c:1701
format_ip6_hop_by_hop_trace
static u8 * format_ip6_hop_by_hop_trace(u8 *s, va_list *args)
Definition: ip6_forward.c:2332
format_ip6_forward_next_trace
u8 * format_ip6_forward_next_trace(u8 *s, va_list *args)
Definition: ip6_forward.c:949
set_ip6_flow_hash_command_fn
static clib_error_t * set_ip6_flow_hash_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ip6_forward.c:2836
u32
unsigned int u32
Definition: types.h:88
IP_LOCAL_NEXT_UDP_LOOKUP
@ IP_LOCAL_NEXT_UDP_LOOKUP
Definition: lookup.h:113
IP6_LOOKUP_N_NEXT
@ IP6_LOOKUP_N_NEXT
Definition: adj.h:105
foreach_ip6_hop_by_hop_error
#define foreach_ip6_hop_by_hop_error
Definition: ip6_forward.c:2253
IP_LOCAL_NEXT_DROP
@ IP_LOCAL_NEXT_DROP
Definition: lookup.h:111
format_ip6_rewrite_trace
static u8 * format_ip6_rewrite_trace(u8 *s, va_list *args)
Definition: ip6_forward.c:984
format_ip6_lookup_trace
static u8 * format_ip6_lookup_trace(u8 *s, va_list *args)
Definition: ip6_forward.c:967
IP6_REWRITE_NEXT_FRAGMENT
@ IP6_REWRITE_NEXT_FRAGMENT
Definition: ip6_forward.c:1703
show_ip6_local_command_fn
static clib_error_t * show_ip6_local_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ip6_forward.c:2967
IP_LOCAL_NEXT_PUNT
@ IP_LOCAL_NEXT_PUNT
Definition: lookup.h:112
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123