Subject: CVS commit: src/sys/net
To: None <source-changes@NetBSD.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: source-changes
Date: 02/20/2005 15:29:03
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

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.