https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270559

--- Comment #11 from commit-h...@freebsd.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=b0e38a1373c087e5a55eefcdee69ccfbf12f86ce

commit b0e38a1373c087e5a55eefcdee69ccfbf12f86ce
Author:     Kristof Provost <k...@freebsd.org>
AuthorDate: 2023-04-07 16:00:08 +0000
Commit:     Kristof Provost <k...@freebsd.org>
CommitDate: 2023-04-14 11:17:02 +0000

    bridge: distinguish no vlan and vlan 1

    The bridge treated no vlan tag as being equivalent to vlan ID 1, which
    causes confusion if the bridge sees both untagged and vlan 1 tagged
    traffic.

    Use DOT1Q_VID_NULL when there's no tag, and fix up the lookup code by
    using 'DOT1Q_VID_RSVD_IMPL' to mean 'any vlan', rather than vlan 0. Note
    that we have to account for userspace expecting to use 0 as meaning 'any
    vlan'.

    PR:             270559
    Suggested by:   Zhenlei Huang <z...@freebsd.org>
    Reviewed by:    philip, zlei
    Differential Revision:  https://reviews.freebsd.org/D39478

 sys/net/if_bridge.c   | 24 ++++++++++++++----------
 sys/net/if_vlan_var.h |  5 +++++
 2 files changed, 19 insertions(+), 10 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to