avoid AF_LINK on platforms that don't define it

This commit is contained in:
Damien Miller 2023-07-17 14:56:14 +10:00
parent 919bc3d3b7
commit c6fad2c3d1
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -609,9 +609,11 @@ check_match_ifaddrs(const char *addrlist)
case AF_INET6:
salen = sizeof(struct sockaddr_in6);
break;
#ifdef AF_LINK
case AF_LINK:
/* ignore */
continue;
#endif /* AF_LINK */
default:
debug2_f("interface %s: unsupported address family %d",
ifa->ifa_name, ifa->ifa_addr->sa_family);