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)
committerLorenzo Colitti <lorenzo@google.com>
Sun, 18 Sep 2016 16:51:21 +0000 (01:51 +0900)
commiteb87372aa93bc9849fe05a86eb0994e2bc755c45
tree5800ac525f216c3ed226e17f97269bba74b9ebe8
parent6674ba575b07febb6f025811e6afb64c15834b30
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