]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes a bug related to multiple IPs and direct protocol.
authorOndrej Zajicek <santiago@crfreenet.org>
Tue, 10 Sep 2013 11:03:58 +0000 (13:03 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Tue, 10 Sep 2013 11:03:58 +0000 (13:03 +0200)
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

index 54cb14ba09a9f51e80b8d916a0755b37930d6672..4fb5bddbf2a54d16f31c187648f7fa794702fcd7 100644 (file)
@@ -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;