tcpdump mailing list archives
Re: capturing on both interfaces simultaneously
From: Guy Harris <guy () alum mit edu>
Date: Sat, 10 Dec 2011 13:32:49 -0800
On Dec 10, 2011, at 12:58 PM, abhinav narain wrote:
So, I can do select + pcap_dispatch to read on two interfaces without even using threads. I read select is slow for monitoring.
Possibly. If you don't care about portability, you could use epoll(): http://kernel.org/doc/man-pages/online/pages/man7/epoll.7.html
But with only two interfaces, it should not be a problem.
I think at least one of the scalability issues with select() is that the set of FDs to be monitored is copied on every call; for two FDs that shouldn't be too bad.- This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- Re: capturing on both interfaces simultaneously, (continued)
- Re: capturing on both interfaces simultaneously abhinav narain (Dec 12)
- Re: capturing on both interfaces simultaneously Guy Harris (Dec 12)
- Re: capturing on both interfaces simultaneously David Laight (Dec 12)
- Re: capturing on both interfaces simultaneously Guy Harris (Dec 12)
- Re: capturing on both interfaces simultaneously Guy Harris (Dec 12)
- Re: capturing on both interfaces simultaneously David Laight (Dec 13)
- Re: capturing on both interfaces simultaneously David Laight (Dec 13)
- Re: capturing on both interfaces simultaneously David Laight (Dec 13)
- Re: capturing on both interfaces simultaneously Guy Harris (Dec 10)
- Re: capturing on both interfaces simultaneously abhinav narain (Dec 10)
- Re: capturing on both interfaces simultaneously Guy Harris (Dec 10)