[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: tcpdump-3.8.3



----- Original Message ----- 
From: "Alfred M. Szmidt" <ams@kemisten.nu>
To: "Barry Comcast" <bddebian@comcast.net>
Cc: <mbanck@debian.org>; <debian-hurd@lists.debian.org>
Sent: Friday, February 11, 2005 9:52 AM
Subject: Re: tcpdump-3.8.3


>    Why?  Their code uses 64 and my Debian GNU/Linux box has
>    MAXHOSTNAMELEN defined as 64??
>
> Because we don't have a limit to begin with, this is just a ugly way
> of saying that we don't have one.  But this is really not important,
> what is the problem with just fixing it the proper way and use
> xgethostname or whatever?
>
> I cringe everytime I see these stupid hacks that define MAX*...

I agree.  However, what is funny is that they aren't even using
MAXHOSTNAMELEN for the buffer for gethostname() as usual so it's a weird
situation anyway.

Barry



Reply to: