]> The Tcpdump Group git mirrors - tcpdump/commit
Don't bother including <netinet/if_ether.h> if we're not using
authorguy <guy>
Sun, 2 Jun 2002 00:07:36 +0000 (00:07 +0000)
committerguy <guy>
Sun, 2 Jun 2002 00:07:36 +0000 (00:07 +0000)
commitf36c32b514992362fd6d20971c8d3e4bbf3ef51e
treeabf590744fc2f7d06c5aa8d2414cc4bb416aaf2a
parent4c6bada75863c064314bc52daf899e37cc8b39e3
Don't bother including <netinet/if_ether.h> if we're not using
"ether_ntohost()" - the only reason we include it is to get
"ether_ntohost()" declared.

We only include <net/if.h> to get "struct ifnet" in "struct arpcom"
defined on Solaris, so that we don't get errors when including
<netinet/if_ether.h>, so don't include that unless we're including
<netinet/if_ether.h>.

We only need incomplete definitions for "struct mbuf" and "struct
rtentry" if we're including <net/if.h>, so don't define them unless
we're including <netinet/if_ether.h>.
addrtoname.c