I dont use any filter I use the following:
NdisSetPacketFlags(pPacket, NDIS_FLAGS_SKIP_LOOPBACK); // for avoid reading packets writing in one interface were read it again. I use also win 2000 David ----- Original Message ----- From: "Loris Degioanni" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 30, 2002 3:53 AM Subject: Re: [WinPcap-users] Loosing Packets or truncated packets > Do you set a filter? If yes, what is its snaplen? > > Loris > > > Hello > > > > I am doing an application using 2 nic cards, I read information from one > interface > > > > and then send for the other interface. > > > > The problem is when I do ping from a router (the router send the ping > > > > every 1 ms ) the packet is truncated to 64 bytes. The size of the ping > > > > is 74 bytes. > > > > The strange thing is tha if I use 256K of buffer for 2 interfaces I rarely > get the > > > > error. But when I increase the buffer to 2M I get a lot of error specially > when the > > > > traffic is burstly. > > > > What the increase of the buffer produce this error, does the driver copy > all > > > > the content of the kernel memory to the user memory even the memory has > > > > little information ? > > > > Note: My timeout in PacketSetReadTimeout is Zero > > > > > > > > Thaks in advanced > > > > > > > > David > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > David Rodriguez > > davidgrs > > > > > > -------------------------------------------------------------------------- > ------ > > Join the world's largest e-mail service with MSN Hotmail. Click Here > > > > >
