diff options
-rw-r--r-- | ospfd/ChangeLog | 16 | ||||
-rw-r--r-- | ospfd/ospf_asbr.c | 3 | ||||
-rw-r--r-- | ospfd/ospf_lsa.c | 4 | ||||
-rw-r--r-- | ospfd/ospf_lsa.h | 2 | ||||
-rw-r--r-- | ospfd/ospf_vty.c | 3 | ||||
-rw-r--r-- | ospfd/ospf_zebra.c | 2 | ||||
-rw-r--r-- | ospfd/ospfd.c | 2 |
7 files changed, 24 insertions, 8 deletions
diff --git a/ospfd/ChangeLog b/ospfd/ChangeLog index bc37d507..1a3edcc3 100644 --- a/ospfd/ChangeLog +++ b/ospfd/ChangeLog @@ -1,3 +1,19 @@ +2005-09-19 Andrew J. Schorr <ajschorr@alumni.princeton.edu> + + * ospf_lsa.h: (ospf_external_lsa_flush) Comment out the 5th argument + (nexthop) since it is not used in the function (except inside + some commented-out code). + * ospf_lsa.c: (ospf_external_lsa_flush,ospf_external_lsa_refresh) + Comment out the 5th argument to ospf_external_lsa_flush. + * ospf_asbr.c: (ospf_redistribute_withdraw) Comment out 5th arg + to ospf_external_lsa_flush. + * ospf_vty.c: (no_ospf_default_information_originate) Eliminate 5th + uninitialized nexthop arg to ospf_external_lsa_flush. + * ospf_zebra.c: (ospf_zebra_read_ipv4) Comment out 5th arg + to ospf_external_lsa_flush. + * ospfd.c: (ospf_network_set) Comment out 5th arg + to ospf_external_lsa_flush. + 2005-09-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu> * ospf_opaque.c: diff --git a/ospfd/ospf_asbr.c b/ospfd/ospf_asbr.c index 7d41f5be..2eb01d0e 100644 --- a/ospfd/ospf_asbr.c +++ b/ospfd/ospf_asbr.c @@ -287,7 +287,8 @@ ospf_redistribute_withdraw (u_char type) if (is_prefix_default (&ei->p) && ospf->default_originate != DEFAULT_ORIGINATE_NONE) continue; - ospf_external_lsa_flush (ospf, type, &ei->p, ei->ifindex, ei->nexthop); + ospf_external_lsa_flush (ospf, type, &ei->p, + ei->ifindex /*, ei->nexthop */); ospf_external_info_delete (type, ei->p); } } diff --git a/ospfd/ospf_lsa.c b/ospfd/ospf_lsa.c index 708fa1c5..a85667e6 100644 --- a/ospfd/ospf_lsa.c +++ b/ospfd/ospf_lsa.c @@ -2137,7 +2137,7 @@ ospf_nssa_lsa_flush (struct ospf *ospf, struct prefix_ipv4 *p) void ospf_external_lsa_flush (struct ospf *ospf, u_char type, struct prefix_ipv4 *p, - unsigned int ifindex, struct in_addr nexthop) + unsigned int ifindex /*, struct in_addr nexthop */) { struct ospf_lsa *lsa; @@ -2261,7 +2261,7 @@ ospf_external_lsa_refresh (struct ospf *ospf, struct ospf_lsa *lsa, "redist check fail", lsa->data->type, inet_ntoa (lsa->data->id)); ospf_external_lsa_flush (ospf, ei->type, &ei->p, - ei->ifindex, ei->nexthop); + ei->ifindex /*, ei->nexthop */); return; } diff --git a/ospfd/ospf_lsa.h b/ospfd/ospf_lsa.h index d7ead3d4..5cf69c31 100644 --- a/ospfd/ospf_lsa.h +++ b/ospfd/ospf_lsa.h @@ -272,7 +272,7 @@ extern struct ospf_lsa *ospf_lsa_install (struct ospf *, extern void ospf_nssa_lsa_flush (struct ospf *ospf, struct prefix_ipv4 *p); extern void ospf_external_lsa_flush (struct ospf *, u_char, struct prefix_ipv4 *, - unsigned int, struct in_addr); + unsigned int /* , struct in_addr nexthop */); extern struct in_addr ospf_get_ip_from_ifp (struct ospf_interface *); diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index 1c1f2fc6..e8d0a38a 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -6054,13 +6054,12 @@ DEFUN (no_ospf_default_information_originate, { struct ospf *ospf = vty->index; struct prefix_ipv4 p; - struct in_addr nexthop; p.family = AF_INET; p.prefix.s_addr = 0; p.prefixlen = 0; - ospf_external_lsa_flush (ospf, DEFAULT_ROUTE, &p, 0, nexthop); + ospf_external_lsa_flush (ospf, DEFAULT_ROUTE, &p, 0); if (EXTERNAL_INFO (DEFAULT_ROUTE)) { ospf_external_info_delete (DEFAULT_ROUTE, p); diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c index 0e1905a0..2072b177 100644 --- a/ospfd/ospf_zebra.c +++ b/ospfd/ospf_zebra.c @@ -869,7 +869,7 @@ ospf_zebra_read_ipv4 (int command, struct zclient *zclient, if (is_prefix_default (&p)) ospf_external_lsa_refresh_default (ospf); else - ospf_external_lsa_flush (ospf, api.type, &p, ifindex, nexthop); + ospf_external_lsa_flush (ospf, api.type, &p, ifindex /*, nexthop */); } return 0; diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c index 189805b3..9161f9ce 100644 --- a/ospfd/ospfd.c +++ b/ospfd/ospfd.c @@ -620,7 +620,7 @@ ospf_network_set (struct ospf *ospf, struct prefix_ipv4 *p, if (ospf_external_info_find_lsa (ospf, &ei->p)) if (!ospf_distribute_check_connected (ospf, ei)) ospf_external_lsa_flush (ospf, ei->type, &ei->p, - ei->ifindex, ei->nexthop); + ei->ifindex /*, ei->nexthop */); ospf_area_check_free (ospf, area_id); |