FD.io VPP  v21.01.1
Vector Packet Processing
icmp6.c File Reference
+ Include dependency graph for icmp6.c:

Go to the source code of this file.

Data Structures

struct  icmp6_main_t
 
struct  pg_icmp46_header_t
 

Enumerations

enum  icmp_input_next_t { ICMP_INPUT_NEXT_ERROR, ICMP_INPUT_N_NEXT, ICMP_INPUT_NEXT_PUNT, ICMP_INPUT_N_NEXT }
 
enum  icmp6_echo_request_next_t { ICMP6_ECHO_REQUEST_NEXT_LOOKUP, ICMP6_ECHO_REQUEST_NEXT_OUTPUT, ICMP6_ECHO_REQUEST_N_NEXT }
 
enum  ip6_icmp_error_next_t { IP6_ICMP_ERROR_NEXT_DROP, IP6_ICMP_ERROR_NEXT_LOOKUP, IP6_ICMP_ERROR_N_NEXT }
 

Functions

static u8format_ip6_icmp_type_and_code (u8 *s, va_list *args)
 
static u8format_icmp6_header (u8 *s, va_list *args)
 
u8format_icmp6_input_trace (u8 *s, va_list *va)
 
static uword ip6_icmp_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword ip6_icmp_echo_request (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
void icmp6_error_set_vnet_buffer (vlib_buffer_t *b, u8 type, u8 code, u32 data)
 
static u8 icmp6_icmp_type_to_error (u8 type)
 
static uword ip6_icmp_error (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword unformat_icmp_type_and_code (unformat_input_t *input, va_list *args)
 
static void icmp6_pg_edit_function (pg_main_t *pg, pg_stream_t *s, pg_edit_group_t *g, u32 *packets, u32 n_packets)
 
static void pg_icmp_header_init (pg_icmp46_header_t *p)
 
static uword unformat_pg_icmp_header (unformat_input_t *input, va_list *args)
 
void icmp6_register_type (vlib_main_t *vm, icmp6_type_t type, u32 node_index)
 
static clib_error_ticmp6_init (vlib_main_t *vm)
 

Variables

static char * icmp_error_strings []
 
icmp6_main_t icmp6_main
 
vlib_node_registration_t ip6_icmp_input_node
 (constructor) VLIB_REGISTER_NODE (ip6_icmp_input_node) More...
 
static vlib_node_registration_t ip6_icmp_echo_request_node
 (constructor) VLIB_REGISTER_NODE (ip6_icmp_echo_request_node) More...
 
vlib_node_registration_t ip6_icmp_error_node
 (constructor) VLIB_REGISTER_NODE (ip6_icmp_error_node) More...
 

Enumeration Type Documentation

◆ icmp6_echo_request_next_t

Enumerator
ICMP6_ECHO_REQUEST_NEXT_LOOKUP 
ICMP6_ECHO_REQUEST_NEXT_OUTPUT 
ICMP6_ECHO_REQUEST_N_NEXT 

Definition at line 258 of file icmp6.c.

◆ icmp_input_next_t

Enumerator
ICMP_INPUT_NEXT_ERROR 
ICMP_INPUT_N_NEXT 
ICMP_INPUT_NEXT_PUNT 
ICMP_INPUT_N_NEXT 

Definition at line 131 of file icmp6.c.

◆ ip6_icmp_error_next_t

Enumerator
IP6_ICMP_ERROR_NEXT_DROP 
IP6_ICMP_ERROR_NEXT_LOOKUP 
IP6_ICMP_ERROR_N_NEXT 

Definition at line 438 of file icmp6.c.

Function Documentation

◆ format_icmp6_header()

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

Definition at line 85 of file icmp6.c.

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

◆ format_icmp6_input_trace()

u8* format_icmp6_input_trace ( u8 s,
va_list *  va 
)

Definition at line 113 of file icmp6.c.

◆ format_ip6_icmp_type_and_code()

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

Definition at line 45 of file icmp6.c.

+ Here is the caller graph for this function:

◆ icmp6_error_set_vnet_buffer()

void icmp6_error_set_vnet_buffer ( vlib_buffer_t b,
u8  type,
u8  code,
u32  data 
)

Definition at line 446 of file icmp6.c.

+ Here is the caller graph for this function:

◆ icmp6_icmp_type_to_error()

static u8 icmp6_icmp_type_to_error ( u8  type)
static

Definition at line 454 of file icmp6.c.

+ Here is the caller graph for this function:

◆ icmp6_init()

static clib_error_t* icmp6_init ( vlib_main_t vm)
static

Definition at line 760 of file icmp6.c.

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

◆ icmp6_pg_edit_function()

static void icmp6_pg_edit_function ( pg_main_t pg,
pg_stream_t s,
pg_edit_group_t g,
u32 packets,
u32  n_packets 
)
static

Definition at line 648 of file icmp6.c.

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

◆ icmp6_register_type()

void icmp6_register_type ( vlib_main_t vm,
icmp6_type_t  type,
u32  node_index 
)

Definition at line 750 of file icmp6.c.

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

◆ ip6_icmp_echo_request()

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

Definition at line 266 of file icmp6.c.

+ Here is the call graph for this function:

◆ ip6_icmp_error()

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

Definition at line 472 of file icmp6.c.

+ Here is the call graph for this function:

◆ ip6_icmp_input()

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

Definition at line 158 of file icmp6.c.

+ Here is the call graph for this function:

◆ pg_icmp_header_init()

static void pg_icmp_header_init ( pg_icmp46_header_t p)
inlinestatic

Definition at line 686 of file icmp6.c.

+ Here is the caller graph for this function:

◆ unformat_icmp_type_and_code()

static uword unformat_icmp_type_and_code ( unformat_input_t input,
va_list *  args 
)
static

Definition at line 623 of file icmp6.c.

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

◆ unformat_pg_icmp_header()

static uword unformat_pg_icmp_header ( unformat_input_t input,
va_list *  args 
)
static

Definition at line 697 of file icmp6.c.

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

Variable Documentation

◆ icmp6_main

icmp6_main_t icmp6_main

Definition at line 155 of file icmp6.c.

◆ icmp_error_strings

char* icmp_error_strings[]
static
Initial value:
= {
#define _(f,s)
}

Definition at line 125 of file icmp6.c.

◆ ip6_icmp_echo_request_node

vlib_node_registration_t ip6_icmp_echo_request_node
static
Initial value:
= {
.function = ip6_icmp_echo_request,
.name = "ip6-icmp-echo-request",
.vector_size = sizeof (u32),
.format_trace = format_icmp6_input_trace,
.n_next_nodes = ICMP6_ECHO_REQUEST_N_NEXT,
.next_nodes = {
[ICMP6_ECHO_REQUEST_NEXT_OUTPUT] = "interface-output",
},
}
unsigned int u32
Definition: types.h:88
static uword ip6_icmp_echo_request(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: icmp6.c:266
u8 * format_icmp6_input_trace(u8 *s, va_list *va)
Definition: icmp6.c:113

(constructor) VLIB_REGISTER_NODE (ip6_icmp_echo_request_node)

Definition at line 422 of file icmp6.c.

◆ ip6_icmp_error_node

vlib_node_registration_t ip6_icmp_error_node
Initial value:
= {
.function = ip6_icmp_error,
.name = "ip6-icmp-error",
.vector_size = sizeof (u32),
.error_strings = icmp_error_strings,
.n_next_nodes = IP6_ICMP_ERROR_N_NEXT,
.next_nodes = {
[IP6_ICMP_ERROR_NEXT_DROP] = "error-drop",
[IP6_ICMP_ERROR_NEXT_LOOKUP] = "ip6-lookup",
},
.format_trace = format_icmp6_input_trace,
}
static char * icmp_error_strings[]
Definition: icmp6.c:125
unsigned int u32
Definition: types.h:88
static uword ip6_icmp_error(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: icmp6.c:472
u8 * format_icmp6_input_trace(u8 *s, va_list *va)
Definition: icmp6.c:113
#define ARRAY_LEN(x)
Definition: clib.h:67

(constructor) VLIB_REGISTER_NODE (ip6_icmp_error_node)

Definition at line 603 of file icmp6.c.

◆ ip6_icmp_input_node

vlib_node_registration_t ip6_icmp_input_node
Initial value:
= {
.function = ip6_icmp_input,
.name = "ip6-icmp-input",
.vector_size = sizeof (u32),
.format_trace = format_icmp6_input_trace,
.error_strings = icmp_error_strings,
.n_next_nodes = 1,
.next_nodes = {
[ICMP_INPUT_NEXT_PUNT] = "ip6-punt",
},
}
static char * icmp_error_strings[]
Definition: icmp6.c:125
static uword ip6_icmp_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: icmp6.c:158
unsigned int u32
Definition: types.h:88
u8 * format_icmp6_input_trace(u8 *s, va_list *va)
Definition: icmp6.c:113
#define ARRAY_LEN(x)
Definition: clib.h:67

(constructor) VLIB_REGISTER_NODE (ip6_icmp_input_node)

Definition at line 240 of file icmp6.c.