<DIV>Thanks Helmut. Could the filter be positioned on the Driver layer? If could, how to write the filter string and then pcap_setfilter(...)?<BR></DIV>
<DIV></DIV><BR>ÔÚ2010-03-01 20:01:36£¬"Helmut Vaupotitsch" <hv@itec-audio.com> дµÀ£º<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> There is a problem about use pcap_next_ex(...) to receive packet in Windows XP SP3. This function will be unexpected to receive the packet sent by the function pcap_sendpacket(...) in the same port. 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". How could I implement the functionality that the pcap_next_ex(...) don't receive packet sent by pcap_sendpacket? Any help from you will be highly appreciated. Thanks!</DIV>
<DIV> </DIV>
<DIV>BR.</DIV>
<DIV>Sam</DIV>
<DIV> </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>