Packet flow information. More...
#include <mitigator_bpf.h>
Data Fields | |
union NetAddr | src_ip |
union NetAddr | dst_ip |
uint16_t | src_port |
uint16_t | dst_port |
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:
union NetAddr Flow::dst_ip |
Destination address.
uint16_t Flow::dst_port |
Destination port.
uint32_t Flow::padding |
Not used and zero-filled by API.
union NetAddr Flow::src_ip |
Source address.
uint16_t Flow::src_port |
Source port.