[Fwd: bird and unnumbered interfaces]

Sörös Jozsef soros.jozsef at multip.hu
Tue Mar 1 16:09:41 CET 2005


Hi!
Once upon a time I suggested and sent a patch to correct the behavior of 
bird in case of using unnumbered routing.
Up till now it has not been added to the release, so I always have to 
make a special release for myself.
Please add this the release!
Joseph

-------- Original Message --------
Subject: 	bird and unnumbered interfaces
Date: 	Tue, 10 Feb 2004 17:14:48 +0100
From: 	Sörös Jozsef <soros at multip.hu>
To: 	Bird <bird-users at bird.network.cz>



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



More information about the Bird-users mailing list