FD.io VPP  v18.07.1-19-g511ce25
Vector Packet Processing
node.c File Reference
+ Include dependency graph for node.c:

Go to the source code of this file.

Data Structures

struct  srv6_localsid_sample_trace_t
 

Macros

#define foreach_srv6_localsid_counter
 

Enumerations

enum  srv6_localsid_sample_counters { SRV6_LOCALSID_N_COUNTERS }
 
enum  srv6_localsid_sample_next_t { SRV6_SAMPLE_LOCALSID_NEXT_ERROR, SRV6_SAMPLE_LOCALSID_NEXT_IP6LOOKUP, SRV6_SAMPLE_LOCALSID_N_NEXT }
 

Functions

static u8format_srv6_localsid_sample_trace (u8 *s, va_list *args)
 
static_always_inline void end_srh_processing (vlib_node_runtime_t *node, vlib_buffer_t *b0, ip6_header_t *ip0, ip6_sr_header_t *sr0, ip6_sr_localsid_t *ls0, u32 *next0, u8 psp, ip6_ext_header_t *prev0)
 Function doing End processing. More...
 
static uword srv6_localsid_sample_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

vlib_node_registration_t srv6_localsid_sample_node
 (constructor) VLIB_REGISTER_NODE (srv6_localsid_sample_node) More...
 
static char * srv6_localsid_counter_strings []
 

Macro Definition Documentation

#define foreach_srv6_localsid_counter
Value:
_(PROCESSED, "srv6-sample-localsid processed packets") \
_(NO_SRH, "(Error) No SRH.")

Definition at line 38 of file node.c.

Enumeration Type Documentation

Enumerator
SRV6_LOCALSID_N_COUNTERS 

Definition at line 42 of file node.c.

Enumerator
SRV6_SAMPLE_LOCALSID_NEXT_ERROR 
SRV6_SAMPLE_LOCALSID_NEXT_IP6LOOKUP 
SRV6_SAMPLE_LOCALSID_N_NEXT 

Definition at line 55 of file node.c.

Function Documentation

static_always_inline void end_srh_processing ( vlib_node_runtime_t node,
vlib_buffer_t b0,
ip6_header_t ip0,
ip6_sr_header_t sr0,
ip6_sr_localsid_t ls0,
u32 next0,
u8  psp,
ip6_ext_header_t *  prev0 
)

Function doing End processing.

Definition at line 65 of file node.c.

+ Here is the call graph for this function:

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

Definition at line 26 of file node.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 165 of file node.c.

+ Here is the call graph for this function:

Variable Documentation

char* srv6_localsid_counter_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_srv6_localsid_counter
Definition: node.c:38

Definition at line 49 of file node.c.

vlib_node_registration_t srv6_localsid_sample_node
Initial value:
= {
.name = "srv6-localsid-sample",
.vector_size = sizeof (u32),
.n_next_nodes = SRV6_SAMPLE_LOCALSID_N_NEXT,
.next_nodes = {
},
}
static uword srv6_localsid_sample_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: node.c:165
static u8 * format_srv6_localsid_sample_trace(u8 *s, va_list *args)
Definition: node.c:26
unsigned int u32
Definition: types.h:88
static char * srv6_localsid_counter_strings[]
Definition: node.c:49

(constructor) VLIB_REGISTER_NODE (srv6_localsid_sample_node)

Definition at line 36 of file node.c.