<html><div style='background-color:'><P>I can make a capture with filters now!!</P>
<P>Thank you for your help!</P>
<P>Like 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> if (pcap_setfilter(fp, &fcode) < 0)<BR> {<BR> fprintf(stderr,"\nError setting the filter.\n");<BR> }</EM></STRONG></P>
<P><STRONG><EM> <FONT color=#ff3300> /* Free the device list */<BR> // pcap_freealldevs(alldevs);<BR> // 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>