bird and unnumbered interfaces
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;
I withdraw this patch suggestion, since does not wok properly on point-to-poit interfaces. Sörös József Sörös Jozsef wrote:
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;
-- Üdvözlettel: Sörös József Multip Kft. JS84-RIPE
participants (1)
-
Sörös Jozsef