<DIV>Thanks Helmut.&nbsp; Could the filter be positioned on the Driver layer?&nbsp; If could, how to write the filter string and then pcap_setfilter(...)?<BR></DIV>
<DIV></DIV><BR>ÔÚ2010-03-01 20:01:36£¬"Helmut&nbsp;Vaupotitsch"&nbsp;&lt;hv@itec-audio.com&gt; Ð´µÀ£º<BR>
<BLOCKQUOTE style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" id="isReplyContent"><SMALL><TT>I just filter out unwanted packets (in your case, packets sent by your app) by comparing ether.source with the MAC address of the bound adapter.<BR><BR>Best regards<BR>Helmut<BR></TT></SMALL><BR>fly_2u schrieb: 
<BLOCKQUOTE cite="mid:390db1b6.80a8.1270fbb9852.Coremail.fly_2u@126.com" type="cite">
<DIV>Hi experts,</DIV>
<DIV>&nbsp; There is a problem about use pcap_next_ex(...) to receive packet in Windows XP SP3.&nbsp; This function will be unexpected to receive the packet sent by the function pcap_sendpacket(...) in the same port.&nbsp; And when I use pcap_setdirection(m_pcapHandle, PCAP_D_IN) to set it, it will return -1, the error info is "Setting direction is not implemented on this platform".&nbsp; How could I implement the functionality that the pcap_next_ex(...)&nbsp;don't receive packet sent by pcap_sendpacket?&nbsp;&nbsp;Any help from you will be highly appreciated.&nbsp; Thanks!</DIV>
<DIV>&nbsp;</DIV>
<DIV>BR.</DIV>
<DIV>Sam</DIV>
<DIV>&nbsp;</DIV><BR><BR><SPAN title="neteasefooter"></SPAN><PRE wrap=""><HR SIZE="4" width="90%">
_______________________________________________
Winpcap-users mailing list
<A class="moz-txt-link-abbreviated" href="mailto:Winpcap-users@winpcap.org">Winpcap-users@winpcap.org</A>
<A class="moz-txt-link-freetext" href="https://www.winpcap.org/mailman/listinfo/winpcap-users">https://www.winpcap.org/mailman/listinfo/winpcap-users</A>
  </PRE></BLOCKQUOTE><BR><PRE class="moz-signature" cols="172">-- 
----------------------------------------------------------------
Ing. Helmut Vaupotitsch        Phone:  +43 (0)3133 3780 16
ITEC Tontechnik und            Fax:    +43 (0)3133 3780 9
Industrieelektronik GmbH       E-mail: <A class="moz-txt-link-abbreviated" href="mailto:hv@itec-audio.com">hv@itec-audio.com</A>
A-8200 Lassnitzthal 300        URL:    <A class="moz-txt-link-freetext" href="http://www.itec-audio.com/">http://www.itec-audio.com</A>
----------------------------------------------------------------</PRE></BLOCKQUOTE><br><br><span title="neteasefooter"/></span>