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

Reply via email to