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

Ethernet header (802.1). More...

#include <mitigator_bpf.h>

Data Fields

struct EtherAddr ether_dhost
 
struct EtherAddr ether_shost
 
uint16_t ether_type
 

Detailed Description

Ethernet header (802.1).

See also
EtherType for values of type field.

Field Documentation

◆ ether_dhost

struct EtherAddr EtherHeader::ether_dhost

Destination host MAC address.

◆ ether_shost

struct EtherAddr EtherHeader::ether_shost

Source host MAC address.

◆ ether_type

uint16_t EtherHeader::ether_type

Next protocol ID (big-endian).


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