FD.io VPP  v17.01-9-ge7dcee4
Vector Packet Processing
flow_report_classify.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ipfix_classify_table_t
 
struct  flow_report_classify_main_t
 

Macros

#define foreach_ipfix_ip4_field
 
#define foreach_ipfix_ip6_field
 
#define foreach_ipfix_tcpudp_field
 
#define foreach_ipfix_tcp_field
 
#define foreach_ipfix_udp_field
 
#define foreach_ipfix_transport_protocol_field
 
#define foreach_ipfix_field
 

Functions

static_always_inline u8 ipfix_classify_table_index_valid (u32 index)
 
static_always_inline ipfix_classify_table_tipfix_classify_add_table (void)
 
static_always_inline void ipfix_classify_delete_table (u32 index)
 
u8ipfix_classify_template_rewrite (flow_report_main_t *frm, flow_report_t *fr, ip4_address_t *collector_address, ip4_address_t *src_address, u16 collector_port)
 
vlib_frame_tipfix_classify_send_flows (flow_report_main_t *frm, flow_report_t *fr, vlib_frame_t *f, u32 *to_next, u32 node_index)
 

Variables

flow_report_classify_main_t flow_report_classify_main
 

Macro Definition Documentation

#define foreach_ipfix_field
Value:
if (ip_version == 4) { \
ip = (ip4_header_t *)ip_start; \
tcpudp = (tcpudp_header_t *)(ip+1); \
} else { \
ip6 = (ip6_header_t *)ip_start; \
tcpudp = (tcpudp_header_t *)(ip6+1); \
} \
#define foreach_ipfix_transport_protocol_field
#define foreach_ipfix_ip4_field
#define foreach_ipfix_ip6_field

Definition at line 57 of file flow_report_classify.h.

#define foreach_ipfix_ip4_field
Value:
_(ip->src_address.as_u32, ((u32[]){0xFFFFFFFF}), sourceIPv4Address, 4) \
_(ip->dst_address.as_u32, ((u32[]){0xFFFFFFFF}), destinationIPv4Address, 4) \
_(ip->protocol, ((u8[]){0xFF}), protocolIdentifier, 1)
unsigned int u32
Definition: types.h:88
unsigned char u8
Definition: types.h:56

Definition at line 18 of file flow_report_classify.h.

#define foreach_ipfix_ip6_field
Value:
_(ip6->src_address.as_u8, \
((u32[]){0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF}), \
sourceIPv6Address, 16) \
_(ip6->dst_address.as_u8, \
((u32[]){0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF,0xFFFFFFFF}), \
destinationIPv6Address, 16) \
_(ip6->protocol, ((u8[]){0xFF}), protocolIdentifier, 1)
unsigned int u32
Definition: types.h:88
unsigned char u8
Definition: types.h:56

Definition at line 23 of file flow_report_classify.h.

#define foreach_ipfix_tcp_field
Value:
_(tcpudp->src_port, ((u16[]){0xFFFF}), tcpSourcePort, 2) \
_(tcpudp->dst_port, ((u16[]){0xFFFF}), tcpDestinationPort, 2)
unsigned short u16
Definition: types.h:57

Definition at line 36 of file flow_report_classify.h.

#define foreach_ipfix_tcpudp_field
Value:
_(tcpudp->src_port, ((u16[]){0xFFFF}), sourceTransportPort, 2) \
_(tcpudp->dst_port, ((u16[]){0xFFFF}), destinationTransportPort, 2)
unsigned short u16
Definition: types.h:57

Definition at line 32 of file flow_report_classify.h.

#define foreach_ipfix_transport_protocol_field
Value:
switch (transport_protocol) { \
case 255: \
break; \
case 6: \
break; \
case 17: \
break; \
}
#define foreach_ipfix_tcpudp_field
#define foreach_ipfix_udp_field
#define foreach_ipfix_tcp_field

Definition at line 44 of file flow_report_classify.h.

#define foreach_ipfix_udp_field
Value:
_(tcpudp->src_port, ((u16[]){0xFFFF}), udpSourcePort, 2) \
_(tcpudp->dst_port, ((u16[]){0xFFFF}), udpDestinationPort, 2)
unsigned short u16
Definition: types.h:57

Definition at line 40 of file flow_report_classify.h.

Function Documentation

static_always_inline ipfix_classify_table_t* ipfix_classify_add_table ( void  )

Definition at line 90 of file flow_report_classify.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline void ipfix_classify_delete_table ( u32  index)

Definition at line 102 of file flow_report_classify.h.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

vlib_frame_t* ipfix_classify_send_flows ( flow_report_main_t frm,
flow_report_t fr,
vlib_frame_t f,
u32 to_next,
u32  node_index 
)

Definition at line 152 of file flow_report_classify.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static_always_inline u8 ipfix_classify_table_index_valid ( u32  index)

Definition at line 83 of file flow_report_classify.h.

+ Here is the caller graph for this function:

u8* ipfix_classify_template_rewrite ( flow_report_main_t frm,
flow_report_t fr,
ip4_address_t collector_address,
ip4_address_t src_address,
u16  collector_port 
)

Definition at line 27 of file flow_report_classify.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

flow_report_classify_main_t flow_report_classify_main

Definition at line 25 of file flow_report_classify.c.