Mitigator BPF API
Functions and types programs can use to filter packets.
Data Fields
VlanHeader Struct Reference

VLAN header (802.1q). More...

#include <mitigator_bpf.h>

Data Fields

uint16_t control
 
uint16_t type
 

Detailed Description

VLAN header (802.1q).

If type of EtherHeader is ETHER_TYPE_8021Q, this header follows EtherHeader. The type of VlanHeader identifies network layer (L3) protocol in this case.

See also
vlan_get_id(), vlan_set_id() for VLAN ID access.

Field Documentation

◆ control

uint16_t VlanHeader::control

Tag Control Information (big-endian).

◆ type

uint16_t VlanHeader::type

Next protocol ID (big-endian).


The documentation for this struct was generated from the following file: