tcpdump mailing list archives
pcap_handler return value
From: Christian Kreibich <christian () whoop org>
Date: Wed, 24 Mar 2004 23:19:40 +0000
Hi,
would you guys consider changing the return value of the pcap_handler
callbacks to
typedef int (*pcap_handler)(u_char *, const struct pcap_pkthdr *,
const u_char *);
so that the callback gets a chance to stop a pcap_loop() or
pcap_dispatch() iteration, say when returning 0 as opposed to 1? I've
repreatedly found that it'd be nice to remain in control over when to
abort the loop.
Thanks,
Christian.
--
________________________________________________________________________
http://www.cl.cam.ac.uk/~cpk25
http://www.whoop.org
-
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:
- pcap_handler return value Christian Kreibich (Mar 24)
- Re: pcap_handler return value Guy Harris (Mar 24)
- Re: pcap_handler return value Christian Kreibich (Mar 24)
- Re: pcap_handler return value Guy Harris (Mar 24)
