Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Apr 2023 11:21:04 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 270559] if_bridge: does not forward packets properly for vlan 1
Message-ID:  <bug-270559-7501-zf3ARywj9X@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-270559-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-270559-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270559

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

URL:
https://cgit.FreeBSD.org/src/commit/?id=3Db0e38a1373c087e5a55eefcdee69ccfbf=
12f86ce

commit b0e38a1373c087e5a55eefcdee69ccfbf12f86ce
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2023-04-07 16:00:08 +0000
Commit:     Kristof Provost <kp@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 <zlei@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(-)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-270559-7501-zf3ARywj9X>