diff options
author | paul <paul> | 2003-06-07 01:04:45 +0000 |
---|---|---|
committer | paul <paul> | 2003-06-07 01:04:45 +0000 |
commit | 788409a119dd93192c2adc8704eb10c94fa69c18 (patch) | |
tree | b0744aaa4d8fe0e9a2167af846e08cd9893dec76 /ripd/ripd.c | |
parent | 1c30e1da39f353c441efe978390e602c7a11bac8 (diff) | |
download | quagga-788409a119dd93192c2adc8704eb10c94fa69c18.tar.bz2 quagga-788409a119dd93192c2adc8704eb10c94fa69c18.tar.xz |
From: Andrew J. Schorr <aschorr@telemetry-investments.com>
Subject: [zebra 12406] patch for ripd to support "passive-interface
default" behavior
In Cisco IOS, the router rip passive-interface subcommand can accept
an interface name of "default". In that cases, all interfaces are set
to be passive by default, and you must explicitly make it non-passive
by using the "no passive-interface <ifname>" command if you want updates
to go to that interface.
<command implemented for zebra>
Diffstat (limited to 'ripd/ripd.c')
-rw-r--r-- | ripd/ripd.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/ripd/ripd.c b/ripd/ripd.c index a58406b4..31cfe0cf 100644 --- a/ripd/ripd.c +++ b/ripd/ripd.c @@ -3362,6 +3362,25 @@ DEFUN (show_ip_rip_status, vty_out (vty, " Routing for Networks:%s", VTY_NEWLINE); config_write_rip_network (vty, 0); + { + int found_passive = 0; + for (node = listhead (iflist); node; node = nextnode (node)) + { + ifp = getdata (node); + ri = ifp->info; + + if ((ri->enable_network || ri->enable_interface) && ri->passive) + { + if (!found_passive) + { + vty_out (vty, " Passive Interface(s):%s", VTY_NEWLINE); + found_passive = 1; + } + vty_out (vty, " %s%s", ifp->name, VTY_NEWLINE); + } + } + } + vty_out (vty, " Routing Information Sources:%s", VTY_NEWLINE); vty_out (vty, " Gateway BadPackets BadRoutes Distance Last Update%s", VTY_NEWLINE); rip_peer_display (vty); @@ -3630,7 +3649,7 @@ rip_clean () } rip_clean_network (); - rip_passive_interface_clean (); + rip_passive_nondefault_clean (); rip_offset_clean (); rip_interface_clean (); rip_distance_reset (); |