Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I am using WinPcap functions to capture and to send packets. Everything is going perfect but I want to send the packets with the same time stamp that I received them.

I have a large pcap file of about 1 lakh packets in it. If I am sending it 50,000 packets are going perfect but after that packets are sent faster than time stamp and as a result the file sending is completing 10 minutes faster than original time. Give me a solution for this.
I am saving my file .pcap format and capturing using wireshark.

My doubt is that whether it depends on the queue length i.e.,
queue = pcap_sendqueue_alloc(caplen);
where queue is an object of pcap_send_queue *queue and caplen is the lenght of the file.
In my case caplen = 11,902,674 bytes.
Does this results my problem????????????

I posted my question 3 days ago but i didn,t get any answer till now.
Please any one help me.I require this answer as soon as posible.
Anyone please help me fast i want reply as soon as posible. Thank you.
Posted
Updated 17-May-10 1:12am
v6

1 solution

Wow - 25 hours later, and still no answer. Did you by any chance run it under the debugger?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900