History

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.

David Ahern committed 10 years ago

Commit 637c8411 parent 1ba44a12 files · +26 −0Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/inet_diag.h+1−0
@@ -72,6 +72,7 @@ enum { · 71 unmodified lines
72 INET_DIAG_BC_AUTO,72 INET_DIAG_BC_AUTO,
73 INET_DIAG_BC_S_COND,73 INET_DIAG_BC_S_COND,
74 INET_DIAG_BC_D_COND,74 INET_DIAG_BC_D_COND,
75 INET_DIAG_BC_DEV_COND, /* u32 ifindex */
75};76};
76 77
77struct inet_diag_hostcond {78struct inet_diag_hostcond {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t