[Winpcap-users] Slow sending?
Loris Degioanni
loris.degioanni at gmail.com
Mon Mar 27 22:13:21 GMT 2006
If you want to increase the Tx performance, use buffered send
functions(pcap_sendqueue*). pcap_sendpacket() does a context switch per
packet, that's the reason why it's so slow.
Loris
Accounts wrote:
> Hi Everybody.
>
> I am using WinPCap to do active redirection of packets. Everything
> is working very well except I have one problem.
>
> WinPCap seems to be very slow to send the packets?
>
> I checked my code from the time I receive the packet to my code until
> the time I call pcap_sendpacket, there is less than 1 ms so I know the
> problem
> is not a bottleneck in my code. However looking at ethereal and doing
> some pinging tests. It looks like after I call pcap_sendpacket it is
> taking up to 1 second to actually go out.
>
> Any ideas?!
>
> Any help would be appreciated.
>
> And also I tried to use send queues but the same problem.
>
>
>
>
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users
>
More information about the Winpcap-users
mailing list