2004-08-27 David Wiggins <dwiggins@bbn.com>

* ospf_spf.c (ospf_nexthop_calculation): Initialize address family
          in on-stack struct prefix_ipv4.  Fixes point-to-multipoint SPF
          calculation.
This commit is contained in:
gdt 2004-08-27 12:03:42 +00:00
parent 7225687afa
commit d7d9399731
2 changed files with 11 additions and 4 deletions

View File

@ -1,10 +1,16 @@
2004-08-27 David Wiggins <dwiggins@bbn.com>
* 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 <gdt@fnord.ir.bbn.com> 2004-08-26 Greg Troxel <gdt@fnord.ir.bbn.com>
* ospf_packet.c (ospf_recv_packet): adjust size declaration of * ospf_packet.c (ospf_recv_packet): adjust size declaration of
buffer used to get interface index so that it compiles on other buffer used to get interface index so that it compiles on other
than Linux and includes the required alignment space. Probably than Linux and includes the required alignment space. Probably
this was only working on sparc/sparc64 because most of sockaddr_dl this was only working on sparc/sparc64 because most of
was not being written. sockaddr_dl was not being written.
2004-08-19 Paul Jakma <paul@dishone.st> 2004-08-19 Paul Jakma <paul@dishone.st>

View File

@ -424,6 +424,7 @@ ospf_nexthop_calculation (struct ospf_area *area,
if (oi && oi->type == OSPF_IFTYPE_POINTOMULTIPOINT) if (oi && oi->type == OSPF_IFTYPE_POINTOMULTIPOINT)
{ {
struct prefix_ipv4 la; struct prefix_ipv4 la;
la.family = AF_INET;
la.prefixlen = oi->address->prefixlen; la.prefixlen = oi->address->prefixlen;
/* We link to them on PtMP interface /* We link to them on PtMP interface
- find the interface on w */ - find the interface on w */