mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-12 09:52:27 +00:00
zebra: Fix up the debug for receiving multicast routes
Improve the netlink debug message. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
05ca4827a6
commit
82d64e8ef4
@ -525,7 +525,6 @@ netlink_route_change_read_multicast (struct sockaddr_nl *snl, struct nlmsghdr *h
|
|||||||
ns_id_t ns_id)
|
ns_id_t ns_id)
|
||||||
{
|
{
|
||||||
int len;
|
int len;
|
||||||
unsigned long long lastused = 0;
|
|
||||||
struct rtmsg *rtm;
|
struct rtmsg *rtm;
|
||||||
struct rtattr *tb[RTA_MAX + 1];
|
struct rtattr *tb[RTA_MAX + 1];
|
||||||
struct mcast_route_data *m;
|
struct mcast_route_data *m;
|
||||||
@ -584,18 +583,20 @@ netlink_route_change_read_multicast (struct sockaddr_nl *snl, struct nlmsghdr *h
|
|||||||
|
|
||||||
if (IS_ZEBRA_DEBUG_KERNEL)
|
if (IS_ZEBRA_DEBUG_KERNEL)
|
||||||
{
|
{
|
||||||
|
struct interface *ifp;
|
||||||
strcpy (sbuf, inet_ntoa (m->sg.src));
|
strcpy (sbuf, inet_ntoa (m->sg.src));
|
||||||
strcpy (gbuf, inet_ntoa (m->sg.grp));
|
strcpy (gbuf, inet_ntoa (m->sg.grp));
|
||||||
for (count = 0; count < oif_count; count++)
|
for (count = 0; count < oif_count; count++)
|
||||||
{
|
{
|
||||||
struct interface *ifp = if_lookup_by_index_vrf (oif[count], vrf);
|
ifp = if_lookup_by_index_vrf (oif[count], vrf);
|
||||||
char temp[256];
|
char temp[256];
|
||||||
|
|
||||||
sprintf (temp, "%s ", ifp->name);
|
sprintf (temp, "%s ", ifp->name);
|
||||||
strcat (oif_list, temp);
|
strcat (oif_list, temp);
|
||||||
}
|
}
|
||||||
zlog_debug ("MCAST %s (%s,%s) IIF: %d OIF: %s jiffies: %lld",
|
ifp = if_lookup_by_index_vrf (iif, vrf);
|
||||||
nl_msg_type_to_str (h->nlmsg_type), sbuf, gbuf, iif, oif_list, lastused);
|
zlog_debug ("MCAST %s (%s,%s) IIF: %s OIF: %s jiffies: %lld",
|
||||||
|
nl_msg_type_to_str(h->nlmsg_type), sbuf, gbuf, ifp->name, oif_list, m->lastused);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user