mirror of
https://github.com/openharmony/third_party_libnl.git
synced 2026-07-19 20:13:35 -04:00
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:
committed by
Thomas Haller
parent
b4802a17a7
commit
75ea0bee77
@@ -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)));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user