Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jan 2006 23:24:48 +0100
From:      Gregory Nou <gregorynou@altern.org>
To:        freebsd-net@freebsd.org
Subject:   Question on VLAN
Message-ID:  <43D557B0.2080306@altern.org>

next in thread | raw e-mail | index | archive | help
Hi,

What is the difference between
if (m->m_flags & M_VLANTAG)
and
if (ether_type == ETHERTYPE_VLAN) ?

I suppose that m->m_flags are set using ether_type at one point. Still, 
I was not able to find a location in the source where it would happen.

The fact is, I do not understand the difference between these two 
things, nor do I understand why we need the code in if_ethersubr.c[691-717]

Thanks a lot !

-- 
Gregory




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43D557B0.2080306>