I use packet.ddl lybrary, I dont use pcaplib

The strange thing is that when I use more memory more problems.
When I used 256k of buffer user and system I got rarely errors.

I dont set any kind of filter the one is promiscous mode.

David




----- Original Message -----
From: "Jesper Munkholm Jensen (JMJ)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 30, 2002 8:11 AM
Subject: RE: [WinPcap-users] Loosing Packets or truncated packets


> Do you use the Packet.dll or the Winpcap?
>
> A thing to remember is that WinPcap library function pcap_next(), returns
a
> pointer to the packet in its own buffer, so if you hang on to the packet
to
> long you may risk it being overwritten. In bursts maybe this could cause
the
> error, but the depends on your code. Can't see how using a greater buffer
> would enhance this error, so maybe i'm of track. Just a thought...
>
> - Jesper
>
> -----Original Message-----
> From: David Rodriguez [mailto:[EMAIL PROTECTED]]
> Sent: 8. august 2002 15:06
> To: [EMAIL PROTECTED]
> Subject: Re: [WinPcap-users] Loosing Packets or truncated packets
>
>
> 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
> > >
> > >
> >
>

Reply via email to