FD.io VPP  v16.06
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_interface_address_t
 
struct  ip6_forward_next_trace_t
 

Enumerations

enum  ip6_discover_neighbor_next_t { IP6_DISCOVER_NEIGHBOR_NEXT_DROP, IP6_DISCOVER_NEIGHBOR_NEXT_REPLY_TX, IP6_DISCOVER_NEIGHBOR_N_NEXT }
 
enum  ip6_discover_neighbor_error_t { IP6_DISCOVER_NEIGHBOR_ERROR_DROP, IP6_DISCOVER_NEIGHBOR_ERROR_REQUEST_SENT }
 
enum  ip6_rewrite_next_t { IP6_REWRITE_NEXT_DROP }
 

Functions

static void compute_prefix_lengths_in_search_order (ip6_main_t *im)
 
u32 ip6_fib_lookup_with_table (ip6_main_t *im, u32 fib_index, ip6_address_t *dst)
 
u32 ip6_fib_lookup (ip6_main_t *im, u32 sw_if_index, ip6_address_t *dst)
 
void vnet_ip6_fib_init (ip6_main_t *im, u32 fib_index)
 
static ip6_fib_tcreate_fib_with_table_id (ip6_main_t *im, u32 table_id)
 
ip6_fib_tfind_ip6_fib_by_table_index_or_id (ip6_main_t *im, u32 table_index_or_id, u32 flags)
 Get or create an IPv6 fib. More...
 
void ip6_add_del_route (ip6_main_t *im, ip6_add_del_route_args_t *a)
 
void ip6_add_del_route_next_hop (ip6_main_t *im, u32 flags, ip6_address_t *dst_address, u32 dst_address_length, ip6_address_t *next_hop, u32 next_hop_sw_if_index, u32 next_hop_weight, u32 adj_index, u32 explicit_fib_index)
 
u32 ip6_get_route (ip6_main_t *im, u32 table_index_or_table_id, u32 flags, ip6_address_t *address, u32 address_length)
 
void ip6_foreach_matching_route (ip6_main_t *im, u32 table_index_or_table_id, u32 flags, ip6_address_t *dst_address, u32 address_length, ip6_address_t **results, u8 **result_lengths)
 
void ip6_maybe_remap_adjacencies (ip6_main_t *im, u32 table_index_or_table_id, u32 flags)
 
void ip6_delete_matching_routes (ip6_main_t *im, u32 table_index_or_table_id, u32 flags, ip6_address_t *address, u32 address_length)
 
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)
 
always_inline uword ip6_lookup_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_indirect)
 
void ip6_adjacency_set_interface_route (vnet_main_t *vnm, ip_adjacency_t *adj, u32 sw_if_index, u32 if_address_index)
 
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_routes (ip6_main_t *im, u32 fib_index, ip6_address_t *address, u32 address_length)
 
static clib_error_tip6_add_del_interface_address_internal (vlib_main_t *vm, u32 sw_if_index, ip6_address_t *new_address, u32 new_length, u32 redistribute, u32 insert_routes, u32 is_del)
 
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)
 
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)
 
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)
 
