]> 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, 25 Jun 2023 04:07:33 +0000 (21:07 -0700)
commit1b33afb7e88b2e36db2083c488de41dbe097ef49
tree1bbe479407b573176e0c92daca3c1cf39c12e442
parent13a31c43bf2cdd39d4be5aeff84b307ac42cfa03
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
Differential Revision: https://reviews.freebsd.org/D40442

(cherry picked from commit bb5d6d14d81b0789d2e73da03571603426afef56)
contrib/wpa/src/l2_packet/l2_packet_freebsd.c