Re: [tcpdump-workers] pcap_findalldevs, pcap_addr doesn't have AF_INET entries on OSX

2011-04-03 Thread Guy Harris
On Apr 3, 2011, at 4:24 PM, Bob wrote: > Yes, I'm checking the whole linked list. I get an AF_LINK and AF_INET6 per > interface but no AF_NET. Works great on Ubuntu. Probably something simple > I'll keep debugging. The program I was running was the findalldevstest program, the source to which

Re: [tcpdump-workers] pcap_findalldevs, pcap_addr doesn't have AF_INET entries on OSX

2011-04-03 Thread Bob
Yes, I'm checking the whole linked list. I get an AF_LINK and AF_INET6 per interface but no AF_NET. Works great on Ubuntu. Probably something simple I'll keep debugging. -Rob On Apr 3, 2011, at 10:14 AM, Guy Harris wrote: > > On Apr 2, 2011, at 7:40 PM, Bob wrote: > >> Hello, I just noticed

Re: [tcpdump-workers] pcap_findalldevs, pcap_addr doesn't have AF_INET entries on OSX

2011-04-03 Thread Guy Harris
On Apr 2, 2011, at 7:40 PM, Bob wrote: > 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?

Re: [tcpdump-workers] pcap_findalldevs, pcap_addr doesn't have

2011-04-03 Thread Sam Roberts
On Sat, Apr 2, 2011 at 7:40 PM, Bob 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 yo

[tcpdump-workers] pcap_findalldevs, pcap_addr doesn't have AF_INET entries on OSX

2011-04-02 Thread Bob
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