#include <yafcore.h>
Data Fields | |
| uint16_t | sp |
| Source transport port. | |
| uint16_t | dp |
| Destination transport port. | |
| uint8_t | proto |
| IP protocol. | |
| uint8_t | version |
| IP Version. | |
| uint16_t | vlanId |
| VLAN Tag - only fwd. | |
| uint8_t | tos |
| Type of Service/Traffic Class. | |
| uint32_t | layer2Id |
| for DAG cards need to record the interface, may only be seeing unidirectional flows on each interface, and want to record what direction that is happening on | |
| union { | |
| struct { | |
| uint32_t sip | |
| Source IPv4 address. | |
| uint32_t dip | |
| Destination IPv4 address. | |
| } v4 | |
| struct { | |
| uint8_t sip [16] | |
| Source IPv6 address. | |
| uint8_t dip [16] | |
| Destination IPv6 address. | |
| } v6 | |
| } | addr |
| IP address two-tuple union. | |
A YAF flow key.
Contains a flow's five-tuple; used at runtime in the flow table.
| uint16_t yfFlowKey_st::dp |
Destination transport port.
Contains type and code for ICMP
| uint32_t yfFlowKey_st::layer2Id |
for DAG cards need to record the interface, may only be seeing unidirectional flows on each interface, and want to record what direction that is happening on
Layer 2 Id