diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2013-09-10 13:03:58 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2013-09-10 13:03:58 +0200 |
commit | 92f8878cbf5d8ad9e9b909a9dcbb2112de54a542 (patch) | |
tree | 1a89ab277f39f0b39b6f635e4dbcac41c91515d8 | |
parent | 2a0130f94d2304e316f0ffad8e52fce094559782 (diff) |
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.
-rw-r--r-- | nest/rt-dev.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |