bird and unnumbered interfaces
Sörös Jozsef
soros at multip.hu
Tue Feb 10 17:14:48 CET 2004
I suggest this correction in nest/iface.c to get bird handle interfaces
with unnumbered and addresses correctly.
Best regards: Joseph
--- iface.c 2004-02-10 09:41:09.000000000 +0100
+++ nest/iface.c 2004-02-10 02:58:51.000000000 +0100
@@ -407,9 +407,13 @@
WALK_LIST(a, i->addrs)
{
- if (!(a->flags & IA_SECONDARY) && (!b || a->scope > b->scope))
- b = a;
- a->flags &= ~IA_PRIMARY;
+ if (!(a->flags & IA_SECONDARY)
+ && !(a->flags & IA_UNNUMBERED)
+ && (!b || a->scope > b->scope))
+ {
+ b = a;
+ a->flags &= ~IA_PRIMARY;
+ }
}
res = (b != i->addr);
i->addr = b;
More information about the Bird-users
mailing list