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:
parent
2a0130f94d
commit
92f8878cbf
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue