tcpdump mailing list archives
Re: pcap_findalldevs, pcap_addr doesn't have
From: Sam Roberts <vieuxtech () gmail com>
Date: Sun, 3 Apr 2011 09:35:16 -0700
On Sat, Apr 2, 2011 at 7:40 PM, Bob <waldo1979 () gmail com> wrote:
Also, any suggestions for a cross-platform means of getting a MAC address (AF_LINK). On BSD i can use socketaddr_dl from if_dl.h, but Linux doesn't have this. I'm not even sure about windows.
libnet has a libnet_get_hwaddr(), might work across your platforms. http://sourceforge.net/projects/libnet-dev/ Sam - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- pcap_findalldevs, pcap_addr doesn't have AF_INET entries on OSX Bob (Apr 02)
- Re: pcap_findalldevs, pcap_addr doesn't have Sam Roberts (Apr 03)
- Re: pcap_findalldevs, pcap_addr doesn't have AF_INET entries on OSX Guy Harris (Apr 03)
- Re: pcap_findalldevs, pcap_addr doesn't have AF_INET entries on OSX Bob (Apr 03)
- Re: pcap_findalldevs, pcap_addr doesn't have AF_INET entries on OSX Guy Harris (Apr 03)
- Re: pcap_findalldevs, pcap_addr doesn't have AF_INET entries on OSX Bob (Apr 03)