From nobody Wed Mar 30 15:32:39 2022 X-Original-To: jail@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 941C21A4F8A3 for ; Wed, 30 Mar 2022 15:32:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KT9RX31tHz3Qh2 for ; Wed, 30 Mar 2022 15:32:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 435B715C55 for ; Wed, 30 Mar 2022 15:32:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 22UFWeBs040074 for ; Wed, 30 Mar 2022 15:32:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22UFWeO9040073 for jail@FreeBSD.org; Wed, 30 Mar 2022 15:32:40 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: jail@FreeBSD.org Subject: [Bug 240106] VNET issue with ARP and routing sockets in jails Date: Wed, 30 Mar 2022 15:32:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: kp@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jail@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Discussion about FreeBSD jail(8) List-Archive: https://lists.freebsd.org/archives/freebsd-jail List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-jail@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648654360; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NAMIW16rDz0w3cnlAs+QHYX44MfQG8wwageaveE/3MY=; b=XNrj81sytTWC0fZlaoKTzWXa4yhSurSfBflejEF4MOPfM84DWlV7vAgPvIvdhqExXUC7m8 8aJP9aQHm9mr6pAGuqlNhE6G1TDF1ZiL5ihFNYXl3UR96oKLwzFTOsk71yjQAaSAQ2zv2U JmAPqGY6bB/fxVl+mpUD+VuY4uyNOrxUWbyAeVqyxnsaWzektxV8RxknLgIOyViXjZlCeM xBvyMzEhyhdVmjUmEdjeMNhw4ZWiQH4q+HM1Hc73eBWZBdgueaAotAzq9optRwhc5h3gjV ru52CwcNWuUDbkZ8pLMK1oD4JAKdspo/2Jj8Tu2svWZa+9GEuRHwZeQQHaEYmw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648654360; a=rsa-sha256; cv=none; b=RXEzbrIq/UiJeLNbbiQ6T+o8ttlMtGD+1OEYdawbRm+JGHain8z7IAiN45918wZGDqZ+ap refOxjTfjYk9KjyywKolujScQZ3aH5M4+BkWKUkFxI5yDt9SvPX6ET5RXEh1c96tTdorYm Fqp7+bfQuxjIIgwanxrRzfMV5zmaxp1wE4wwpYlQq8QUESGmYHSzj7VXTKtxP9PnUdrfbn /+Qc3GpzXbCqKhV2S7ZlI1SGR3JfiPypVuutq7I819nRZfpXuQNQsD7u8J/oFVEqdvYggw 9tzk+qV0WoJaNsIS4WXTM7jvqj+8kCk3zNLsMmiaNqt6DIUBOdvbyXCNZ3bsPA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240106 --- Comment #13 from Kristof Provost --- (In reply to Bjoern A. Zeeb from comment #12) Note that the issue described in #10 is a configuration problem more than a bug. In this configuration the bridge will grab all packets, including those wit= h a vlan tag and nothing will be passed to the vlan interfaces. That's expected. After all, the system has been configured to bridge all packets arriving on= em0 to the members of vm-sw1, and that includes those with ETHERTYPE_VLAN. This patch should make it do what the user wants, but I'm not convinced tha= t's actually appropriate: diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c index 12c807fe2009..98c79764bc69 100644 --- a/sys/net/if_bridge.c +++ b/sys/net/if_bridge.c @@ -2467,6 +2467,11 @@ bridge_input(struct ifnet *ifp, struct mbuf *m) eh =3D mtod(m, struct ether_header *); + if (ntohs(eh->ether_type) =3D=3D ETHERTYPE_VLAN || + ntohs(eh->ether_type) =3D=3D ETHERTYPE_QINQ) { + return (m); + } + bridge_span(sc, m); if (m->m_flags & (M_BCAST|M_MCAST)) { --=20 You are receiving this mail because: You are the assignee for the bug.=