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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jun 2016 09:25:04 +0000 (05:25 -0400)
commit637c841dd7a5f9bd97b75cbe90b526fa1a52e530
treec508dea977e73a40f8a52827e1606491d4a687f8
parent1ba44a1f4d8160387bdaab0f414bdbcc74f2d59b
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>
include/uapi/linux/inet_diag.h
net/ipv4/inet_diag.c