diff --git a/src/config.c b/src/config.c index d0c84d6..bae1ab5 100644 --- a/src/config.c +++ b/src/config.c @@ -32,16 +32,19 @@ void config_vifs_from_kernel(void) /* * Ignore any interface for an address family other than IP. */ - if (!ifa->ifa_addr || ifa->ifa_addr->sa_family != AF_INET) + if (!ifa->ifa_addr || ifa->ifa_addr->sa_family != AF_INET) { + logit(LOG_INFO, 0, "skipping (this instance of) %s, no IPv4 address.", ifa->ifa_name); continue; + } /* - * Ignore loopback interfaces and interfaces that do not support - * multicast. + * Ignore interfaces that do not support multicast. */ flags = ifa->ifa_flags; - if ((flags & (IFF_LOOPBACK|IFF_MULTICAST)) != IFF_MULTICAST) + if (!(flags & IFF_MULTICAST)) { + logit(LOG_INFO, 0, "skipping %s, does not support multicast.", ifa->ifa_name); continue; + } /* * Perform some sanity checks on the address and subnet, ignore any