]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite939522e8b115d2c8ad27165ec549a7331f2afc0
treec508dea977e73a40f8a52827e1606491d4a687f8
parentb9e572f81a95743af036d86eefe04b85c8a02ca9
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