]> 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)
commit8c31ec3deaa7a668ea9966e2f6d64393c6371960
treec508dea977e73a40f8a52827e1606491d4a687f8
parenta4b186cf0db6770d2eb0a513b8123964113f6adb
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