Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Nov 2010 09:12:13 +0800
From:      "Rozhuk Ivan" <Rozhuk_I@mail.ru>
To:        <freebsd-net@freebsd.org>
Subject:   kern/152141: [vlan] encapsulate vlan in ng_ether before output to if
Message-ID:  <006d01cb8462$23ff81c0$6bfe8540$@ru>

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) =3D=3D 0) {
		m =3D ether_vlanencap(m, m->m_pkthdr.ether_vtag);
		if (m =3D=3D NULL) {
			ifp->if_oerrors++;
			return (ENOBUFS);
		}
		m->m_flags &=3D ~M_VLANTAG;
	}


was added

=A0
--
Rozhuk Ivan
=A0=20






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?006d01cb8462$23ff81c0$6bfe8540$>