diff options
author | David Ahern | 2016-06-24 03:42:51 +0200 |
---|---|---|
committer | David S. Miller | 2016-06-28 11:25:04 +0200 |
commit | 637c841dd7a5f9bd97b75cbe90b526fa1a52e530 (patch) | |
tree | c508dea977e73a40f8a52827e1606491d4a687f8 /include/uapi/linux/inet_diag.h | |
parent | net: ethernet: dnet: use phy_ethtool_{get|set}_link_ksettings (diff) | |
download | kernel-qcow2-linux-637c841dd7a5f9bd97b75cbe90b526fa1a52e530.tar.gz kernel-qcow2-linux-637c841dd7a5f9bd97b75cbe90b526fa1a52e530.tar.xz kernel-qcow2-linux-637c841dd7a5f9bd97b75cbe90b526fa1a52e530.zip |
net: diag: Add support to filter on device index
Add support to inet_diag facility to filter sockets based on device
index. If an interface index is in the filter only sockets bound
to that index (sk_bound_dev_if) are returned.
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/inet_diag.h')
-rw-r--r-- | include/uapi/linux/inet_diag.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/inet_diag.h b/include/uapi/linux/inet_diag.h index a16643705669..abbd1dc5d683 100644 --- a/include/uapi/linux/inet_diag.h +++ b/include/uapi/linux/inet_diag.h @@ -72,6 +72,7 @@ enum { INET_DIAG_BC_AUTO, INET_DIAG_BC_S_COND, INET_DIAG_BC_D_COND, + INET_DIAG_BC_DEV_COND, /* u32 ifindex */ }; struct inet_diag_hostcond { |