From d9c99f75b268666273d67326cb3535609a61e63a Mon Sep 17 00:00:00 2001 From: gdt Date: Tue, 31 Aug 2004 17:28:41 +0000 Subject: Assorted changes from work at BBN. Most are minor, and several are in support of more significant changes not in this commit. The last item in the ChangeLog below may be needed for p2mp to work correctly. 2004-08-31 David Wiggins * hash.c (hash_iterate): Save next pointer before calling procedure, so that iteration works even if the called procedure deletes the hash backet. * linklist.h (listtail): new macro, not yet used. 2004-08-31 David Wiggins * ospf_spf.c (ospf_spf_calculate): Many more comments and debug print statements. New function ospf_vertex_dump used in debugging. 2004-08-31 David Wiggins * ospf_spf.h (struct vertex): Comments for flags and structure members. 2004-08-31 David Wiggins * ospf_route.c: When finding an alternate route, log cost as well. 2004-08-31 David Wiggins * ospf_interface.c (ospf_lookup_if_params): Initialize af in struct prefix allocated on stack. 2004-08-31 David Wiggins * ospf_packet.c (ospf_ls_ack_send_delayed): In p2mp mode, send acks to AllSPFRouters, rather than All-DR. --- ospfd/ospf_interface.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ospfd/ospf_interface.c') diff --git a/ospfd/ospf_interface.c b/ospfd/ospf_interface.c index fcc70e3b..f7e200c3 100644 --- a/ospfd/ospf_interface.c +++ b/ospfd/ospf_interface.c @@ -545,6 +545,8 @@ ospf_free_if_params (struct interface *ifp, struct in_addr addr) struct ospf_if_params *oip; struct prefix_ipv4 p; struct route_node *rn; + + p.family = AF_INET; p.prefixlen = IPV4_MAX_PREFIXLEN; p.prefix = addr; rn = route_node_lookup (IF_OIFS_PARAMS (ifp), (struct prefix*)&p); @@ -578,6 +580,7 @@ ospf_lookup_if_params (struct interface *ifp, struct in_addr addr) struct prefix_ipv4 p; struct route_node *rn; + p.family = AF_INET; p.prefixlen = IPV4_MAX_PREFIXLEN; p.prefix = addr; -- cgit v1.2.3