]> The Tcpdump Group git mirrors - libpcap/commit
Indicate why we have incomplete definitions for "struct mbuf" and
authorguy <guy>
Tue, 9 Apr 2002 07:41:19 +0000 (07:41 +0000)
committerguy <guy>
Tue, 9 Apr 2002 07:41:19 +0000 (07:41 +0000)
commit55dba26a626d8c1367616af8f643afc6cb98a367
tree3f3f97e2efd83dda393023fef4536693c95b22bf
parent9328cdfd194ab5d0ff252a1cba7d4782d5f3900a
Indicate why we have incomplete definitions for "struct mbuf" and
"struct rtentry" (in <net/if.h> on some systems, e.g.  Digital UNIX 4.0,
there are prototypes for kernel functions that include "struct mbuf *"
and "struct rtentry *" arguments, and they are included even if you're
just user-mode code).

We don't need to include <netinet/if_ether.h> unless we have
"ether_hostton()", and we don't need to include <net/if.h> unless we're
including <netinet/if_ether.h>, and we don't need to define "struct
mbuf" or "struct rtentry" unless we're including <net/if.h>.
nametoaddr.c