mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 23:19:13 +00:00
zebra: fix RIB debug message for IPv6
Apply changes from commit f304cb48f0
to rib_queue_add.
Also includes spelling fixes.
This commit is contained in:
parent
80b2a9418f
commit
a50c107e3f
@ -362,7 +362,7 @@ nexthop_active_ipv4 (struct rib *rib, struct nexthop *nexthop, int set,
|
|||||||
{
|
{
|
||||||
route_unlock_node (rn);
|
route_unlock_node (rn);
|
||||||
|
|
||||||
/* If lookup self prefix return immidiately. */
|
/* If lookup self prefix return immediately. */
|
||||||
if (rn == top)
|
if (rn == top)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
@ -463,7 +463,7 @@ nexthop_active_ipv6 (struct rib *rib, struct nexthop *nexthop, int set,
|
|||||||
{
|
{
|
||||||
route_unlock_node (rn);
|
route_unlock_node (rn);
|
||||||
|
|
||||||
/* If lookup self prefix return immidiately. */
|
/* If lookup self prefix return immediately. */
|
||||||
if (rn == top)
|
if (rn == top)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
@ -1294,11 +1294,11 @@ rib_meta_queue_add (struct meta_queue *mq, struct route_node *rn)
|
|||||||
static void
|
static void
|
||||||
rib_queue_add (struct zebra_t *zebra, struct route_node *rn)
|
rib_queue_add (struct zebra_t *zebra, struct route_node *rn)
|
||||||
{
|
{
|
||||||
char buf[INET_ADDRSTRLEN];
|
char buf[INET6_ADDRSTRLEN];
|
||||||
assert (zebra && rn);
|
assert (zebra && rn);
|
||||||
|
|
||||||
if (IS_ZEBRA_DEBUG_RIB_Q)
|
if (IS_ZEBRA_DEBUG_RIB_Q)
|
||||||
inet_ntop (AF_INET, &rn->p.u.prefix, buf, INET_ADDRSTRLEN);
|
inet_ntop (rn->p.family, &rn->p.u.prefix, buf, INET6_ADDRSTRLEN);
|
||||||
|
|
||||||
/* Pointless to queue a route_node with no RIB entries to add or remove */
|
/* Pointless to queue a route_node with no RIB entries to add or remove */
|
||||||
if (!rn->info)
|
if (!rn->info)
|
||||||
|
Loading…
Reference in New Issue
Block a user