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>
This commit is contained in:

committed by
David S. Miller

parent
1ba44a1f4d
commit
637c841dd7
@@ -72,6 +72,7 @@ enum {
|
||||
INET_DIAG_BC_AUTO,
|
||||
INET_DIAG_BC_S_COND,
|
||||
INET_DIAG_BC_D_COND,
|
||||
INET_DIAG_BC_DEV_COND, /* u32 ifindex */
|
||||
};
|
||||
|
||||
struct inet_diag_hostcond {
|
||||
|
Reference in New Issue
Block a user