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:
- Feature request: time limits Rob Quinn (Oct 20)
- Re: Feature request: time limits Guy Harris (Nov 03)
- Re: Feature request: time limits Guy Harris (Nov 03)
- Re: Feature request: time limits Rob Quinn (Nov 05)
- Re: Feature request: time limits Guy Harris (Nov 05)
- Re: Feature request: time limits Guy Harris (Nov 03)