Date: Tue, 16 Nov 2010 01:55:01 +0800 From: rozhuk.im@gmail.com To: <freebsd-net@freebsd.org> Subject: kern/152141: [vlan] encapsulate vlan in ng_ether before output to if Message-ID: <4ce173f7.10d0e30a.7624.0f77@mx.google.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ce173f7.10d0e30a.7624.0f77>
