Richard van der Hoff wrote:

> One workaround for this is to #define MUST_DO_SELECT, so that 
> capture_loop_dispatch uses a select() to wait for packets to turn up, 
> and put a second's timeout on the select() - but i'm not sure how 
> portable this is likely to be.

It's likely to be quite non-portable, given that

        1) select() on Windows can't be used in that fashion

and

        2) select() on at least some BSD-derived OSes doesn't work on BPF 
devices.

> Anyone got any better ideas?

I'm not sure the display update rate limiting belongs in dumpcap; it 
might be better to do it in Wireshark.  I.e., have dumpcap send packet 
count updates immediately to Wireshark, and have Wireshark decide when 
to read the new packets.
_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@wireshark.org
http://www.wireshark.org/mailman/listinfo/wireshark-dev

Reply via email to