5b21f4861c
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") |
||
---|---|---|
.. | ||
l2_packet.h | ||
l2_packet_freebsd.c | ||
l2_packet_linux.c | ||
l2_packet_ndis.c | ||
l2_packet_none.c | ||
l2_packet_pcap.c | ||
l2_packet_privsep.c | ||
l2_packet_winpcap.c | ||
Makefile |