diff options
author | Ben Greear <greearb@candelatech.com> | 2012-03-29 16:51:30 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-02 12:33:46 +0400 |
commit | edbc0bb3fb72ec4645a242520cf1d0b9b6b02261 (patch) | |
tree | 71455d026ea30221a0d1d7c2d170c0330a7a8d55 /include/linux | |
parent | e4422b2d31983ee651d51cb6e25943d56ef63387 (diff) | |
download | linux-edbc0bb3fb72ec4645a242520cf1d0b9b6b02261.tar.xz |
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')
-rw-r--r-- | include/linux/if_link.h | 2 |
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 }; |