mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-15 18:49:41 +00:00
Merge pull request #8059 from ton31337/fix/nexthop_ipv4_handling_table_map_apply
bgpd: Print IPv4 nexthop for IPv6 prefixes under bgp_table_map_apply()
This commit is contained in:
commit
dba34d41a1
@ -954,8 +954,11 @@ static bool bgp_table_map_apply(struct route_map *map, const struct prefix *p,
|
|||||||
zlog_debug(
|
zlog_debug(
|
||||||
"Zebra rmap deny: IPv6 route %pFX nexthop %s",
|
"Zebra rmap deny: IPv6 route %pFX nexthop %s",
|
||||||
p,
|
p,
|
||||||
inet_ntop(AF_INET6, nexthop, buf[1],
|
nexthop ? inet_ntop(AF_INET6, nexthop, buf[1],
|
||||||
sizeof(buf[1])));
|
sizeof(buf[1]))
|
||||||
|
: inet_ntop(AF_INET,
|
||||||
|
&path->attr->nexthop,
|
||||||
|
buf[1], sizeof(buf[1])));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user