[Winpcap-users] pcap_sendpacket used in loop fails on 1960th packet on different machines

Andriy Tylychko andriy.tylychko at gmail.com
Wed Sep 28 09:47:15 PDT 2011


I used the same dump so pcap_sendpacket() failed on the same packet. It was
TCP packet with size ~15000 bytes. Seems WinPCap cannot send such large
packets. Do you know the reason or any workaround for this?

 

From: Andriy Tylychko [mailto:andriy.tylychko at gmail.com] 
Sent: Wednesday, September 28, 2011 5:18 PM
To: 'winpcap-users at winpcap.org'
Subject: pcap_sendpacket used in loop fails on 1960th packet on different
machines

 

pcap_sendpacket() fails on sending 1960th packet.

 

I'm replaying traffic captured by tshark to .cap file. I read a packet from
file and send it to specific network interface by pcap_sendpacket()
(actually by pypcap Python wrapper) in loop. On two different machines first
one with Win7 SP1 x64 and the second one with Win2k3 SP2 x86 WinPCap always
fails sending 1960th packet. What does this magic number means?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winpcap.org/pipermail/winpcap-users/attachments/20110928/32b86b28/attachment.html>


More information about the Winpcap-users mailing list