summaryrefslogtreecommitdiffstats
path: root/include/linux/inet_diag.h
diff options
context:
space:
mode:
authorPavel Emelyanov2011-12-09 07:22:44 +0100
committerDavid S. Miller2011-12-09 20:14:08 +0100
commit8d07d1518a074a08b90be02eee5ee15e60ac9779 (patch)
tree2409c19b8dc9b5cedf4160900e87ea987c2f892a /include/linux/inet_diag.h
parentinet_diag: Split inet_diag_get_exact into parts (diff)
downloadkernel-qcow2-linux-8d07d1518a074a08b90be02eee5ee15e60ac9779.tar.gz
kernel-qcow2-linux-8d07d1518a074a08b90be02eee5ee15e60ac9779.tar.xz
kernel-qcow2-linux-8d07d1518a074a08b90be02eee5ee15e60ac9779.zip
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 {
#ifdef __KERNEL__
struct sock;
struct inet_hashinfo;
+struct nlattr;
struct inet_diag_handler {
struct inet_hashinfo *idiag_hashinfo;
@@ -144,6 +145,7 @@ struct inet_diag_handler {
__u16 idiag_type;
};
+int inet_diag_bc_sk(const struct nlattr *_bc, struct sock *sk);
int inet_diag_check_cookie(struct sock *sk, struct inet_diag_req *req);
extern int inet_diag_register(const struct inet_diag_handler *handler);