Date: Sun, 13 Feb 2011 14:50:10 GMT From: Mark Linimon <linimon@lonesome.com> To: freebsd-net@FreeBSD.org Subject: kern/152141: [vlan] encapsulate vlan in ng_ether before output to if Message-ID: <201102131450.p1DEoAWr019319@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/152141; it has been noted by GNATS.
From: Mark Linimon <linimon@lonesome.com>
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 <Rozhuk_I@mail.ru> -----
From: "Rozhuk Ivan" <Rozhuk_I@mail.ru>
To: <linimon@freebsd.org>
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 -----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102131450.p1DEoAWr019319>
