<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=big5">
<META content="MSHTML 6.00.6000.16825" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Just keep calling pcap_next_ex. It's a
circular queue. That is, new data is constantly being put in the
queue. Your application has to get the data out of the queue fast enough
so that it doesn't drop packets. If you don't take the data out of the
queue fast enough (by calling pcap_next_ex), then it overwrites the oldest
data.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>DC</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=slash@realscene.com.tw href="mailto:slash@realscene.com.tw">rst</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=winpcap-users@winpcap.org
href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, May 25, 2009 9:34 PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Winpcap-users] How can i get
the new-est packet from buffer? HELPPLEASE~!</DIV>
<DIV><BR></DIV>
<DIV><FONT size=2>
<DIV><FONT size=2>i have some data thansmite from another
machine,</FONT></DIV>
<DIV><FONT size=2>it is very fast (about 200000 packets/per
second),</FONT></DIV>
<DIV><FONT size=2>when i called function "pcap_next_ex",</FONT></DIV>
<DIV><FONT size=2>it always get the old data, i guess that's because the
packets is fill into a buffer,</FONT></DIV>
<DIV><FONT size=2>if i need to get the new-est packet , </FONT></DIV>
<DIV><FONT size=2>how should i do?</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thanks.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV></FONT></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Winpcap-users
mailing
list<BR>Winpcap-users@winpcap.org<BR>https://www.winpcap.org/mailman/listinfo/winpcap-users<BR></BLOCKQUOTE></BODY></HTML>