diff options
author | Thomas Graf <tgraf@redhat.com> | 2012-10-09 17:58:54 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@redhat.com> | 2012-10-09 17:58:54 (GMT) |
commit | 7f6880ceb9a7919b1a0ec9e5f6eeddb6104fb73b (patch) | |
tree | f8496a6ba96edd995e38c5cc93cebb260c5c21a8 | |
parent | 36ed882e003ee54cfde9a8f526007b3a66fff3a4 (diff) | |
download | libnl-7f6880ceb9a7919b1a0ec9e5f6eeddb6104fb73b.zip libnl-7f6880ceb9a7919b1a0ec9e5f6eeddb6104fb73b.tar.gz libnl-7f6880ceb9a7919b1a0ec9e5f6eeddb6104fb73b.tar.bz2 |
link: Only print "promisc-mode" if users > 0
Signed-off-by: Thomas Graf <tgraf@redhat.com>
-rw-r--r-- | lib/route/link.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/route/link.c b/lib/route/link.c index 4592bf0..1b43401 100644 --- a/lib/route/link.c +++ b/lib/route/link.c @@ -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"); |