diff options
| author | Ben Greear <greearb@candelatech.com> | 2012-03-29 08:51:30 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2012-04-02 04:33:46 -0400 |
| commit | edbc0bb3fb72ec4645a242520cf1d0b9b6b02261 (patch) | |
| tree | 71455d026ea30221a0d1d7c2d170c0330a7a8d55 /include/linux | |
| parent | e4422b2d31983ee651d51cb6e25943d56ef63387 (diff) | |
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 { | |||
| 138 | IFLA_GROUP, /* Group the device belongs to */ | 138 | IFLA_GROUP, /* Group the device belongs to */ |
| 139 | IFLA_NET_NS_FD, | 139 | IFLA_NET_NS_FD, |
| 140 | IFLA_EXT_MASK, /* Extended info mask, VFs, etc */ | 140 | IFLA_EXT_MASK, /* Extended info mask, VFs, etc */ |
| 141 | IFLA_PROMISCUITY, /* Promiscuity count: > 0 means acts PROMISC */ | ||
| 142 | #define IFLA_PROMISCUITY IFLA_PROMISCUITY | ||
| 141 | __IFLA_MAX | 143 | __IFLA_MAX |
| 142 | }; | 144 | }; |
| 143 | 145 | ||
