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 /tcpdump.c | |
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 'tcpdump.c')
-rw-r--r-- | tcpdump.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -3065,9 +3065,6 @@ print_version(void) smi_version_string = nd_smi_version_string(); if (smi_version_string != NULL) (void)fprintf (stderr, "SMI-library: %s\n", smi_version_string); -#ifdef HAVE_DNET_HTOA - (void)fprintf(stderr, "libdnet unknown version\n"); -#endif #if defined(__SANITIZE_ADDRESS__) (void)fprintf (stderr, "Compiled with AddressSanitizer/GCC.\n"); |