summaryrefslogtreecommitdiff
path: root/config.h.in
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-12-30 14:16:15 -0800
committerGuy Harris <guy@alum.mit.edu>2017-12-30 14:16:15 -0800
commitebf3f194266cb41da20aaef7506daab4f9dbb6d8 (patch)
tree04409655e8e0ebe0008b6c836cf793055ee97c44 /config.h.in
parenta1b2cce62e20f891d6d35e41ab8fedb156096bfd (diff)
downloadtcpdump-ebf3f194266cb41da20aaef7506daab4f9dbb6d8.tar.gz
Clean up handling of libdnet headers.
If we don't have dnet_htoa(), we don't need any of the headers. Check for them only if we have dnet_htoa(). Use AC_CHECK_DECL to see if netdnet/dnetdb.h declares dnet_htoa(). Check for netdnet/dn.h and, if we have it, check whether it declares struct dn_naddr; if so, include it, rather than defining the structure ourselves. Don't define union etheraddr ourselves; we only need to define an etheraddr typedef. That avoids colliding with a libdnet header definition of union etheraddr. (When we use etheraddr, we care about what's on the wire, and we don't rely on system headers to tell us what's on the wire.)
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/config.h.in b/config.h.in
index 41e3bc72..e5ae27c3 100644
--- a/config.h.in
+++ b/config.h.in
@@ -73,8 +73,8 @@
/* Define to 1 if you have the <netdnet/dnetdb.h> header file. */
#undef HAVE_NETDNET_DNETDB_H
-/* define if you have a dnet_htoa declaration in <netdnet/dnetdb.h> */
-#undef HAVE_NETDNET_DNETDB_H_DNET_HTOA
+/* Define to 1 if you have the <netdnet/dn.h> header file. */
+#undef HAVE_NETDNET_DN_H
/* Define to 1 if you have the <netinet/ether.h> header file. */
#undef HAVE_NETINET_ETHER_H
@@ -223,6 +223,9 @@
/* Define to 1 if you have the `strsep' function. */
#undef HAVE_STRSEP
+/* Define to 1 if the system has the type `struct dn_naddr'. */
+#undef HAVE_STRUCT_DN_NADDR
+
/* Define to 1 if the system has the type `struct ether_addr'. */
#undef HAVE_STRUCT_ETHER_ADDR
@@ -253,6 +256,9 @@
/* define if your compiler has __attribute__ */
#undef HAVE___ATTRIBUTE__
+/* Define to 1 if netenet/dnetdb.h declares `dnet_htoa' */
+#undef NETDNET_DNETDB_H_DECLARES_DNET_HTOA
+
/* Define to 1 if netinet/ether.h declares `ether_ntohost' */
#undef NETINET_ETHER_H_DECLARES_ETHER_NTOHOST