tcpdump mailing list archives
Re: Multiple interface listening modification
From: Michal Sekletar <msekleta () redhat com>
Date: Thu, 04 Jun 2015 09:37:38 +0200
On 06/04/2015 07:28 AM, Tugrul Erdogan wrote:
I am using libpcap 1.7.3 version and I need to listen multiple interface by same user process call. I am planning to patch libpcap to be able to use a socket array which will be attached different interfaces.
Can't you just pcap_open more interfaces and for each pcap_t* you get call pcap_fileno which will return back file descriptor for that capture. Then you can use select/epoll to multiplex on those descriptors.
Michal _______________________________________________ tcpdump-workers mailing list tcpdump-workers () lists tcpdump org https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers
Current thread:
- Multiple interface listening modification Tugrul Erdogan (Jun 03)
- Re: Multiple interface listening modification Michal Sekletar (Jun 04)
- Re: Multiple interface listening modification Guy Harris (Jun 04)
- Re: Multiple interface listening modification Michal Sekletar (Jun 04)