Skip to content

Commit

Permalink
avoid AF_LINK on platforms that don't define it
Browse files Browse the repository at this point in the history
  • Loading branch information
djmdjm committed Jul 17, 2023
1 parent 919bc3d commit c6fad2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions readconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c6fad2c

Please sign in to comment.