On Tue, Feb 06, 2001 at 12:39:25AM -0800, Guy Harris wrote:
> On Sun, Feb 04, 2001 at 12:04:35PM -0800, Bill Fenner wrote:
> > You could try the patch for this purpose submitted by Jacques Richer:
> >
> > http://www.tcpdump.org/lists/patches/109
>
> Is there any reason for us not to check this in (along with a man page
> update)?
Well, one reason not to check it in might be that it doesn't always
work.
If you run tcpdump without the "-n" flag and without the "-w" flag, it
uses "alarm()" to time out name lookups; this, unfortunately, overrides
the timer set up by the "-C" option.
It'd be a bit more work to make the two timers work together. I suppose
we could, say, require that it be used with the "-w" flag - the comment
with the patch was
It is very useful in scripts along with the -w option.
and you're probably more likely to use it in a script than interactively
(you can probably use your watch and type the interrupt character to
interrupt an interactive print-to-the-console tcpdump). That's a
somewhat ugly solution (as the first question somebody might well ask is
"so why *can't* I use it without the '-w' option?"), but perhaps "it's
not perfect, and we'll probably have to add this to the FAQ, and people
will probably complain that we're just too lazy to make it work, but
it's arguably better than not making it available at all" is the right
answer, at least for now ("the best is the enemy of the good").
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe