From: Christian Franke Date: Wed, 27 Nov 2013 17:06:15 +0000 (+0000) Subject: zebra: log routes w/o gateway in rib_delete_ipv4 X-Git-Tag: frr-2.0-rc1~1630 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=b52aef18a9f3acc8b24ab5c2631dc574b8e2ec70;p=mirror%2Ffrr.git zebra: log routes w/o gateway in rib_delete_ipv4 Signed-off-by: Christian Franke Acked-by: Feng Lu Signed-off-by: David Lamparter --- diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 77c0d8ca7e..6616f9a10e 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);