#ifdef INET6
static int suitable_ifaddr6 (const char *, const struct sockaddr *);
#endif
+static bool exclude_interfaces(const char *);
#ifndef HAVE_GETIFADDRS
static unsigned int
)
continue;
+ if (exclude_interfaces(ifap->ifa_name)) {
+ continue;
+ }
+
if (!suitable_ifaddr(ifap->ifa_name, ifap->ifa_addr)) {
plog(ASL_LEVEL_DEBUG,
"unsuitable address: %s %s\n",
freeifaddrs(ifa0);
}
+static bool
+exclude_interfaces(ifname)
+ const char *ifname;
+{
+ if (ifname == NULL) {
+ return false;
+ }
+
+ if (strnstr(ifname, "awdl", IFNAMSIZ) != NULL) {
+ return true;
+ } else if (strnstr(ifname, "llw", IFNAMSIZ) != NULL) {
+ return true;
+ }
+
+ return false;
+}
+
/*
* check the interface is suitable or not
isakmp_close_unused();
autoconf_myaddrsport();
isakmp_open();
- ASIKEUpdateLocalAddressesFromIKE();
}