summaryrefslogtreecommitdiffstats
path: root/include/linux/if_link.h
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2012-03-29 12:51:30 +0000
committerDavid S. Miller <davem@davemloft.net>2012-04-02 04:33:46 -0400
commitedbc0bb3fb72ec4645a242520cf1d0b9b6b02261 (patch)
tree71455d026ea30221a0d1d7c2d170c0330a7a8d55 /include/linux/if_link.h
parente4422b2d31983ee651d51cb6e25943d56ef63387 (diff)
downloadblackbird-op-linux-edbc0bb3fb72ec4645a242520cf1d0b9b6b02261.tar.gz
blackbird-op-linux-edbc0bb3fb72ec4645a242520cf1d0b9b6b02261.zip
net: Report dev->promiscuity in netlink reports.
The standard ways of probing a device's promiscuity (ifi_flags, for instance) does not report the actual state of the device. This patch adds dev->promiscuity to the netlink netdevice report so that users can know for certain if the device is acting PROMISC or not. Signed-off-by: Ben Greear <greearb@candelatech.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_link.h')
-rw-r--r--include/linux/if_link.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/if_link.h b/include/linux/if_link.h
index 4b24ff453aee..2f4fa93454c7 100644
--- a/include/linux/if_link.h
+++ b/include/linux/if_link.h
@@ -138,6 +138,8 @@ enum {
IFLA_GROUP, /* Group the device belongs to */
IFLA_NET_NS_FD,
IFLA_EXT_MASK, /* Extended info mask, VFs, etc */
+ IFLA_PROMISCUITY, /* Promiscuity count: > 0 means acts PROMISC */
+#define IFLA_PROMISCUITY IFLA_PROMISCUITY
__IFLA_MAX
};
OpenPOWER on IntegriCloud