Packet flow information.  
 More...
#include <mitigator_bpf.h>
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: 
if (flow.dst_port == 
bswap16(1234)) { ... }
 
LOCAL uint16_t bswap16(uint16_t value)
Change byte order of a 16-bit value.
Definition mitigator_bpf.h:999
 
void packet_flow(Context ctx, struct Flow *info)
Get packet flow information, including source and destination.
 
Packet flow information.
Definition mitigator_bpf.h:517
 
  
The documentation for this struct was generated from the following file: