FD.io VPP  v18.01.2-1-g9b554f3
Vector Packet Processing
node.c File Reference
+ Include dependency graph for node.c:

Go to the source code of this file.

Data Structures

struct  ipfix_collector_trace_t
 

Macros

#define foreach_ipfix_collector_error
 

Enumerations

enum  flowperpkt_error_t { IPFIX_COLLECTOR_N_ERROR }
 
enum  ipfix_collector_next_t { IPFIX_COLLECTOR_NEXT_DROP, IPFIX_COLLECTOR_N_NEXT }
 

Functions

static u8format_ipfix_collector_trace (u8 *s, va_list *args)
 
uword ipfix_collector_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 Node to receive IP-Fix packets. More...
 

Variables

static char * ipfix_collector_error_strings []
 
vlib_node_registration_t ipfix_collector_node
 (constructor) VLIB_REGISTER_NODE (ipfix_collector_node) More...
 

Macro Definition Documentation

#define foreach_ipfix_collector_error
Value:
_(PROCESSED, "Number of IP-Fix packets processed") \
_(NO_LISTENER, "Number of IP-Fix packets with no listener")

Definition at line 23 of file node.c.

Enumeration Type Documentation

Enumerator
IPFIX_COLLECTOR_N_ERROR 

Definition at line 27 of file node.c.

Enumerator
IPFIX_COLLECTOR_NEXT_DROP 
IPFIX_COLLECTOR_N_NEXT 

Definition at line 41 of file node.c.

Function Documentation

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

Definition at line 58 of file node.c.

+ Here is the call graph for this function:

uword ipfix_collector_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)

Node to receive IP-Fix packets.

Node Identifier:
ipfix-collector

This function receives IP-FIX packets and forwards them to other graph nodes based on SetID field in IP-FIX.

Parameters
vmvlib_main_t corresponding to the current thread.
nodevlib_node_runtime_t data for this node.
framevlib_frame_t whose contents should be dispatched.
Graph mechanics: buffer, next index usage

Uses:

  • vlib_buffer_get_current(p0)
    • Parses IP-Fix packet to extract SetId which will be used to decide next node where packets should be enqueued.

Next Index:

  • Dispatches the packet to other VPP graph nodes based on their registartion for the IP-Fix SetId using API ipfix_collector_reg_setid().

Definition at line 93 of file node.c.

+ Here is the call graph for this function:

Variable Documentation

char* ipfix_collector_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_ipfix_collector_error
Definition: node.c:23

Definition at line 35 of file node.c.

vlib_node_registration_t ipfix_collector_node
Initial value:
= {
.name = "ipfix-collector",
.vector_size = sizeof (u32),
.n_next_nodes = IPFIX_COLLECTOR_N_NEXT,
.next_nodes = {
[IPFIX_COLLECTOR_NEXT_DROP] = "error-drop",
},
}
static u8 * format_ipfix_collector_trace(u8 *s, va_list *args)
Definition: node.c:58
#define ARRAY_LEN(x)
Definition: clib.h:59
unsigned int u32
Definition: types.h:88
uword ipfix_collector_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Node to receive IP-Fix packets.
Definition: node.c:93
static char * ipfix_collector_error_strings[]
Definition: node.c:35

(constructor) VLIB_REGISTER_NODE (ipfix_collector_node)

Definition at line 54 of file node.c.