[Winpcap-users] Slow sending?

New accounts at sandmik.net accounts at sandmik.net
Tue Mar 28 07:11:51 GMT 2006


Thank you loris for trying to help me.

I have used the queue version as well but I did not get higher 
performance, I believe because everytime I call this function I only 
have one packet to send. My ARP Poisoner has to relay packets as soon as 
they come... So I have this incredible delay.

I think I will be looking into other means (maybe other libraries) of 
sending the packets (like libdnet, just found it on the web).

If you have used any other mean to send ethernet packets, I would 
appreciate the help.

Thanks again.

Loris Degioanni wrote:

> 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
>>
> _______________________________________________
> 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