[Winpcap-users] Problem about receive the packet sent by self
Gianluca Varenni
gianluca.varenni at cacetech.com
Tue Mar 2 08:27:04 PST 2010
Sam,
there is actually an easier way to do that (if you do not need to support NT4). Open the device with pcap_open and use the flag PCAP_OPENFLAG_NOCAPTURE_LOCAL.
The sample UserLevelBridge shows the usage of this flag.
Have a nice day
GV
From: fly_2u
Sent: Monday, March 01, 2010 6:01 PM
To: winpcap-users at winpcap.org
Subject: Re: [Winpcap-users] Problem about receive the packet sent by self
Thanks Helmut. Could the filter be positioned on the Driver layer? If could, how to write the filter string and then pcap_setfilter(...)?
在2010-03-01 20:01:36,"Helmut Vaupotitsch" <hv at itec-audio.com> 写道:
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.
Best regards
Helmut
fly_2u schrieb:
Hi experts,
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!
BR.
Sam
----------------------------------------------------------------------------
_______________________________________________
Winpcap-users mailing list
Winpcap-users at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users
--
----------------------------------------------------------------
Ing. Helmut Vaupotitsch Phone: +43 (0)3133 3780 16
ITEC Tontechnik und Fax: +43 (0)3133 3780 9
Industrieelektronik GmbH E-mail: hv at itec-audio.com
A-8200 Lassnitzthal 300 URL: http://www.itec-audio.com
----------------------------------------------------------------
--------------------------------------------------------------------------------
_______________________________________________
Winpcap-users mailing list
Winpcap-users at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20100302/ff841537/attachment-0001.htm
More information about the Winpcap-users
mailing list