<div dir="ltr">Thanks Guy for your reply.<div><br></div><div>I have wrote my program using winpcap lib.</div><div><pre style="font-family:Consolas"><span style="color:blue">if</span>((fp = pcap_open_offline(csSourceFile.GetBuffer(), <span style="color:green">/* name of the device */</span> errbuf <span style="color:green">/* error buffer */</span> )) == NULL)
{
fprintf(stderr, <span style="color:rgb(163,21,21)">"\nUnable to open the file %s.\n"</span>, csSourceFile.GetBuffer());
<span style="color:blue">return</span> 0;
}
<span style="color:green">/* Retrieve the packets from the file */</span>
<span style="color:blue">long</span> iCounter=1;
<span style="color:blue">while</span>((res = pcap_next_ex(fp, &header, &pkt_data)) >= 0)
</pre><pre style="font-family:Consolas">.....</pre><pre style="font-family:Consolas">and to my surprise it is not giving errors and i can see ip/udp data headers.</pre><pre style="font-family:Consolas">and FYI, wireshark can read snoop generated capture file. (<a href="http://wiki.wireshark.org/snoop" style="font-family:arial">http://wiki.wireshark.org/snoop</a>)</pre>
</div><div class="gmail_extra">
<br><div class="gmail_quote">On Fri, Aug 30, 2013 at 12:30 PM, Guy Harris <span dir="ltr"><<a href="mailto:guy@alum.mit.edu" target="_blank">guy@alum.mit.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div><br>
On Aug 29, 2013, at 10:17 PM, Chintan Bhatt <<a href="mailto:cbhatt@thebeastapps.com" target="_blank">cbhatt@thebeastapps.com</a>> wrote:<br>
<br>
> I have opened solaris snoop file using winpcap lib.<br>
<br>
</div>What program did you use? (If it's Wireshark, it was *NOT* opened using WinPcap! Wireshark has its *OWN* library for reading capture files, which *IS* capable of reading snoop files, as well as pcap files, pcap-ng files, and a number of other capture file types.)<br>
<div><br>
> It's opened !!!!!!!!!.<br>
><br>
> I have seen that snoop has different packet capture file format,<br>
><br>
> how winpcap able to read ??<br>
<br>
</div>It's *not* able to read it, unless you have some special version of WinPcap. Something else must have happened. (For example, if you read it with Wireshark, something else happened - as indicated above, it was read with Wireshark's Wiretap library, *NOT* with WinPcap.)<br>
_______________________________________________<br>
Winpcap-users mailing list<br>
<a href="mailto:Winpcap-users@winpcap.org" target="_blank">Winpcap-users@winpcap.org</a><br>
<a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
</blockquote></div><br></div></div>
<br>
<p><span style="FONT-SIZE:10pt;FONT-FAMILY:'Arial','sans-serif'">This message contains
confidential information and is intended only for the individual named. If you
are not the named addressee and have received this message you should not
disseminate, distribute or copy this email. Please notify the sender immediately
by e-mail if you have received this e-mail by mistake and delete this e-mail
from your system. 18 U.S.C. '2510 et. seq., makes it a federal offense
punishable by a fine and up to 5 years incarceration, for the intentional
interception, disclosure, dissemination or use of any wire, oral or electronic
communication, knowing or having reason to know that the information was
obtained through illegal interception.</span></p>
<p> </p>
<p><span style="FONT-SIZE:10pt;FONT-FAMILY:'Arial','sans-serif'">E-mail transmission
cannot be guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain
viruses. The sender therefore does not accept liability for any errors or
omissions in the content of this message which arise as a result of
e-transmission. If verification is required, please request a hard-copy
version.</span></p>
<p> </p>
<p><span style="FONT-SIZE:10pt;FONT-FAMILY:'Arial','sans-serif'">TheBeastApps.com
reserves the right to monitor and review the content of all messages sent to or
from this e-mail address, and may store messages sent to or from this e-mail
address on the TheBeastApps.com e-mail system as part of TheBeastApps.com US
Patriot Act Compliance Program.</span></p>