From: gdt Date: Fri, 27 Aug 2004 12:03:42 +0000 (+0000) Subject: 2004-08-27 David Wiggins X-Git-Tag: frr-2.0-rc1~3599 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=d7d93997315472f2f1f40012795e31604db95491;p=matthieu%2Ffrr.git 2004-08-27 David Wiggins * ospf_spf.c (ospf_nexthop_calculation): Initialize address family in on-stack struct prefix_ipv4. Fixes point-to-multipoint SPF calculation. --- diff --git a/ospfd/ChangeLog b/ospfd/ChangeLog index 3da4571f09..64bddca098 100644 --- a/ospfd/ChangeLog +++ b/ospfd/ChangeLog @@ -1,10 +1,16 @@ +2004-08-27 David Wiggins + + * ospf_spf.c (ospf_nexthop_calculation): Initialize address family + in on-stack struct prefix_ipv4. Fixes point-to-multipoint SPF + calculation. + 2004-08-26 Greg Troxel * ospf_packet.c (ospf_recv_packet): adjust size declaration of - buffer used to get interface index so that it compiles on other - than Linux and includes the required alignment space. Probably - this was only working on sparc/sparc64 because most of sockaddr_dl - was not being written. + buffer used to get interface index so that it compiles on other + than Linux and includes the required alignment space. Probably + this was only working on sparc/sparc64 because most of + sockaddr_dl was not being written. 2004-08-19 Paul Jakma diff --git a/ospfd/ospf_spf.c b/ospfd/ospf_spf.c index 5afdf161b8..bc12c366d6 100644 --- a/ospfd/ospf_spf.c +++ b/ospfd/ospf_spf.c @@ -424,6 +424,7 @@ ospf_nexthop_calculation (struct ospf_area *area, if (oi && oi->type == OSPF_IFTYPE_POINTOMULTIPOINT) { struct prefix_ipv4 la; + la.family = AF_INET; la.prefixlen = oi->address->prefixlen; /* We link to them on PtMP interface - find the interface on w */