aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorDavid Ahern <dsa@cumulusnetworks.com>2016-06-23 18:42:51 -0700
committerDavid S. Miller <davem@davemloft.net>2016-06-28 05:25:04 -0400
commit637c841dd7a5f9bd97b75cbe90b526fa1a52e530 (patch)
treec508dea977e73a40f8a52827e1606491d4a687f8 /include/uapi
parentnet: ethernet: dnet: use phy_ethtool_{get|set}_link_ksettings (diff)
downloadlinux-dev-637c841dd7a5f9bd97b75cbe90b526fa1a52e530.tar.xz
linux-dev-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')
-rw-r--r--include/uapi/linux/inet_diag.h1
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 {