route: link: add family to dump messages

Since the link cache can contain msgs from different families,
print family id to distinguish link cache entries in the
dump output

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Roopa Prabhu
2017-10-11 14:21:23 -07:00
committed by Thomas Haller
parent b4802a17a7
commit 75ea0bee77
+3
View File
@@ -831,6 +831,9 @@ static void link_dump_line(struct nl_object *obj, struct nl_dump_params *p)
fetched_cache = 1;
}
if (link->l_family != AF_UNSPEC)
nl_dump_line(p, "%s ", nl_af2str(link->l_family, buf, sizeof(buf)));
nl_dump_line(p, "%s %s ", link->l_name,
nl_llproto2str(link->l_arptype, buf, sizeof(buf)));