使用WinPcap捕获和发送数据包的问题 [英] Problem capturing and sending packets using WinPcap

查看:208
本文介绍了使用WinPcap捕获和发送数据包的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用WinPcap函数来捕获和发送数据包。一切都很完美,但我想发送与我收到的相同时间戳的数据包。



我有一个大约1万包的大pcap文件。如果我发送它,50,000个数据包将完美但在此之后发送的数据包比时间戳更快,因此文件发送比原始时间快10分钟。给我一个解决方案。

我保存文件.pcap格式并使用wireshark捕获。



我怀疑是否取决于队列长度,即

queue = pcap_sendqueue_alloc(caplen);

其中queue是pcap_send_queue *队列的对象,caplen是文件的长度。

In我的案例caplen = 11,902,674字节。

这会导致我的问题???????????



我发布了我的问题3天前,但我没有得到任何答案,直到现在。

请任何人帮助我。我需要尽快找到答案。

任何人请帮助我很快,我希望尽快回复。谢谢。

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.

推荐答案

哇 - 25小时后,仍然没有答案。你有没有机会在调试器下运行它?
Wow - 25 hours later, and still no answer. Did you by any chance run it under the debugger?


这篇关于使用WinPcap捕获和发送数据包的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