[Winpcap-users] PacketReceivePacket error out on allocating buffergerater than 4MB

Gianluca Varenni gianluca.varenni at cacetech.com
Thu Jul 29 11:45:34 PDT 2010


Can you please post the code that is failing?

Also, bigger buffers don't necessary mean better performance. They just enlarg
GV


From: Pushkar Tiwari 
Sent: Thursday, July 29, 2010 11:37 AM
To: winpcap-users at winpcap.org 
Subject: [Winpcap-users] PacketReceivePacket error out on allocating buffergerater than 4MB


Hi,
I have written a piece of code to capture packets at very high speed. I have writen my code using Packet API.
To gain better performance I tried allocating large buffer using  "PacketSetBuff" API. PacketSetBuff doesn't return any error on allocating buffer greater than 4MB.
But when I call PacketReceivePacket  to retrieve the packet, the call fails.

Is there any restriction on the buffer that can be allocated? Is there some other wy through which we can allocate higher buffer and get the better performance.

Whats is the kernel buffer size that winpcap allocate by default?

Here are some of my environment details:

Winpacp Version : 4.1.1
OS : Win2k3
Memory : 8GB

Thanks in advance.


Pushkar


--------------------------------------------------------------------------------


_______________________________________________
Winpcap-users mailing list
Winpcap-users at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20100729/6d0ed36c/attachment.htm 


More information about the Winpcap-users mailing list