diff options
author | Denis Ovsienko <denis@ovsienko.info> | 2018-07-23 23:28:24 +0100 |
---|---|---|
committer | Denis Ovsienko <denis@ovsienko.info> | 2019-11-03 23:46:28 +0000 |
commit | c9e5ac541bbb4f01af0a6545fafe6c181d1eebbb (patch) | |
tree | 4fb07ed4169c357dd94939e69c482b4d426a01ff /config.h.in | |
parent | eabcd87c1dc79255cbde14ef4559b327bb90d01e (diff) | |
download | tcpdump-c9e5ac541bbb4f01af0a6545fafe6c181d1eebbb.tar.gz |
libdnet has bugs, do not use it.
The only function tcpdump used in libdnet was dnet_htoa(), which tries
to translate a binary DECnet address to a nodename through a lookup in
/etc/decnet.conf. The translation is slow and has a bug, so stop using
the function and remove the dependency on libdnet.
This makes tcpdump always print DECnet addresses in numeric format, if
anybody needs the translation back they are welcome to fix libdnet or
(more realistically) add an implementation of dnet_htoa() to the tcpdump
source code and use it.
(This is a forward-port of commit 9a6eb27 from tcpdump-4.9 to master.
Sadly, together with libdnet this change removes the fine work that Guy
had done in the master branch in commits ebf3f19 and 4ef8d63 to put
libdnet usage right whilst my original "do not use libdnet" commit was
aging in the pipeline.)
Diffstat (limited to 'config.h.in')
-rw-r--r-- | config.h.in | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/config.h.in b/config.h.in index e40e1089..4b22e15c 100644 --- a/config.h.in +++ b/config.h.in @@ -30,9 +30,6 @@ /* Define to 1 if you have the declaration of `ether_ntohost' */ #undef HAVE_DECL_ETHER_NTOHOST -/* define if you have the dnet_htoa function */ -#undef HAVE_DNET_HTOA - /* Define to 1 if you have the `ether_ntohost' function. */ #undef HAVE_ETHER_NTOHOST @@ -72,12 +69,6 @@ /* Define to 1 if you have the <memory.h> header file. */ #undef HAVE_MEMORY_H -/* Define to 1 if you have the <netdnet/dnetdb.h> header file. */ -#undef HAVE_NETDNET_DNETDB_H - -/* Define to 1 if you have the <netdnet/dn.h> header file. */ -#undef HAVE_NETDNET_DN_H - /* Define to 1 if you have the <net/if.h> header file. */ #undef HAVE_NET_IF_H @@ -210,9 +201,6 @@ /* 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 @@ -234,9 +222,6 @@ /* define if libpcap has yydebug */ #undef HAVE_YYDEBUG -/* 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 |