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.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -72,6 +72,7 @@ enum { · 71 unmodified lines | ||
| 72 | 72 | INET_DIAG_BC_AUTO, |
| 73 | 73 | INET_DIAG_BC_S_COND, |
| 74 | 74 | INET_DIAG_BC_D_COND, |
| 75 | + INET_DIAG_BC_DEV_COND, /* u32 ifindex */ | |
| 75 | 76 | }; |
| 76 | 77 | |
| 77 | 78 | struct inet_diag_hostcond { |