[Winpcap-users] Determing incoming vs. outgoing packets.

Jason Cipriani jason.cipriani at gmail.com
Thu May 14 23:27:18 PDT 2009

I am writing an application that uses winpcap to capture TCP/IP
packets. Given that I know nothing about the machine that the
application is running on, what is the best way to determine if a
packet is incoming or outgoing?

If it comes down to checking MAC/IP addresses, what's the best way to
programmatically determine which addresses to check for? I do not want
the user to be responsible for determining and entering their own MAC
or local IP address, it must be done automatically.


More information about the Winpcap-users mailing list