net: diag: Add support to filter on device index
authorDavid Ahern <dsa@cumulusnetworks.com>
Fri, 24 Jun 2016 01:42:51 +0000 (18:42 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 12 Oct 2016 12:04:22 +0000 (17:34 +0530)
commit7b6ff82f7430d44f60f7784aeb2d392509c9f2d6
treeaef7308cd903be5f73283b3c003848df853b2f04
parentafaf5e9a94844c5208e1e0026b99f8f5e0480e9f
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>
include/uapi/linux/inet_diag.h
net/ipv4/inet_diag.c