<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.5730.13" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi all,</SPAN><?xml:namespace prefix 
= o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I use WinPcap 4.02 to capture stream 
source and to process the data somehow.</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">It works fine if the source is 
inside a LAN.</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">On the other hand, when source is in 
a pppoe Internet connection, I capture the Ethernet card that supports the 
Internet connection and I get no packet captured.&nbsp; The following while loop 
simply never enters the loop as it does in a LAN 
environment.<o:p></o:p></SPAN></P>
<P><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">while</SPAN><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">((res = pcap_next_ex( adhandle, 
&amp;header, &amp;pkt_data)) &gt;= 0)<o:p></o:p></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">{<o:p></o:p></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">if</SPAN><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">(res == 0)<o:p></o:p></SPAN></P>
<P><SPAN style="FONT-SIZE: 10pt; COLOR: green; FONT-FAMILY: Arial">/* Timeout 
elapsed */<o:p></o:p></SPAN></P>
<P><SPAN 
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">continue</SPAN><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">;<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">However in a Wireshark&nbsp;I can 
definitely see the expected packets om this same card.</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">The algorithm is similar in both 
environments and it based on the samples following the 
product.</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Has anyone any idea what could be 
the cause?</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Regards</SPAN><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I. 
Lesher</SPAN><o:p></o:p></P></FONT></DIV></BODY></HTML>