FD.io VPP  v16.06
Vector Packet Processing
ip4_hop_by_hop.c File Reference
+ Include dependency graph for ip4_hop_by_hop.c:

Go to the source code of this file.

Data Structures

struct  ip4_hop_by_hop_main_t
 
struct  ip4_hop_by_hop_trace_t
 

Macros

#define foreach_ip4_hop_by_hop_error   _(PROCESSED, "Pkts with ip4 hop-by-hop options")
 

Enumerations

enum  ip4_hop_by_hop_error_t { IP4_HOP_BY_HOP_N_ERROR }
 

Functions

static u8format_ip4_hop_by_hop_trace (u8 *s, va_list *args)
 
static uword ip4_hop_by_hop_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static clib_error_tip4_hop_by_hop_init (vlib_main_t *vm)
 

Variables

ip4_hop_by_hop_main_t ip4_hop_by_hop_main
 
vlib_node_registration_t ip4_hop_by_hop_node
 (constructor) VLIB_REGISTER_NODE (ip4_hop_by_hop_node) More...
 
static char * ip4_hop_by_hop_error_strings []
 
vlib_node_registration_t ip4_add_hop_by_hop_node
 (constructor) VLIB_REGISTER_NODE (ip4_add_hop_by_hop_node) More...
 
vlib_node_registration_t ip4_pop_hop_by_hop_node
 (constructor) VLIB_REGISTER_NODE (ip4_pop_hop_by_hop_node) More...
 

Macro Definition Documentation

#define foreach_ip4_hop_by_hop_error   _(PROCESSED, "Pkts with ip4 hop-by-hop options")

Definition at line 55 of file ip4_hop_by_hop.c.

Enumeration Type Documentation

Enumerator
IP4_HOP_BY_HOP_N_ERROR 

Definition at line 58 of file ip4_hop_by_hop.c.

Function Documentation

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

Definition at line 42 of file ip4_hop_by_hop.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* ip4_hop_by_hop_init ( vlib_main_t vm)
static

Definition at line 267 of file ip4_hop_by_hop.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 72 of file ip4_hop_by_hop.c.

+ Here is the call graph for this function:

Variable Documentation

vlib_node_registration_t ip4_add_hop_by_hop_node
Initial value:
= {
.name = "ip4-add-hop-by-hop",
.vector_size = sizeof (u32),
.format_trace = format_ip4_hop_by_hop_trace,
.error_strings = ip4_hop_by_hop_error_strings,
.n_next_nodes = IP_LOOKUP_N_NEXT,
.next_nodes = IP4_LOOKUP_NEXT_NODES,
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static uword ip4_hop_by_hop_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
#define IP4_LOOKUP_NEXT_NODES
Definition: lookup.h:93
static u8 * format_ip4_hop_by_hop_trace(u8 *s, va_list *args)
static char * ip4_hop_by_hop_error_strings[]
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (ip4_add_hop_by_hop_node)

Definition at line 236 of file ip4_hop_by_hop.c.

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

Definition at line 65 of file ip4_hop_by_hop.c.

ip4_hop_by_hop_main_t ip4_hop_by_hop_main

Definition at line 33 of file ip4_hop_by_hop.c.

vlib_node_registration_t ip4_hop_by_hop_node
Initial value:
= {
.name = "ip4-hop-by-hop",
.vector_size = sizeof (u32),
.format_trace = format_ip4_hop_by_hop_trace,
.error_strings = ip4_hop_by_hop_error_strings,
.n_next_nodes = IP_LOOKUP_N_NEXT,
.next_nodes = IP4_LOOKUP_NEXT_NODES,
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static uword ip4_hop_by_hop_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
#define IP4_LOOKUP_NEXT_NODES
Definition: lookup.h:93
static u8 * format_ip4_hop_by_hop_trace(u8 *s, va_list *args)
static char * ip4_hop_by_hop_error_strings[]
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (ip4_hop_by_hop_node)

Definition at line 35 of file ip4_hop_by_hop.c.

vlib_node_registration_t ip4_pop_hop_by_hop_node
Initial value:
= {
.name = "ip4-pop-hop-by-hop",
.vector_size = sizeof (u32),
.format_trace = format_ip4_hop_by_hop_trace,
.error_strings = ip4_hop_by_hop_error_strings,
.n_next_nodes = IP_LOOKUP_N_NEXT,
.next_nodes = IP4_LOOKUP_NEXT_NODES,
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static uword ip4_hop_by_hop_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
#define IP4_LOOKUP_NEXT_NODES
Definition: lookup.h:93
static u8 * format_ip4_hop_by_hop_trace(u8 *s, va_list *args)
static char * ip4_hop_by_hop_error_strings[]
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88

(constructor) VLIB_REGISTER_NODE (ip4_pop_hop_by_hop_node)

Definition at line 251 of file ip4_hop_by_hop.c.