OSPF bug?
Ondrej Feela Filip
feela at ipex.cz
Fri Dec 7 18:22:05 CET 2001
On Fri, 7 Dec 2001, Ondrej Feela Filip wrote:
> On Sat, 24 Nov 2001, Mark Glines wrote:
>
> > Hi! We've been attempting to use bird 1.0.5 on our test network,
> > but OSPF didn't seem to be propogating correctly. Rather, it was
> > talking amongst its peer routers properly, and propogating routes
> > correctly, but forgetting to set the gateways (which kinda defeats
> > the purpose).
> >
>
> Hi!
> I'm sorry that I'm answering so late. I'm quite busy now. (But good news
> is, that one company will pay for my upgrades of Bird, so I'll have more
> time for it.)
>
> > For instance, we have one machine (test1, 192.168.0.254) which is
> > directly attached to 192.168.0.0/24 (obviously) and 192.168.1.0/24,
> > as well as our uplink to the internet. Another machine
> > (192.168.0.60) is directly attached to 192.168.0.0/24 (obviously),
> > 192.168.4.0/24 and 192.168.7.0/24.
> >
> > Once they had flooded LS's and entered OSPF "full" mode with
> > eachother, test1's routing table looked like:
> >
> > test1:~# ip route
> > XXX.XXX.XXX.XXX/27 dev eth0 proto kernel scope link src XXX.XXX.XXX.XXX
> > 192.168.7.0/24 dev eth2 proto bird
> > 192.168.4.0/24 dev eth2 proto bird
> > 192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.254
> > 192.168.0.0/24 dev eth2 proto kernel scope link src 192.168.0.254
> > default via XXX.XXX.XXX.XXX dev eth0 proto bird
> >
> >
> >
> > I rooted around in the source for a while, and managed to make it work.
> > Attached is the patch (which also includes a small documentation fix).
>
> Thank you!
>
> > This patch makes bird set gateways properly:
> >
> > test1:~# ip route
> > XXX.XXX.XXX.XXX/27 dev eth0 proto kernel scope link src XXX.XXX.XXX.XXX
> > 192.168.7.0/24 via 192.168.0.60 dev eth2 proto bird
> > 192.168.4.0/24 via 192.168.0.60 dev eth2 proto bird
> > 192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.254
> > 192.168.0.0/24 dev eth2 proto kernel scope link src 192.168.0.254
> > default via XXX.XXX.XXX.XXX dev eth0 proto bird
> >
> >
> >
> > Since this seems like such a silly bug and is so unlikely to be
> > overlooked (because it rendered bird's OSPF mostly useless), I have
> > to ask if we configured something wrong, or managed to mess something
> > else up. Please also find attached one of our config files (they all
>
> :-) No it was really bug in OSPF. Thank you for the fix. I don't
> understand how this happened. :-(
>
> > look pretty similar to this). What happened? I'd love to hear your
> > comments.
>
> Just stupid bug in my last bugfix. :-)
>
> >
> > Thanks for your time,
>
> Thank you!
And please use this attached patch. Your is not correct (ipa is not u32
when debug in on).
Thank you again!
Feela
>
> > Mark
> >
-------------- next part --------------
Index: proto/ospf/rt.c
===================================================================
RCS file: /home2/mj/BIRD/bird/proto/ospf/rt.c,v
retrieving revision 1.52
diff -u -r1.52 rt.c
--- proto/ospf/rt.c 21 Aug 2001 17:00:15 -0000 1.52
+++ proto/ospf/rt.c 7 Dec 2001 17:22:00 -0000
@@ -200,7 +200,7 @@
else
{
/* Update routing table */
- if(nf->en->nhi==NULL)
+ if(ipa_equal(nf->en->nh,ipa_from_u32(0)))
{
struct top_hash_entry *en=nf->en;
struct ospf_neighbor *neigh;
More information about the Bird-users
mailing list