u16 del
Add(0) or del(1) operation.
vnet_main_t * vnet_main
Pointer to vnet main for convenience.
#define hash_set(h, key, value)
sll srl srl sll sra u16x4 i
u16 ipfix_setid
Setid of IPFix for which client is intereseted 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.
#define hash_unset(h, key)
vnet_main_t * vnet_get_main(void)
ipfix_collector_main_t ipfix_collector_main
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.
u16 set_id
Setid of IPFix for which client is intereseted in getting packets.
#define pool_get(P, E)
Allocate an object E from a pool P (unspecified alignment).
static uword vlib_node_add_next(vlib_main_t *vm, uword node, uword next_node)
vlib_main_t * vlib_main
Pointer to VLib main for the node - ipfix-collector.
#define VLIB_INIT_FUNCTION(x)
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.
#define pool_put(P, E)
Free an object E in pool P.
#define vec_dup(V)
Return copy of vector (no header, no alignment)
#define vec_free(V)
Free vector's memory (no header).
static clib_error_t * ipfix_collector_init(vlib_main_t *vm)
#define hash_create(elts, value_bytes)
u8 * client_name
String containing name of the client interested in getting ip-fix packets.
int ipfix_collector_reg_setid(vlib_main_t *vm, ipfix_client_add_del_t *info)
IP-FIX SetID registration function.
IP-FIX collector main structure to SetID to client node ID mapping.
#define IPFIX_COLLECTOR_ERR_REG_EXISTS
Structure other nodes to use for registering with IP-FIX collector.
void udp_register_dst_port(vlib_main_t *vm, udp_dst_port_t dst_port, u32 node_index, u8 is_ip4)
#define IPFIX_COLLECTOR_ERR_INVALID_PARAM
u32 client_node
Node index where packets have to be redirected.