> > On Nov 12, 2003, at 12:19 PM, Loris Degioanni wrote: > > > This is the default behavior of the WinPcap device driver. In order to > > always get the packets as soon as they arrive in the buffer, you must > > use > > packet.dll, setting mintocopy=0 (see > > http://winpcap.polito.it/docs/man/html/group__packet32.html#a12) and > > readtimeout=0 (see > > http://winpcap.polito.it/docs/man/html/group__packet32.html#a19). > > This is a behavior that other libpcap/WinPcap users have, I think, > asked for; in BSD, Digital/Tru64 UNIX, and SunOS (3.x, 4.x, and 5.x), > the standard libpcap behavior is similar - packets are buffered to try > to supply multiple packets in one read. > > Libpcap should probably have some API for requesting "immediate mode" > (as it's called in BSD), so that applications can do so in a > platform-independent fashion. It could be specified as an open mode > for "pcap_open()", or we could have calls to get the mode setting and > change it, or both. >
I agree. In my opinion, a flag for pcap_open() should be enough, since I think that the need to change "immediate mode" during a capture would be very rare. Loris ================================================================== This is the WinPcap users list. It is archived at http://www.mail-archive.com/[EMAIL PROTECTED]/ To unsubscribe use mailto: [EMAIL PROTECTED] ==================================================================
