diff options
author | guy <guy> | 2000-10-10 05:03:32 +0000 |
---|---|---|
committer | guy <guy> | 2000-10-10 05:03:32 +0000 |
commit | afdea7aeac56fe8debf5b62a56abaf478e05cc83 (patch) | |
tree | df229bdb1cf3f4ae7ad5f65897eff5fdc125f39a /print-icmp.c | |
parent | 7a1108c3d62c5b34749001b2348e6db8d00112e0 (diff) | |
download | tcpdump-afdea7aeac56fe8debf5b62a56abaf478e05cc83.tar.gz |
The infinite diversity of UNIX platforms is an eternal source of joy.
On some platforms (e.g., Solaris 2.5.1 and 2.6, at least), you have to
include <netdb.h> to get MAXHOSTNAMELEN defined, including <sys/param.h>
doesn't do it (on others, <netdb.h> doesn't help, and you have to
include <sys/param.h>.
Include <netdb.h> in some files, but, for "timed.h", just use 256 rather
than MAXHOSTNAMELEN - the Berkeley time daemon protocol spec (in the
timed source directory in various BSDs) says the packet includes "A
zero-terminated string of up to 256 ASCII characters with the name of
the machine sending the message."
Diffstat (limited to 'print-icmp.c')
-rw-r--r-- | print-icmp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/print-icmp.c b/print-icmp.c index 400ff7d1..fc835133 100644 --- a/print-icmp.c +++ b/print-icmp.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/print-icmp.c,v 1.56 2000-10-05 04:10:02 itojun Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-icmp.c,v 1.57 2000-10-10 05:03:32 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -39,6 +39,7 @@ struct rtentry; #include <stdio.h> #include <string.h> +#include <netdb.h> /* for MAXHOSTNAMELEN on some platforms */ #include "interface.h" #include "addrtoname.h" |