diff options
| author | David Ahern <dsa@cumulusnetworks.com> | 2016-06-23 18:42:51 -0700 |
|---|---|---|
| committer | Lorenzo Colitti <lorenzo@google.com> | 2016-09-19 01:51:21 +0900 |
| commit | eb87372aa93bc9849fe05a86eb0994e2bc755c45 (patch) | |
| tree | 5800ac525f216c3ed226e17f97269bba74b9ebe8 /include/uapi | |
| parent | 6674ba575b07febb6f025811e6afb64c15834b30 (diff) | |
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.
[cherry-pick of net-next 637c841dd7a5f9bd97b75cbe90b526fa1a52e530]
Change-Id: I6b6bcdcf15d3142003f1ee53b4d82f2fabbb8250
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.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 68a1f71fde9f..b49bfb6ea22a 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 { |
