Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Jason R Thorpe <thorpej@netbsd.org>
List: source-changes
Date: 10/04/2000 02:33:38
Module Name:	syssrc
Committed By:	thorpej
Date:		Tue Oct  3 23:33:38 UTC 2000

Modified Files:
	syssrc/sys/net: if_ether.h if_ethersubr.c if_vlan.c if_vlanvar.h

Log Message:
Improve the VLAN support, in particular, handling of MTU:
- Add a macro to compute the max frame length based on Ethertype
  and presence of FCS, and use it to validate the packet size
  in ether_input().
- Add capabilites to struct ethercom, and allow hardware drivers
  to specify that they can handle the larger hardware MTU that
  VLANs require in order to strictly conform to 802.1Q.
- Make ether_ifdetach() clear out the link address and free all of
  the Ethernet multicast structures.

Also, rearrange the VLAN driver itself in preparation to supporting
other hardware types, including FDDI (which has 802.1Q VLAN capability).


To generate a diff of this commit:
cvs rdiff -r1.18 -r1.19 syssrc/sys/net/if_ether.h
cvs rdiff -r1.62 -r1.63 syssrc/sys/net/if_ethersubr.c
cvs rdiff -r1.9 -r1.10 syssrc/sys/net/if_vlan.c
cvs rdiff -r1.2 -r1.3 syssrc/sys/net/if_vlanvar.h

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