[prev in list] [next in list] [prev in thread] [next in thread]
List: quagga-dev
Subject: [quagga-dev 9589] Re: [PATCH 1/4] ospfd: Optimize and improve SPF nexthop calculation
From: Joakim Tjernlund <joakim.tjernlund () transmode ! se>
Date: 2012-07-31 21:18:15
Message-ID: OFE505F6EE.8B3FC9DB-ONC1257A4C.0074D30E-C1257A4C.00750743 () transmode ! se
[Download RAW message or body]
Scott Feldman <sfeldma@cumulusnetworks.com> wrote on 2012/07/31 23:05:04:
>
> On Jul 31, 2012, at 1:49 PM, Scott Feldman wrote:
>
> > On Jul 31, 2012, at 1:45 PM, Joakim Tjernlund wrote:
> >> Yes, this is what I meant. One small change though:
> >> if (oi->type == OSPF_IFTYPE_POINTOPOINT)
> >> {
> >>
> >> added = 1;
> >> nexthop = 0;
> >> l2 = ospf_get_next_link(w, v, l2);
> >> if (l2)
> >> nexthop = l2->link_data;
> >> }
> >>
> >> That way you get the best result.
> >
> > Looks good.
>
> Actually, you want nexthop.s_addr = 0;
Right, I just did a quick prototype in my mail client.
Will do a patch, but I just got home so I think I will take the
rest of the night off :)
Jocke
_______________________________________________
Quagga-dev mailing list
Quagga-dev@lists.quagga.net
http://lists.quagga.net/mailman/listinfo/quagga-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic