Subject: Re: CVS commit: src/sys/net
To: None <jdolecek@netbsd.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: tech-net
Date: 06/12/2005 16:37:28
> Module Name:	src
> Committed By:	jdolecek
> Date:		Sun Feb 20 15:29:03 UTC 2005
> 
> Modified Files:
> 	src/sys/net: if_ether.h
> 
> Log Message:
> add several VLAN tagging related macros, to reduce code duplication
> in various ethernet adapter drivers and improve code consistency; mostly
> FreeBSD-compatible, with exception of VLAN_OUTPUT_TAG(), which takes
> (struct ethercom *) rather than (struct ifnet *) as first parameter
> since the information cannot be extracted via (struct ifnet)
> 
> also add VLAN_ATTACHED(ec), which tests if any VLAN is attached to the
> ethernet device
> 
> 
> To generate a diff of this commit:
> cvs rdiff -r1.36 -r1.37 src/sys/net/if_ether.h

why do you strip upper bits of TCI in VLAN_TAG_VALUE?
i'll remove the "& 4095" if no one objects.

YAMAMOTO Takashi