Subject: Re: Endian-ness braindamage on ether type
To: Jonathan Stone <jonathan@dsg.stanford.edu>
From: Theo de Raadt <deraadt@fsa.ca>
List: port-pmax
Date: 08/16/1994 19:31:40
> Somehow, both if_le.c and ether_input() are doing an ntohs()
> on the ethertype of arriving packets. This doesn't work, in general.

Heh.

> I don't know  what the NetBSD Official Architectural Position is on
> whether it's the device-specific drivers or ether_input() who should
> be byteswapping eh->ether_type. Could someone who knows for sure
> make the appropriate fix to if_le.c:leread() if I guessed the wrong
> way?

The device driver should not change the type; the code in
if_ethersubr.c is correct. This makes a certain BPF operation easier,
too.

------------------------------------------------------------------------------