Yeah, I just got the same problem, so I changed the declaration: "u_char *pkt_data;" to "const u_char *pkt_data;"<br>
<br>
It works just fine. However, I dont know if it is the correct way.<br>
<br>
-- Isara<br><br><div><span class="gmail_quote">On 7/28/05, <b class="gmail_sendername">Eric Hansen</b> <<a href="mailto:nightskywriter@gmail.com">nightskywriter@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><font face="Arial" size="2">Everytime I compile my program, I always end up
with this error:</font></div>
<div><font face="Arial" size="2">" error C2664: 'pcap_next_ex' : cannot convert
parameter 3 from 'unsigned char ** ' to 'const unsigned char ** ' "</font></div>
<div> </div>
<div><font face="Arial" size="2">My code is exact to the example in the
documentation (first I'm just trying to get it to work). Is there a fix for
this error, or should I just skip using pcap_next_ex()?</font></div>
<br clear="all">If I don't use this function, it compiles fine, without error.<br><span class="sg">
<br>-- <br><a href="<a>http://silent-poet.vze.com"</a>>my poetry</a>.<br><br>Hey baby, scratch your number on my electric cucumber[!]<br>"Scream out loud, Let it out, Can't stand your LIBERTY!"
</span><br>_______________________________________________<br>Winpcap-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Winpcap-users@winpcap.org">Winpcap-users@winpcap.org</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br><br><br></blockquote></div>
<br>