Wireshark mailing list archives

Re: PacketReceivePacket error out on allocating buffer gerater than 4MB.


From: Eloy Paris <peloy () chapus net>
Date: Wed, 28 Jul 2010 18:20:02 -0400

Hi Pushkar,

This is the wireshark-dev mailing list, where Wireshark development is 
discussed. You'll have better chances of getting you WinPCAP question 
answered if you try the winpcap-users mailing list:

http://www.winpcap.org/contact.htm

Cheers,

Eloy Paris.-
netexpect.org

On 07/28/2010 05:52 PM, Pushkar Tiwari wrote:

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.
Here are some of my environment details:
Winpacp Version : 4.1.1
OS : Win2k3
Memory : 8GB
Thanks in advance.
Pushkar

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: