VLAN macros for sys/ethernet.h [PSARC/2007/479 FastTrack timeout 08/29/2007]
James Carlson
james.d.carlson at sun.com
Wed Aug 22 11:18:27 PDT 2007
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
More information about the opensolaris-arc
mailing list