]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
wpa: Enable receiving priority tagged (VID 0) frames
authorR. Christian McDonald <rcm@rcm.sh>
Sun, 11 Jun 2023 23:22:53 +0000 (16:22 -0700)
committerCy Schubert <cy@FreeBSD.org>
Sun, 11 Jun 2023 23:26:04 +0000 (16:26 -0700)
commitbb5d6d14d81b0789d2e73da03571603426afef56
tree4e3bb5b7f5a02d53373ba65354dd449296af8042
parent486459056822f080b1ae24600a4c6a7d8ff6f7d6
wpa: 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 to accept both unencapsulated and
encapsulated (with VLAN 0) EAPOL EtherTypes. This preserves the
original filter behavior while also matching on encapsulated EAPOL.

Sponsored by: Rubicon Communications, LLC ("Netgate")
Reviewed by: cy
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D40442
contrib/wpa/src/l2_packet/l2_packet_freebsd.c