diff options
author | paul <paul> | 2003-06-08 21:22:18 +0000 |
---|---|---|
committer | paul <paul> | 2003-06-08 21:22:18 +0000 |
commit | a5377e2afd6e749cf96932e9d566b64dbfa3ee64 (patch) | |
tree | 29d804df65b7ae97818a92cf7b50c512f3a5135e /ripd/ripd.c | |
parent | e2a2ca7c4b0d033af802710e5c5f0ff20408821d (diff) | |
download | quagga-a5377e2afd6e749cf96932e9d566b64dbfa3ee64.tar.bz2 quagga-a5377e2afd6e749cf96932e9d566b64dbfa3ee64.tar.xz |
2003-06-08 Paul Jakma <paul@dishone.st>
Compile and warning fixes for the ripd 'passive-interface default' patch.
Diffstat (limited to 'ripd/ripd.c')
-rw-r--r-- | ripd/ripd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ripd/ripd.c b/ripd/ripd.c index c9289e7a..d2a6b4d4 100644 --- a/ripd/ripd.c +++ b/ripd/ripd.c @@ -1992,7 +1992,7 @@ rip_output_process (struct interface *ifp, struct prefix *ifaddr, struct connected *c; int num; int rtemax; - int subnetted; + int subnetted = 0; /* Logging output event. */ if (IS_RIP_DEBUG_EVENT) @@ -2061,7 +2061,7 @@ rip_output_process (struct interface *ifp, struct prefix *ifaddr, apply_classful_mask_ipv4 (&ifaddrclass); subnetted = 0; if (ifaddr->prefixlen > ifaddrclass.prefixlen) - subnetted = 1; + subnetted = 1; } for (rp = route_top (rip->table); rp; rp = route_next (rp)) @@ -2260,7 +2260,7 @@ rip_update_interface (struct interface *ifp, u_char version, int route_type) if (IS_RIP_DEBUG_EVENT) zlog_info ("multicast announce on %s ", ifp->name); - rip_output_process (ifp, NULL, NULL, route_type, version); + rip_output_process (ifp, NULL, NULL, route_type, rip->version_send); return; } @@ -2288,7 +2288,7 @@ rip_update_interface (struct interface *ifp, u_char version, int route_type) inet_ntoa (to.sin_addr), ifp->name); rip_output_process (ifp, connected->address, &to, route_type, - version_send); + rip->version_send); } } } @@ -2369,7 +2369,7 @@ rip_update_process (int route_type) to.sin_port = htons (RIP_PORT_DEFAULT); /* RIP version is rip's configuration. */ - rip_output_process (ifp, NULL, &to, route_type, rip->version); + rip_output_process (ifp, NULL, &to, route_type, rip->version_send); } } |