if (IS_ZEBRA_DEBUG_KERNEL)
zlog_debug(
" 5549: _netlink_route_build_singlepath() (%s): "
- "nexthop via %s %s if %u",
+ "nexthop via %s %s if %u(%u)",
routedesc, ipv4_ll_buf, label_buf,
- nexthop->ifindex);
+ nexthop->ifindex, nexthop->vrf_id);
return;
}
if (IS_ZEBRA_DEBUG_KERNEL)
zlog_debug(
"netlink_route_multipath() (%s): "
- "nexthop via %s %s if %u",
+ "nexthop via %s %s if %u(%u)",
routedesc, inet_ntoa(nexthop->gate.ipv4),
- label_buf, nexthop->ifindex);
+ label_buf, nexthop->ifindex, nexthop->vrf_id);
}
if (nexthop->type == NEXTHOP_TYPE_IPV6
if (IS_ZEBRA_DEBUG_KERNEL)
zlog_debug(
"netlink_route_multipath() (%s): "
- "nexthop via %s %s if %u",
+ "nexthop via %s %s if %u(%u)",
routedesc, inet6_ntoa(nexthop->gate.ipv6),
- label_buf, nexthop->ifindex);
+ label_buf, nexthop->ifindex, nexthop->vrf_id);
}
/*
if (IS_ZEBRA_DEBUG_KERNEL)
zlog_debug(
"netlink_route_multipath() (%s): "
- "nexthop via if %u",
- routedesc, nexthop->ifindex);
+ "nexthop via if %u(%u)",
+ routedesc, nexthop->ifindex, nexthop->vrf_id);
}
if (nexthop->type == NEXTHOP_TYPE_IPV6_IFINDEX) {
if (IS_ZEBRA_DEBUG_KERNEL)
zlog_debug(
"netlink_route_multipath() (%s): "
- "nexthop via if %u",
- routedesc, nexthop->ifindex);
+ "nexthop via if %u(%u)",
+ routedesc, nexthop->ifindex, nexthop->vrf_id);
}
}
*/
static void _netlink_route_debug(int cmd, struct prefix *p,
struct nexthop *nexthop, const char *routedesc,
- int family, struct zebra_vrf *zvrf)
+ int family, struct zebra_vrf *zvrf,
+ uint32_t tableid)
{
if (IS_ZEBRA_DEBUG_KERNEL) {
char buf[PREFIX_STRLEN];
zlog_debug(
- "netlink_route_multipath() (%s): %s %s vrf %u type %s",
+ "netlink_route_multipath() (%s): %s %s vrf %u(%u) type %s",
routedesc, nl_msg_type_to_str(cmd),
- prefix2str(p, buf, sizeof(buf)), zvrf_id(zvrf),
+ prefix2str(p, buf, sizeof(buf)), zvrf_id(zvrf), tableid,
(nexthop) ? nexthop_type_to_str(nexthop->type) : "UNK");
}
}
: "single-path";
_netlink_route_debug(cmd, p, nexthop, routedesc,
- family, zvrf);
+ family, zvrf, re->table);
_netlink_route_build_singlepath(
routedesc, bytelen, nexthop, &req.n,
&req.r, sizeof req, cmd);
nexthop_num++;
_netlink_route_debug(cmd, p, nexthop, routedesc,
- family, zvrf);
+ family, zvrf, re->table);
_netlink_route_build_multipath(
routedesc, bytelen, nexthop, rta, rtnh,
&req.r, &src1);