From owner-freebsd-net@FreeBSD.ORG Sun Feb 13 14:50:10 2011 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D024106566B for ; Sun, 13 Feb 2011 14:50:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5B8218FC18 for ; Sun, 13 Feb 2011 14:50:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p1DEoAcx019321 for ; Sun, 13 Feb 2011 14:50:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p1DEoAWr019319; Sun, 13 Feb 2011 14:50:10 GMT (envelope-from gnats) Date: Sun, 13 Feb 2011 14:50:10 GMT Message-Id: <201102131450.p1DEoAWr019319@freefall.freebsd.org> To: freebsd-net@FreeBSD.org From: Mark Linimon Cc: Subject: kern/152141: [vlan] encapsulate vlan in ng_ether before output to if X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mark Linimon List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Feb 2011 14:50:10 -0000 The following reply was made to PR kern/152141; it has been noted by GNATS. From: Mark Linimon To: bug-followup@FreeBSD.org Cc: Subject: kern/152141: [vlan] encapsulate vlan in ng_ether before output to if Date: Sun, 13 Feb 2011 08:46:38 -0600 ----- Forwarded message from Rozhuk Ivan ----- From: "Rozhuk Ivan" To: Subject: kern/152141: [vlan] encapsulate vlan in ng_ether before output to if Date: Tue, 16 Nov 2010 01:16:48 +0800 This is a patched version of original function code /* * If underlying interface can not do VLAN tag insertion itself * then attach a packet tag that holds it. */ if ((m->m_flags & M_VLANTAG) && (ifp->if_capenable & IFCAP_VLAN_HWTAGGING) == 0) { m = ether_vlanencap(m, m->m_pkthdr.ether_vtag); if (m == NULL) { ifp->if_oerrors++; return (ENOBUFS); } m->m_flags &= ~M_VLANTAG; } was added. Iam does not test this path - haven’t net with vlan support. Code was taken from if_bridge and adapted.   -- Rozhuk Ivan ----- End forwarded message -----