tcpdump mailing list archives

Hardware mac address with pcap/winpcap


From: Chris Morgan <chmorgan () gmail com>
Date: Tue, 3 Mar 2009 03:32:25 -0500

I'm working on a pcap/winpcap c# library, SharpPcap. I was wondering
what the best way to get a devices mac address was, preferrably in a
manner that would work in both pcap and with winpcap. So far I've seen
code that captures packets on the interface and looks in them for the
mac address, I've also seen code that sends an arp packet I guess
using the adapter ip address. I wanted to see if these were the best
ways, if anyone had any recommendations.

Chris
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: