From 92f8878cbf5d8ad9e9b909a9dcbb2112de54a542 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Tue, 10 Sep 2013 13:03:58 +0200 Subject: [PATCH] Fixes a bug related to multiple IPs and direct protocol. Multiple IPs in the same IP prefix confuse the direct protocol and could cause withdrawal of a valid prefix. Thanks to Dan Rimal for a bugreport. --- nest/rt-dev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nest/rt-dev.c b/nest/rt-dev.c index 54cb14ba..4fb5bddb 100644 --- a/nest/rt-dev.c +++ b/nest/rt-dev.c @@ -34,6 +34,9 @@ dev_ifa_notify(struct proto *p, unsigned c, struct ifa *ad) /* Empty list is automagically treated as "*" */ return; + if (ad->flags & IA_SECONDARY) + return; + if (ad->scope <= SCOPE_LINK) return;