tcpdump mailing list archives

Re: Feature request: time limits


From: Rob Quinn <rquinn () pobox com>
Date: Wed, 5 Nov 2003 06:47:56 -0500

See patches below for a sample implementation with ualarm
...which isn't necessarily present on all the platforms on which tcpdump runs
(note that it runs on Windows

 Whole seconds are fine if Windows supports alarm().

I've added that API - "pcap_breakloop()"; it takes as an argument a "pcap_t
*", and sets a flag in that "pcap_t" to cause packet capturing loops to be
terminated.

  If cleanup() and SIGTERM/INT are going to use this too, the code changes to
support timeouts would still be minimal.
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe


Current thread: