tcpdump mailing list archives
Re: capturing on both interfaces simultaneously
From: Aaron Turner <synfinatic () gmail com>
Date: Wed, 30 Nov 2011 00:00:14 -0800
On Mon, Nov 28, 2011 at 11:35 AM, abhinav narain <abhinavnarain10 () gmail com> wrote:
hi, I am using libpcap on Openwrt platform, Netgear router wndr3700v2. I am able to capture packets on phy0, interface. But what should I do to capture packets on phy0,phy1 simultaneously in the same program ? I don't think I can use "any" interface as it might capture packets from bridge interface also ! Kindly suggest.
I don't know anything about that platform, but the standard way is to open two pcap handles, one for each interface, get the underlying file descriptor and use select() or poll(). Although you could use threads instead if you felt the need. -- Aaron Turner http://synfin.net/ Twitter: @synfinatic http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & Windows Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin "carpe diem quam minimum credula postero" - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- capturing on both interfaces simultaneously abhinav narain (Nov 29)
- Re: capturing on both interfaces simultaneously Aaron Turner (Nov 30)
- Re: capturing on both interfaces simultaneously rixed (Nov 30)
- Re: capturing on both interfaces simultaneously Joerg Mayer (Nov 30)
- Re: capturing on both interfaces simultaneously dragorn (Nov 30)
- Re: capturing on both interfaces simultaneously abhinav narain (Dec 10)
- Re: capturing on both interfaces simultaneously rixed (Dec 10)
- Re: capturing on both interfaces simultaneously abhinav narain (Dec 10)
- Re: capturing on both interfaces simultaneously Guy Harris (Dec 10)
- Re: capturing on both interfaces simultaneously Guy Harris (Dec 10)
- Re: capturing on both interfaces simultaneously rixed (Dec 10)
- Re: capturing on both interfaces simultaneously abhinav narain (Dec 10)
- Re: capturing on both interfaces simultaneously dragorn (Nov 30)