diff options
| author | guy <guy> | 2005-03-27 22:38:09 +0000 |
|---|---|---|
| committer | guy <guy> | 2005-03-27 22:38:09 +0000 |
| commit | 0b6991cfd577930809cfd2ea133040c5509e8001 (patch) | |
| tree | 7bab6e3d0f473d02c9ee6c197d6f464472762290 /config.h.in | |
| parent | b2eeaa3e028dce788291843300442655ae98f3de (diff) | |
| download | tcpdump-0b6991cfd577930809cfd2ea133040c5509e8001.tar.gz | |
Do the same sort of checks whether ether_ntohost() is declared that we
do in libpcap for ether_hostton(). Include <netinet/ether.h> only if it
declares ether_ntohost(). If nothing declares it, declare it ourselves,
as we do in libpcap.
Don't cast the second argument to ether_ntohost() to a const pointer, as
some systems don't modify it but don't declare that argument as a const
pointer. (This is similar to what we do on libpvap for
ether_hostton().)
Fix indentation.
Diffstat (limited to 'config.h.in')
| -rw-r--r-- | config.h.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in index 1e28869a..bce43a05 100644 --- a/config.h.in +++ b/config.h.in @@ -152,6 +152,10 @@ /* Define to 1 if you have the `bpf_dump' function. */ #undef HAVE_BPF_DUMP +/* Define to 1 if you have the declaration of `ether_ntohost', and to 0 if you + don't. */ +#undef HAVE_DECL_ETHER_NTOHOST + /* Define to 1 if you have the `ether_ntohost' function. */ #undef HAVE_ETHER_NTOHOST @@ -275,6 +279,12 @@ /* define if your compiler has __attribute__ */ #undef HAVE___ATTRIBUTE__ +/* Define to 1 if netinet/ether.h declares `ether_ntohost' */ +#undef NETINET_ETHER_H_DECLARES_ETHER_ntohost + +/* Define to 1 if netinet/if_ether.h declares `ether_ntohost' */ +#undef NETINET_IF_ETHER_H_DECLARES_ETHER_ntohost + /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT |
