hostapd/src/l2_packet
R. Christian McDonald 5b21f4861c l2_packet_freebsd: Enable receiving priority tagged (VID=0) frames
Certain internet service providers transmit VLAN 0 priority tagged
EAPOL frames from the ONT towards the residential gateway. VID 0
should be ignored, and the frame processed according to the priority
set in the 802.1P bits and the encapsulated EtherType (i.e., EAPOL).

The pcap filter utilized by l2_packet_* is inadquate for this use case.

Here we modify the pcap filter on FreeBSD to accept both unencapsulated
and encapsulated (with VLAN 0) EAPOL EtherTypes. This preserves the
original filter behavior while also matching on encapsulated EAPOL.

Additional work is required to support this handling on other platforms.

We also modify the rx_receive handler to offset the packet buffer
and length when handling dot1q encapsulated frames so the existing
packet parsing code works as-is.

Signed-off-by: R. Christian McDonald <rcm@rcm.sh>
Sponsored by: Rubicon Communications, LLC ("Netgate")
2023-10-28 17:50:09 +03:00
..
l2_packet.h l2_packet: Allow initialization without RX handling 2020-04-19 17:42:41 +03:00
l2_packet_freebsd.c l2_packet_freebsd: Enable receiving priority tagged (VID=0) frames 2023-10-28 17:50:09 +03:00
l2_packet_linux.c l2_packet: Allow initialization without RX handling 2020-04-19 17:42:41 +03:00
l2_packet_ndis.c l2_packet: Allow initialization without RX handling 2020-04-19 17:42:41 +03:00
l2_packet_none.c Replace "dummy" with "stub" in comments/documentation 2021-10-11 20:52:50 +03:00
l2_packet_pcap.c l2_packet: Allow initialization without RX handling 2020-04-19 17:42:41 +03:00
l2_packet_privsep.c l2_packet: Allow initialization without RX handling 2020-04-19 17:42:41 +03:00
l2_packet_winpcap.c l2_packet: Allow initialization without RX handling 2020-04-19 17:42:41 +03:00
Makefile build: Make more library things common 2020-10-12 20:20:35 +03:00