From fffb22cdb57d314b8fc6b27b46af469932f2ca9b Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Tue, 29 Sep 2020 07:20:14 +0200 Subject: [PATCH] Revert "Fix #39: allow use of loopback interface for routing" This reverts commit 99610514148a003abcf5b7d001d011b371fa216d. --- src/config.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/config.c b/src/config.c index b1042f1..6b662c2 100644 --- a/src/config.c +++ b/src/config.c @@ -243,19 +243,16 @@ 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) { - logit(LOG_INFO, 0, "skipping (this instance of) %s, no IPv4 address.", ifa->ifa_name); + if (!ifa->ifa_addr || ifa->ifa_addr->sa_family != AF_INET) continue; - } /* - * Ignore interfaces that do not support multicast. + * Ignore loopback interfaces and interfaces that do not support + * multicast. */ flags = ifa->ifa_flags; - if (!(flags & IFF_MULTICAST)) { - logit(LOG_INFO, 0, "skipping %s, does not support multicast.", ifa->ifa_name); + if ((flags & (IFF_LOOPBACK|IFF_MULTICAST)) != IFF_MULTICAST) continue; - } /* * Perform some sanity checks on the address and subnet, ignore any