static uword ip6_lookup (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static u8format_ip6_lookup_trace (u8 *s, va_list *args)
 
static uword ip6_indirect (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static u8format_ip6_forward_next_trace (u8 *s, va_list *args)
 
static u8format_ip6_rewrite_trace (u8 *s, va_list *args)
 
static uword ip6_drop_or_punt (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, ip6_error_t error_code)
 
static uword ip6_drop (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword ip6_punt (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword ip6_miss (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
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 uword ip6_local (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
void ip6_register_protocol (u32 protocol, u32 node_index)
 
static uword ip6_discover_neighbor (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
clib_error_tip6_probe_neighbor (vlib_main_t *vm, ip6_address_t *dst, u32 sw_if_index)
 
always_inline uword ip6_rewrite_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int rewrite_for_locally_received_packets)
 
static uword ip6_rewrite_transit (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword ip6_rewrite_local (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static clib_error_tip6_lookup_init (vlib_main_t *vm)
 
static clib_error_tadd_del_ip6_interface_table (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
void ip6_link_local_address_from_ethernet_mac_address (ip6_address_t *ip, u8 *mac)
 
void ip6_ethernet_mac_address_from_link_local_address (u8 *mac, ip6_address_t *ip)
 
static clib_error_ttest_ip6_link_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
int vnet_set_ip6_flow_hash (u32 table_id, u32 flow_hash_config)
 
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)
 
static clib_error_tip6_config (vlib_main_t *vm, unformat_input_t *input)
 

Variables

vlib_node_registration_t ip6_lookup_node
 (constructor) VLIB_REGISTER_NODE (ip6_lookup_node) More...
 
vlib_node_registration_t ip6_indirect_node
 (constructor) VLIB_REGISTER_NODE (ip6_indirect_node) More...
 
vlib_node_registration_t ip6_drop_node
 (constructor) VLIB_REGISTER_NODE (ip6_drop_node) More...
 
vlib_node_registration_t ip6_punt_node
 (constructor) VLIB_REGISTER_NODE (ip6_punt_node) More...
 
vlib_node_registration_t ip6_miss_node
 (constructor) VLIB_REGISTER_NODE (ip6_miss_node) More...
 
vlib_node_registration_t ip6_multicast_node
 (constructor) VLIB_REGISTER_NODE (ip6_multicast_node) More...
 
vlib_node_registration_t ip6_local_node
 (constructor) VLIB_REGISTER_NODE (ip6_local_node) More...
 
static char * ip6_discover_neighbor_error_strings []
 
vlib_node_registration_t ip6_discover_neighbor_node
 (constructor) VLIB_REGISTER_NODE (ip6_discover_neighbor_node) More...
 
vlib_node_registration_t ip6_rewrite_node
 (constructor) VLIB_REGISTER_NODE (ip6_rewrite_node) More...
 
vlib_node_registration_t ip6_rewrite_local_node
 (constructor) VLIB_REGISTER_NODE (ip6_rewrite_local_node) More...
 
ip6_main_t ip6_main
 
vlib_cli_command_t set_interface_ip_table_command
 (constructor) VLIB_CLI_COMMAND (set_interface_ip_table_command) More...
 
vlib_cli_command_t test_link_command
 (constructor) VLIB_CLI_COMMAND (test_link_command) More...
 
vlib_cli_command_t set_ip6_flow_hash_command
 (constructor) VLIB_CLI_COMMAND (set_ip6_flow_hash_command) More...
 
vlib_cli_command_t show_ip_local
 (constructor) VLIB_CLI_COMMAND (show_ip_local) More...
 
vlib_cli_command_t set_ip6_classify_command
 (constructor) VLIB_CLI_COMMAND (set_ip6_classify_command) More...
 

Enumeration Type Documentation

Enumerator
IP6_DISCOVER_NEIGHBOR_ERROR_DROP 
IP6_DISCOVER_NEIGHBOR_ERROR_REQUEST_SENT 

Definition at line 1924 of file ip6_forward.c.

Enumerator
IP6_DISCOVER_NEIGHBOR_NEXT_DROP 
IP6_DISCOVER_NEIGHBOR_NEXT_REPLY_TX 
IP6_DISCOVER_NEIGHBOR_N_NEXT 

Definition at line 1918 of file ip6_forward.c.

Enumerator
IP6_REWRITE_NEXT_DROP 

Definition at line 2201 of file ip6_forward.c.

Function Documentation

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

Definition at line 2565 of file ip6_forward.c.

+ Here is the call graph for this function:

static void compute_prefix_lengths_in_search_order ( ip6_main_t im)
static

Definition at line 48 of file ip6_forward.c.

+ Here is the caller graph for this function:

static ip6_fib_t* create_fib_with_table_id ( ip6_main_t im,
u32  table_id 
)
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_fib_t* find_ip6_fib_by_table_index_or_id ( ip6_main_t im,
u32  table_index_or_id,
u32  flags 
)

Get or create an IPv6 fib.

Get or create an IPv6 fib with the provided fib ID or index. The fib ID is a possibly-sparse user-defined value while the fib index defines the position of the fib in the fib vector.

Parameters
imip6_main pointer.
table_index_or_idThe table index if IP6_ROUTE_FLAG_FIB_INDEX bit is set in flags. Otherwise, when set to ~0, an arbitrary and unused fib ID is picked and can be retrieved with ret->table_id. Otherwise, it is the fib ID to be used to retrieve or create the desired fib.
flagsIndicates whether table_index_or_id is the fib index or ID. When the bit IP6_ROUTE_FLAG_FIB_INDEX is set, table_index_or_id is considered as the fib index, and the fib ID otherwise.
Returns
A pointer to the retrieved or created fib.
Remarks
When getting a fib with the fib index, the fib MUST already exist.

Definition at line 185 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 1308 of file ip6_forward.c.

+ Here is the call graph for this function:

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

Definition at line 1321 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 1340 of file ip6_forward.c.

+ Here is the call graph for this function:

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 1155 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t * ip6_add_del_interface_address_internal ( vlib_main_t vm,
u32  sw_if_index,
ip6_address_t new_address,
u32  new_length,
u32  redistribute,
u32  insert_routes,
u32  is_del 
)
static

Definition at line 1090 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ip6_add_del_route ( ip6_main_t im,
ip6_add_del_route_args_t a 
)

Definition at line 208 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ip6_add_del_route_next_hop ( ip6_main_t im,
u32  flags,
ip6_address_t dst_address,
u32  dst_address_length,
ip6_address_t next_hop,
u32  next_hop_sw_if_index,
u32  next_hop_weight,
u32  adj_index,
u32  explicit_fib_index 
)

Definition at line 301 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 983 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ip6_adjacency_set_interface_route ( vnet_main_t vnm,
ip_adjacency_t adj,
u32  sw_if_index,
u32  if_address_index 
)

Definition at line 945 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* ip6_config ( vlib_main_t vm,
unformat_input_t input 
)
static

Definition at line 2829 of file ip6_forward.c.

+ Here is the call graph for this function:

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

Definition at line 1040 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ip6_delete_matching_routes ( ip6_main_t im,
u32  table_index_or_table_id,
u32  flags,
ip6_address_t address,
u32  address_length 
)

Definition at line 620 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword ip6_discover_neighbor ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 1930 of file ip6_forward.c.

+ Here is the call graph for this function:

static uword ip6_drop ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 1474 of file ip6_forward.c.

+ Here is the call graph for this function:

static uword ip6_drop_or_punt ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
ip6_error_t  error_code 
)
static

Definition at line 1451 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ip6_ethernet_mac_address_from_link_local_address ( u8 mac,
ip6_address_t ip 
)

Definition at line 2630 of file ip6_forward.c.

+ Here is the caller graph for this function:

u32 ip6_fib_lookup ( ip6_main_t im,
u32  sw_if_index,
ip6_address_t dst 
)

Definition at line 94 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 ip6_fib_lookup_with_table ( ip6_main_t im,
u32  fib_index,
ip6_address_t dst 
)

Definition at line 61 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ip6_foreach_matching_route ( ip6_main_t im,
u32  table_index_or_table_id,
u32  flags,
ip6_address_t dst_address,
u32  address_length,
ip6_address_t **  results,
u8 **  result_lengths 
)

Definition at line 547 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 1362 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 ip6_get_route ( ip6_main_t im,
u32  table_index_or_table_id,
u32  flags,
ip6_address_t address,
u32  address_length 
)

Definition at line 523 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword ip6_indirect ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 1279 of file ip6_forward.c.

+ Here is the call graph for this function:

void ip6_link_local_address_from_ethernet_mac_address ( ip6_address_t ip,
u8 mac 
)

Definition at line 2614 of file ip6_forward.c.

+ Here is the caller graph for this function:

static uword ip6_local ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 1669 of file ip6_forward.c.

+ Here is the call graph for this function:

static uword ip6_lookup ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 1258 of file ip6_forward.c.

+ Here is the call graph for this function:

static clib_error_t* ip6_lookup_init ( vlib_main_t vm)
static

Definition at line 2493 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

always_inline uword ip6_lookup_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  is_indirect 
)

Definition at line 665 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ip6_maybe_remap_adjacencies ( ip6_main_t im,
u32  table_index_or_table_id,
u32  flags 
)

Definition at line 601 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword ip6_miss ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 1486 of file ip6_forward.c.

+ Here is the call graph for this function:

clib_error_t* ip6_probe_neighbor ( vlib_main_t vm,
ip6_address_t dst,
u32  sw_if_index 
)

Definition at line 2129 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword ip6_punt ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 1480 of file ip6_forward.c.

+ Here is the call graph for this function:

void ip6_register_protocol ( u32  protocol,
u32  node_index 
)

Definition at line 1908 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

always_inline uword ip6_rewrite_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  rewrite_for_locally_received_packets 
)

Definition at line 2206 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static uword ip6_rewrite_local ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 2453 of file ip6_forward.c.

+ Here is the call graph for this function:

static uword ip6_rewrite_transit ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 2444 of file ip6_forward.c.

+ Here is the call graph for this function:

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

Definition at line 1204 of file ip6_forward.c.

+ Here is the call graph for this function:

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

Definition at line 1167 of file ip6_forward.c.

+ Here is the call graph for this function:

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 1544 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 ip6_tcp_udp_icmp_validate_checksum ( vlib_main_t vm,
vlib_buffer_t p0 
)

Definition at line 1639 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 2780 of file ip6_forward.c.

+ Here is the call graph for this function:

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 2685 of file ip6_forward.c.

+ Here is the call graph for this function:

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 2733 of file ip6_forward.c.

+ Here is the call graph for this function:

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

Definition at line 2643 of file ip6_forward.c.

+ Here is the call graph for this function:

void vnet_ip6_fib_init ( ip6_main_t im,
u32  fib_index 
)

Definition at line 101 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 2758 of file ip6_forward.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int vnet_set_ip6_flow_hash ( u32  table_id,
u32  flow_hash_config 
)

Definition at line 2669 of file ip6_forward.c.

+ Here is the caller graph for this function:

VNET_SW_INTERFACE_ADD_DEL_FUNCTION ( ip6_sw_interface_add_del  )

+ Here is the caller graph for this function:

VNET_SW_INTERFACE_ADMIN_UP_DOWN_FUNCTION ( ip6_sw_interface_admin_up_down  )

+ Here is the caller graph for this function:

Variable Documentation

char* ip6_discover_neighbor_error_strings[]
static
Initial value:

Definition at line 2105 of file ip6_forward.c.

vlib_node_registration_t ip6_discover_neighbor_node
Initial value:
= {
.function = ip6_discover_neighbor,
.name = "ip6-discover-neighbor",
.vector_size = sizeof (u32),
.next_nodes = {
[IP6_DISCOVER_NEIGHBOR_NEXT_REPLY_TX] = "interface-output",
},
}
static u8 * format_ip6_forward_next_trace(u8 *s, va_list *args)
Definition: ip6_forward.c:1308
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
static uword ip6_discover_neighbor(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip6_forward.c:1930
static char * ip6_discover_neighbor_error_strings[]
Definition: ip6_forward.c:2105

(constructor) VLIB_REGISTER_NODE (ip6_discover_neighbor_node)

Definition at line 2111 of file ip6_forward.c.

vlib_node_registration_t ip6_drop_node
Initial value:
= {
.function = ip6_drop,
.name = "ip6-drop",
.vector_size = sizeof (u32),
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}
static uword ip6_drop(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip6_forward.c:1474
static u8 * format_ip6_forward_next_trace(u8 *s, va_list *args)
Definition: ip6_forward.c:1308
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (ip6_drop_node)

Definition at line 1491 of file ip6_forward.c.

vlib_node_registration_t ip6_indirect_node
Initial value:
= {
.function = ip6_indirect,
.name = "ip6-indirect",
.vector_size = sizeof (u32),
.format_trace = format_ip6_lookup_trace,
.n_next_nodes = IP_LOOKUP_N_NEXT,
.next_nodes = IP6_LOOKUP_NEXT_NODES,
}
static u8 * format_ip6_lookup_trace(u8 *s, va_list *args)
Definition: ip6_forward.c:1321
#define IP6_LOOKUP_NEXT_NODES
Definition: lookup.h:110
static uword ip6_indirect(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip6_forward.c:1279
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (ip6_indirect_node)

Definition at line 1287 of file ip6_forward.c.

vlib_node_registration_t ip6_local_node
Initial value:
= {
.function = ip6_local,
.name = "ip6-local",
.vector_size = sizeof (u32),
.n_next_nodes = IP_LOCAL_N_NEXT,
.next_nodes = {
[IP_LOCAL_NEXT_DROP] = "error-drop",
[IP_LOCAL_NEXT_PUNT] = "error-punt",
[IP_LOCAL_NEXT_UDP_LOOKUP] = "ip6-udp-lookup",
[IP_LOCAL_NEXT_ICMP] = "ip6-icmp-input",
},
}
static uword ip6_local(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip6_forward.c:1669
static u8 * format_ip6_forward_next_trace(u8 *s, va_list *args)
Definition: ip6_forward.c:1308
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (ip6_local_node)

Definition at line 1892 of file ip6_forward.c.

vlib_node_registration_t ip6_lookup_node
Initial value:
= {
.function = ip6_lookup,
.name = "ip6-lookup",
.vector_size = sizeof (u32),
.format_trace = format_ip6_lookup_trace,
.n_next_nodes = IP_LOOKUP_N_NEXT,
.next_nodes = IP6_LOOKUP_NEXT_NODES,
}
static u8 * format_ip6_lookup_trace(u8 *s, va_list *args)
Definition: ip6_forward.c:1321
#define IP6_LOOKUP_NEXT_NODES
Definition: lookup.h:110
unsigned int u32
Definition: types.h:88
static uword ip6_lookup(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip6_forward.c:1258

(constructor) VLIB_REGISTER_NODE (ip6_lookup_node)

Definition at line 1267 of file ip6_forward.c.

ip6_main_t ip6_main

Definition at line 2490 of file ip6_forward.c.

vlib_node_registration_t ip6_miss_node
Initial value:
= {
.function = ip6_miss,
.name = "ip6-miss",
.vector_size = sizeof (u32),
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}
static uword ip6_miss(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip6_forward.c:1486
static u8 * format_ip6_forward_next_trace(u8 *s, va_list *args)
Definition: ip6_forward.c:1308
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (ip6_miss_node)

Definition at line 1517 of file ip6_forward.c.

vlib_node_registration_t ip6_multicast_node
Initial value:
= {
.function = ip6_drop,
.name = "ip6-multicast",
.vector_size = sizeof (u32),
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-drop",
},
}
static uword ip6_drop(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip6_forward.c:1474
static u8 * format_ip6_forward_next_trace(u8 *s, va_list *args)
Definition: ip6_forward.c:1308
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (ip6_multicast_node)

Definition at line 1530 of file ip6_forward.c.

vlib_node_registration_t ip6_punt_node
Initial value:
= {
.function = ip6_punt,
.name = "ip6-punt",
.vector_size = sizeof (u32),
.n_next_nodes = 1,
.next_nodes = {
[0] = "error-punt",
},
}
static u8 * format_ip6_forward_next_trace(u8 *s, va_list *args)
Definition: ip6_forward.c:1308
unsigned int u32
Definition: types.h:88
static uword ip6_punt(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip6_forward.c:1480

(constructor) VLIB_REGISTER_NODE (ip6_punt_node)

Definition at line 1504 of file ip6_forward.c.

vlib_node_registration_t ip6_rewrite_local_node
Initial value:
= {
.function = ip6_rewrite_local,
.name = "ip6-rewrite-local",
.vector_size = sizeof (u32),
.sibling_of = "ip6-rewrite",
.format_trace = format_ip6_rewrite_trace,
.n_next_nodes = 1,
.next_nodes = {
[IP6_REWRITE_NEXT_DROP] = "error-drop",
},
}
static uword ip6_rewrite_local(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip6_forward.c:2453
static u8 * format_ip6_rewrite_trace(u8 *s, va_list *args)
Definition: ip6_forward.c:1340
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (ip6_rewrite_local_node)

Definition at line 2474 of file ip6_forward.c.

vlib_node_registration_t ip6_rewrite_node
Initial value:
= {
.function = ip6_rewrite_transit,
.name = "ip6-rewrite",
.vector_size = sizeof (u32),
.format_trace = format_ip6_rewrite_trace,
.n_next_nodes = 1,
.next_nodes = {
[IP6_REWRITE_NEXT_DROP] = "error-drop",
},
}
static u8 * format_ip6_rewrite_trace(u8 *s, va_list *args)
Definition: ip6_forward.c:1340
static uword ip6_rewrite_transit(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip6_forward.c:2444
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (ip6_rewrite_node)

Definition at line 2461 of file ip6_forward.c.

vlib_cli_command_t set_interface_ip_table_command
Initial value:
= {
.path = "set interface ip6 table",
.short_help = "set interface ip6 table <intfc> <table-id>"
}
static clib_error_t * add_del_ip6_interface_table(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ip6_forward.c:2565

(constructor) VLIB_CLI_COMMAND (set_interface_ip_table_command)

Definition at line 2607 of file ip6_forward.c.

vlib_cli_command_t set_ip6_classify_command
Initial value:
= {
.path = "set ip6 classify",
.short_help =
"set ip6 classify intfc <int> table-index <index>",
}
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:2780

(constructor) VLIB_CLI_COMMAND (set_ip6_classify_command)

Definition at line 2821 of file ip6_forward.c.

vlib_cli_command_t set_ip6_flow_hash_command
Initial value:
= {
.path = "set ip6 flow-hash",
.short_help =
"set ip table flow-hash table <fib-id> src dst sport dport proto reverse",
}
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:2685

(constructor) VLIB_CLI_COMMAND (set_ip6_flow_hash_command)

Definition at line 2725 of file ip6_forward.c.

vlib_cli_command_t show_ip_local
Initial value:
= {
.path = "show ip6 local",
.short_help = "Show ip6 local protocol table",
}
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:2733

(constructor) VLIB_CLI_COMMAND (show_ip_local)

Definition at line 2752 of file ip6_forward.c.

vlib_cli_command_t test_link_command
Initial value:
= {
.path = "test ip6 link",
.short_help = "test ip6 link <mac-address>",
}
static clib_error_t * test_ip6_link_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: ip6_forward.c:2643

(constructor) VLIB_CLI_COMMAND (test_link_command)

Definition at line 2663 of file ip6_forward.c.