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.
This commit is contained in:
Ondrej Zajicek 2013-09-10 13:03:58 +02:00
parent 2a0130f94d
commit 92f8878cbf

View file

@ -34,6 +34,9 @@ dev_ifa_notify(struct proto *p, unsigned c, struct ifa *ad)
/* Empty list is automagically treated as "*" */ /* Empty list is automagically treated as "*" */
return; return;
if (ad->flags & IA_SECONDARY)
return;
if (ad->scope <= SCOPE_LINK) if (ad->scope <= SCOPE_LINK)
return; return;