diff options
author | Pavel Emelyanov <xemul@parallels.com> | 2011-12-09 01:22:44 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-09 14:14:08 -0500 |
commit | 8d07d1518a074a08b90be02eee5ee15e60ac9779 (patch) | |
tree | 2409c19b8dc9b5cedf4160900e87ea987c2f892a /include/linux/inet_diag.h | |
parent | efb3cb428dcde2356802b3f93e152efa7abc5a62 (diff) |
inet_diag: Introduce the byte-code run on an inet socket
The upcoming UDP module will require exactly this ability, so just
move the existing code to provide one.
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/inet_diag.h')
-rw-r--r-- | include/linux/inet_diag.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/inet_diag.h b/include/linux/inet_diag.h index 503674738368..907c899bd41b 100644 --- a/include/linux/inet_diag.h +++ b/include/linux/inet_diag.h | |||
@@ -135,6 +135,7 @@ struct tcpvegas_info { | |||
135 | #ifdef __KERNEL__ | 135 | #ifdef __KERNEL__ |
136 | struct sock; | 136 | struct sock; |
137 | struct inet_hashinfo; | 137 | struct inet_hashinfo; |
138 | struct nlattr; | ||
138 | 139 | ||
139 | struct inet_diag_handler { | 140 | struct inet_diag_handler { |
140 | struct inet_hashinfo *idiag_hashinfo; | 141 | struct inet_hashinfo *idiag_hashinfo; |
@@ -144,6 +145,7 @@ struct inet_diag_handler { | |||
144 | __u16 idiag_type; | 145 | __u16 idiag_type; |
145 | }; | 146 | }; |
146 | 147 | ||
148 | int inet_diag_bc_sk(const struct nlattr *_bc, struct sock *sk); | ||
147 | int inet_diag_check_cookie(struct sock *sk, struct inet_diag_req *req); | 149 | int inet_diag_check_cookie(struct sock *sk, struct inet_diag_req *req); |
148 | 150 | ||
149 | extern int inet_diag_register(const struct inet_diag_handler *handler); | 151 | extern int inet_diag_register(const struct inet_diag_handler *handler); |