hello
I am implementing a Wireless Sniffer.
In main am dumping the packets using pcap_next() and in separate
Thread am opening the dumped file , reading ( using pcap_next() )and
analysing one packet at a time simultaneously.
The problem here is initially upto 100 or 150 packets the dumping and
analysing the packets are going in parallel. I mean whatever packets
its dumped ( main process ) the Thread is reading and analysing them.
after some time the main Thread is dumping more packets and
simultaneously the Child Thread is reading those packets..
but in child Thread pcap_next is returning NULL eventhough there are
so many packets in the dumped file.
After returning NULL for some packets its reading the packets and
again for some time its returning NULL and reading the process.
Immediately after killing the dumping process the Thread is not
reading the remaining packets but it is continously returning NULL
eventhough there are so many packets in the file..
So i request you plz.. give me a solution for this...
whats wrong with my code or whats wrong with pcap_next()..
Thanking you ,
AKSHAR
--- Begin Message ---
Hi Harris,
I am implementing a Wireless Sniffer.
In main am dumping the packets using pcap_next() and in separate
Thread am opening the dumped file , reading ( using pcap_next() )and
analysing one packet at a time simultaneously.
The problem here is initially upto 100 or 150 packets the dumping and
analysing the packets are going in pararell. I mean whatever packets
its dumped ( main process ) the Thread is reading and analysing them.
after some time the main Thread is dumping more packets and
simultaneously the Child Thread is reading those packets..
but in child Thread pcap_next is returning NULL eventhough there are
so many packets in the dumped file.
After returning NULL for some packets its reading the packets and
again for some time its returning NULL and reading the process.
Immediately after killing the dumping process the Thread is not
reading the remaining packets but it is continously returning NULL
eventhough there are so many packets in the file..
So i request you plz.. give me a solution for this...
whats wrong with my code or whats wrong with pcap_next()..
Thanking you ,
Durga
--- End Message ---