Subject: Re: Small Ethernet packet padding
To: None <cube@cubidou.net>
From: Steve Woodford <scw@netbsd.org>
List: tech-net
Date: 11/01/2004 10:25:31
On Sunday 31 October 2004 14:08, cube@cubidou.net wrote:
> On Sun, Oct 31, 2004 at 02:50:11PM +0100, Manuel Bouyer wrote:

> > from other places than ether_output() (if_vlan will do it, as does
> > if_bridge).
>
> Yeah.  I didn't think of vlan(4), and bridge(4) would need some more
> attention, too.

vlan(4) already pads to (ETHER_MIN_LEN + ETHER_VLAN_ENCAP_LEN) in order 
to ensure that the packet length is still at least ETHER_MIN_LEN when 
some downstream vlan-aware switch strips the tag. (Some switches refuse 
to re-pad to ETHER_MIN_LEN after stripping a tag)

Cheers, Steve