<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16544" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Im using 'pcap_next_ex()' to receive the packets in
a loop, but i found a problem. A lot of packets appeared to be the same length
and timestamp, but Im sure that that value was wrong, confirmed in wireshark
(great tool).</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Looking for a solution, I found this strange
behavior:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> struct pcap_pkthdr* Header;<BR> const
u_char* Data;<BR> while( (Results = pcap_next_ex( PcapHandler,
&Header, &Data)) >= 0 )<BR> <BR>In the code above, I can see in
the debug mode that 'Data' pointer address are updated all the time, while
'Header' return a repeated address value many times. 'Header' pointer are
updated only some times.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Could someone help
me?<BR> <BR>thanks,<BR> <BR>Renato....</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>