FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
ipfixcollector.h File Reference
+ Include dependency graph for ipfixcollector.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ipfix_client_add_del_t
 Structure other nodes to use for registering with IP-FIX collector. More...
 
struct  ipfix_client
 IP-FIX collector internal client structure to store SetID to client node ID. More...
 
struct  ipfix_collector_main_t
 IP-FIX collector main structure to SetID to client node ID mapping. More...
 

Macros

#define IPFIX_COLLECTOR_CLIENT_NAME_MAX   64
 
#define IPFIX_COLLECTOR_ERR_INVALID_PARAM   -1
 
#define IPFIX_COLLECTOR_ERR_REG_EXISTS   -2
 

Functions

int ipfix_collector_reg_setid (vlib_main_t *vm, ipfix_client_add_del_t *info)
 IP-FIX SetID registration function. More...
 
static ipfix_clientipfix_collector_get_client (u16 set_id)
 

Variables

vlib_node_registration_t ipfix_collector_node
 (constructor) VLIB_REGISTER_NODE (ipfix_collector_node) More...
 
ipfix_collector_main_t ipfix_collector_main
 

Macro Definition Documentation

◆ IPFIX_COLLECTOR_CLIENT_NAME_MAX

#define IPFIX_COLLECTOR_CLIENT_NAME_MAX   64

Definition at line 23 of file ipfixcollector.h.

◆ IPFIX_COLLECTOR_ERR_INVALID_PARAM

#define IPFIX_COLLECTOR_ERR_INVALID_PARAM   -1

Definition at line 25 of file ipfixcollector.h.

◆ IPFIX_COLLECTOR_ERR_REG_EXISTS

#define IPFIX_COLLECTOR_ERR_REG_EXISTS   -2

Definition at line 26 of file ipfixcollector.h.

Function Documentation

◆ ipfix_collector_get_client()

static ipfix_client* ipfix_collector_get_client ( u16  set_id)
inlinestatic

Definition at line 107 of file ipfixcollector.h.

+ Here is the caller graph for this function:

◆ ipfix_collector_reg_setid()

int ipfix_collector_reg_setid ( vlib_main_t vm,
ipfix_client_add_del_t info 
)

IP-FIX SetID registration function.

This function can be used by other VPP graph nodes to receive IP-FIX packets with a particular setid.

Parameters
vmVlib main of the graph node which is interested in getting IP-Fix packet.
infoStructure describing the client node which is interested in getting the IP-Fix packets for a SetID.
Returns
0 on success.
Error codes(<0) otherwise.

Definition at line 39 of file ipfixcollector.c.

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

Variable Documentation

◆ ipfix_collector_main

ipfix_collector_main_t ipfix_collector_main

Definition at line 21 of file ipfixcollector.c.

◆ ipfix_collector_node

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",
},
}

(constructor) VLIB_REGISTER_NODE (ipfix_collector_node)

Definition at line 275 of file node.c.

VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
IPFIX_COLLECTOR_NEXT_DROP
@ IPFIX_COLLECTOR_NEXT_DROP
Definition: node.c:42
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
format_ipfix_collector_trace
static u8 * format_ipfix_collector_trace(u8 *s, va_list *args)
Definition: node.c:57
ipfix_collector_node_fn
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:92
IPFIX_COLLECTOR_N_NEXT
@ IPFIX_COLLECTOR_N_NEXT
Definition: node.c:43
u32
unsigned int u32
Definition: types.h:88
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123
ipfix_collector_error_strings
static char * ipfix_collector_error_strings[]
Definition: node.c:34