16 #ifndef PLUGINS_IPFIXCOLLECTOR_PLUGIN_IPFIXCOLLECTOR_IPFIXCOLLECTOR_H_ 17 #define PLUGINS_IPFIXCOLLECTOR_PLUGIN_IPFIXCOLLECTOR_IPFIXCOLLECTOR_H_ 23 #define IPFIX_COLLECTOR_CLIENT_NAME_MAX 64 25 #define IPFIX_COLLECTOR_ERR_INVALID_PARAM -1 26 #define IPFIX_COLLECTOR_ERR_REG_EXISTS -2 u16 del
Add(0) or del(1) operation.
vnet_main_t * vnet_main
Pointer to vnet main for convenience.
u16 ipfix_setid
Setid of IPFix for which client is interested in getting packets.
ipfix_client * client_reg_pool
Pool of Client node information for the IP-FIX SetID.
IP-FIX collector internal client structure to store SetID to client node ID.
u32 client_next_node
ipfix-collector next index where packets have to be redirected.
uword * client_reg_table
Hash table to map IP-FIX setid to a client registration pool.
Fixed length block allocator.
static ipfix_client * ipfix_collector_get_client(u16 set_id)
u16 set_id
Setid of IPFix for which client is interested in getting packets.
ipfix_collector_main_t ipfix_collector_main
int ipfix_collector_reg_setid(vlib_main_t *vm, ipfix_client_add_del_t *info)
IP-FIX SetID registration function.
vlib_main_t * vlib_main
Pointer to VLib main for the node - ipfix-collector.
u8 * client_name
String containing name of the client interested in getting ip-fix packets.
u32 client_node
Node index where packets have to be redirected.
vlib_node_registration_t ipfix_collector_node
(constructor) VLIB_REGISTER_NODE (ipfix_collector_node)
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
u8 * client_name
String containing name of the client interested in getting ip-fix packets.
struct _vlib_node_registration vlib_node_registration_t
IP-FIX collector main structure to SetID to client node ID mapping.
Structure other nodes to use for registering with IP-FIX collector.
u32 client_node
Node index where packets have to be redirected.