avoid AF_LINK on platforms that don't define it
This commit is contained in:
parent
919bc3d3b7
commit
c6fad2c3d1
|
@ -609,9 +609,11 @@ check_match_ifaddrs(const char *addrlist)
|
||||||
case AF_INET6:
|
case AF_INET6:
|
||||||
salen = sizeof(struct sockaddr_in6);
|
salen = sizeof(struct sockaddr_in6);
|
||||||
break;
|
break;
|
||||||
|
#ifdef AF_LINK
|
||||||
case AF_LINK:
|
case AF_LINK:
|
||||||
/* ignore */
|
/* ignore */
|
||||||
continue;
|
continue;
|
||||||
|
#endif /* AF_LINK */
|
||||||
default:
|
default:
|
||||||
debug2_f("interface %s: unsupported address family %d",
|
debug2_f("interface %s: unsupported address family %d",
|
||||||
ifa->ifa_name, ifa->ifa_addr->sa_family);
|
ifa->ifa_name, ifa->ifa_addr->sa_family);
|
||||||
|
|
Loading…
Reference in New Issue