<div>Hi,</div><div>I have written a piece of code to capture packets at very high speed. I have writen my code using Packet API.</div><div>To gain better performance I tried allocating large buffer using  &quot;PacketSetBuff&quot; API. PacketSetBuff doesn&#39;t return any error on allocating buffer greater than 4MB.</div>
<div>But when I call PacketReceivePacket  to retrieve the packet, the call fails.</div><div> </div><div>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.</div>
<div> </div><div>Whats is the kernel buffer size that winpcap allocate by default?</div><div> </div><div>Here are some of my environment details:</div><div> </div><div>Winpacp Version : 4.1.1</div><div>OS : Win2k3</div><div>
Memory : 8GB</div><div> </div><div>Thanks in advance.</div><div><br></div><div>Pushkar</div>