link: Only print "promisc-mode" if users > 0
Signed-off-by: Thomas Graf <tgraf@redhat.com>
This commit is contained in:
parent
36ed882e00
commit
7f6880ceb9
1 changed files with 1 additions and 1 deletions
|
@ -640,7 +640,7 @@ static void link_dump_details(struct nl_object *obj, struct nl_dump_params *p)
|
|||
if (link->ce_mask & LINK_ATTR_IFINDEX)
|
||||
nl_dump(p, "index %u ", link->l_index);
|
||||
|
||||
if (link->ce_mask & LINK_ATTR_PROMISCUITY)
|
||||
if (link->ce_mask & LINK_ATTR_PROMISCUITY && link->l_promiscuity > 0)
|
||||
nl_dump(p, "promisc-mode (%u users) ", link->l_promiscuity);
|
||||
|
||||
nl_dump(p, "\n");
|
||||
|
|
Loading…
Add table
Reference in a new issue