]> The Tcpdump Group git mirrors - tcpdump/commit
The infinite diversity of UNIX platforms is an eternal source of joy.
authorguy <guy>
Tue, 10 Oct 2000 05:03:32 +0000 (05:03 +0000)
committerguy <guy>
Tue, 10 Oct 2000 05:03:32 +0000 (05:03 +0000)
commitafdea7aeac56fe8debf5b62a56abaf478e05cc83
treedf229bdb1cf3f4ae7ad5f65897eff5fdc125f39a
parent7a1108c3d62c5b34749001b2348e6db8d00112e0
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."
print-atalk.c
print-icmp.c
timed.h