aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/inet_diag.h
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@parallels.com>2011-12-09 01:22:44 -0500
committerDavid S. Miller <davem@davemloft.net>2011-12-09 14:14:08 -0500
commit8d07d1518a074a08b90be02eee5ee15e60ac9779 (patch)
tree2409c19b8dc9b5cedf4160900e87ea987c2f892a /include/linux/inet_diag.h
parentefb3cb428dcde2356802b3f93e152efa7abc5a62 (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.h2
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__
136struct sock; 136struct sock;
137struct inet_hashinfo; 137struct inet_hashinfo;
138struct nlattr;
138 139
139struct inet_diag_handler { 140struct 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
148int inet_diag_bc_sk(const struct nlattr *_bc, struct sock *sk);
147int inet_diag_check_cookie(struct sock *sk, struct inet_diag_req *req); 149int inet_diag_check_cookie(struct sock *sk, struct inet_diag_req *req);
148 150
149extern int inet_diag_register(const struct inet_diag_handler *handler); 151extern int inet_diag_register(const struct inet_diag_handler *handler);