Garrett D'Amore writes: > On Wed, 2007-08-22 at 13:36 -0400, James Carlson wrote: > > Driving these two further apart means it'll be harder to get rid of > > one someday. > > > > Who uses net/if_ether.h? > > sys/ethernet.h is the only one that is safe for drivers to use.
They're used interchangeably in much of the code, and with netinet/if_ether.h appearing in some surprising kernel files (such as os/space.c). There are about 92 references to if_ether.h and 100 to ethernet.h. It looks like sys/ethernet.h is slightly more popular in the kernel, but there are adherents to both religions. -- James Carlson, Solaris Networking <james.d.carlson at sun.com> Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
