Packet flow information. More...
#include <mitigator_bpf.h>
Data Fields | |
uint32_t | saddr |
uint32_t | daddr |
uint16_t | sport |
uint16_t | dport |
uint32_t | padding |
Packet flow information.
All fields are in network byte order, that is, port numbers must be swapped to check against values. For example, test if port is 1234 as follows:
uint32_t Flow::daddr |
Destination IPv4 address.
uint16_t Flow::dport |
Destination port.
uint32_t Flow::padding |
Not used and zero-filled by API.
uint32_t Flow::saddr |
Source IPv4 address.
uint16_t Flow::sport |
Source port.