[quagga-dev 9021] [PATCH] Save blackhole (reject) routes correctly Resubmit of patch already submited Mon Apr 11 15:38:19 IST 2011

if at xip.at if at xip.at
Sat Jan 14 01:19:04 GMT 2012


From: Ingo Flaschberger <if at xip.at>

---
 zebra/zebra_vty.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c
index 05485a1..fd36140 100644
--- a/zebra/zebra_vty.c
+++ b/zebra/zebra_vty.c
@@ -1142,7 +1142,11 @@ static_config_ipv4 (struct vty *vty)
               vty_out (vty, " %s", si->gate.ifname);
               break;
             case STATIC_IPV4_BLACKHOLE:
-              vty_out (vty, " Null0");
+              if (CHECK_FLAG(si->flags, ZEBRA_FLAG_REJECT)) {
+                vty_out (vty, " %s", "reject");
+              } else {
+                vty_out (vty, " Null0");
+              }
               break;
           }
         
-- 
1.7.1.1




More information about the Quagga-dev mailing list