mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 06:53:03 +00:00
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>
This commit is contained in:
parent
23f5f7c3dd
commit
b52aef18a9
@ -2160,12 +2160,20 @@ rib_delete_ipv4 (int type, int flags, struct prefix_ipv4 *p,
|
|||||||
/* Apply mask. */
|
/* Apply mask. */
|
||||||
apply_mask_ipv4 (p);
|
apply_mask_ipv4 (p);
|
||||||
|
|
||||||
if (IS_ZEBRA_DEBUG_KERNEL && gate)
|
if (IS_ZEBRA_DEBUG_KERNEL)
|
||||||
zlog_debug ("rib_delete_ipv4(): route delete %s/%d via %s ifindex %d",
|
{
|
||||||
inet_ntop (AF_INET, &p->prefix, buf1, INET_ADDRSTRLEN),
|
if (gate)
|
||||||
p->prefixlen,
|
zlog_debug ("rib_delete_ipv4(): route delete %s/%d via %s ifindex %d",
|
||||||
inet_ntoa (*gate),
|
inet_ntop (AF_INET, &p->prefix, buf1, INET_ADDRSTRLEN),
|
||||||
ifindex);
|
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. */
|
/* Lookup route node. */
|
||||||
rn = route_node_lookup (table, (struct prefix *) p);
|
rn = route_node_lookup (table, (struct prefix *) p);
|
||||||
|
Loading…
Reference in New Issue
Block a user