>> 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:[EMAIL PROTECTED]
