Using multiple threads with pcapy

B

billie

Hi all. Because of pcapy sniffng library doesn't permit to listen on
multiple interfaces I'm trying to use threads to avoid this problem.
In the source below I tried to start a thread for every NIC installed on my
system (I got 2 NICs) but once I started the first thread the program can't
go further.
Note that the first trhread works properly (I can sniff traffic) but the
problem is that the second thread regarding the other NIC never starts.
Does someone got any suggestion?

Thanks in advance.

http://rafb.net/paste/results/0NHfUm76.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top