FD.io VPP  v20.01-48-g3e0dafb74
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
vlib_main_tVlib main of the graph node which is interseted in getting IP-Fix packet.
ipfix_client_add_del_tStructure 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",
},
}
static u8 * format_ipfix_collector_trace(u8 *s, va_list *args)
Definition: node.c:58
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
#define ARRAY_LEN(x)
Definition: clib.h:62
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 276 of file node.c.