tcpdump mailing list archives

pcap_findalldevs, pcap_addr doesn't have AF_INET entries on OSX


From: Bob <waldo1979 () gmail com>
Date: Sat, 2 Apr 2011 19:40:04 -0700

Hello, I just noticed that no AF_INET address is returned when getting an interface list (from pcap_findalldevs) on OSX 
even when an IPv4 address is assigned to that interface. An AF_INET6 address is however returned.  Is this the expect 
behavior? Am I do something wrong?

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.

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


Current thread: