<html><div style='background-color:'><P>I can make a capture with filters now!!</P>
<P>Thank you for your help!</P>
<P>Like&nbsp;you said me, I changed <EM><STRONG>adhandle </STRONG></EM>by <STRONG><EM>fp </EM></STRONG>and I ignore this part of code in Set the filter</P>
<P><STRONG><EM>// set the filter</EM></STRONG></P>
<P><STRONG><EM>&nbsp;&nbsp; if (pcap_setfilter(fp, &amp;fcode) &lt; 0)<BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp; fprintf(stderr,"\nError setting the filter.\n");<BR>&nbsp;&nbsp; }</EM></STRONG></P>
<P><STRONG><EM>&nbsp;&nbsp;&nbsp;&nbsp;<FONT color=#ff3300>&nbsp; /* Free the device list */<BR>&nbsp;&nbsp;&nbsp; //&nbsp; pcap_freealldevs(alldevs);<BR>&nbsp;&nbsp;&nbsp;&nbsp; //&nbsp; return -1;</FONT></EM></STRONG></P>
<P>Thank you and see you later</P></div><br clear=all><hr>MSN Messenger <a href="http://g.msn.com/8HMBFRFR/2755??PS=47575" target="_top">: dialoguez gratuitement de PC à PC !</a> </html>