From: Vincent Bernat Date: Wed, 6 Jul 2022 20:56:29 +0000 (+0200) Subject: netlink: ignore IPv6 temporary addresses X-Git-Tag: 1.0.15~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db5c70856ad514e028bc73046dcaff54566e6a38;p=thirdparty%2Flldpd.git netlink: ignore IPv6 temporary addresses --- diff --git a/NEWS b/NEWS index 7ac48994..1380b0c4 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@ lldpd (1.0.15) * Fix: + Really don't send VLANs when there are too many (#520) + + Ignore temporary IPv6 addresses (#521) lldpd (1.0.14) * Changes diff --git a/src/daemon/netlink.c b/src/daemon/netlink.c index 1e6013af..93bcb53e 100644 --- a/src/daemon/netlink.c +++ b/src/daemon/netlink.c @@ -684,7 +684,12 @@ retry: goto end; } if (netlink_parse_address(msg, ifanew) == 0) { - TAILQ_FOREACH(ifaold, ifas, next) { + if (ifanew->address.ss_family == AF_INET6 && + ifanew->flags & IFA_F_TEMPORARY) { + interfaces_free_address(ifanew); + break; + } + TAILQ_FOREACH(ifaold, ifas, next) { if ((ifaold->index == ifanew->index) && !memcmp(&ifaold->address, &ifanew->address, sizeof(ifaold->address))) break;