summaryrefslogtreecommitdiffstats
path: root/zebra
diff options
context:
space:
mode:
authorChristian Franke <chris@opensourcerouting.org>2013-11-27 17:06:15 +0000
committerDavid Lamparter <equinox@opensourcerouting.org>2014-02-11 04:53:14 +0100
commitb52aef18a9f3acc8b24ab5c2631dc574b8e2ec70 (patch)
treebfa979bb182304582f6c03884e8c4e3c27c22165 /zebra
parent23f5f7c3dd805b7d6a46d86d23aaa5c71273a84a (diff)
downloadquagga-b52aef18a9f3acc8b24ab5c2631dc574b8e2ec70.tar.bz2
quagga-b52aef18a9f3acc8b24ab5c2631dc574b8e2ec70.tar.xz
zebra: log routes w/o gateway in rib_delete_ipv4
Signed-off-by: Christian Franke <chris@opensourcerouting.org> Acked-by: Feng Lu <lu.feng@6wind.com> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'zebra')
-rw-r--r--zebra/zebra_rib.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index 77c0d8ca..6616f9a1 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -2160,12 +2160,20 @@ rib_delete_ipv4 (int type, int flags, struct prefix_ipv4 *p,
/* Apply mask. */
apply_mask_ipv4 (p);
- if (IS_ZEBRA_DEBUG_KERNEL && gate)
- zlog_debug ("rib_delete_ipv4(): route delete %s/%d via %s ifindex %d",
- inet_ntop (AF_INET, &p->prefix, buf1, INET_ADDRSTRLEN),
- p->prefixlen,
- inet_ntoa (*gate),
- ifindex);
+ if (IS_ZEBRA_DEBUG_KERNEL)
+ {
+ if (gate)
+ zlog_debug ("rib_delete_ipv4(): route delete %s/%d via %s ifindex %d",
+ inet_ntop (AF_INET, &p->prefix, buf1, INET_ADDRSTRLEN),
+ p->prefixlen,
+ inet_ntoa (*gate),
+ ifindex);
+ else
+ zlog_debug ("rib_delete_ipv4(): route delete %s/%d ifindex %d",
+ inet_ntop (AF_INET, &p->prefix, buf1, INET_ADDRSTRLEN),
+ p->prefixlen,
+ ifindex);
+ }
/* Lookup route node. */
rn = route_node_lookup (table, (struct prefix *) p);