summaryrefslogtreecommitdiff
path: root/include/linux/inet_diag.h
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@parallels.com>2011-12-09 10:21:53 +0400
committerDavid S. Miller <davem@davemloft.net>2011-12-09 23:14:08 +0400
commitb005ab4ef8805dc4604848c9d2ccca9d71f8fc46 (patch)
treec0a057c74dae2fbcc3118a69b0ca3ed5504d3029 /include/linux/inet_diag.h
parent87c22ea52e1bb467f58b3e9a71509fccb70c7bd3 (diff)
downloadlinux-b005ab4ef8805dc4604848c9d2ccca9d71f8fc46.tar.xz
inet_diag: Export inet diag cookie checking routine
The netlink diag susbsys stores sk address bits in the nl message as a "cookie" and uses one when dumps details about particular socket. The same will be required for udp diag module, so introduce a heler in inet_diag module 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 851feff0747f..503674738368 100644
--- a/include/linux/inet_diag.h
+++ b/include/linux/inet_diag.h
@@ -144,6 +144,8 @@ struct inet_diag_handler {
__u16 idiag_type;
};
+int inet_diag_check_cookie(struct sock *sk, struct inet_diag_req *req);
+
extern int inet_diag_register(const struct inet_diag_handler *handler);
extern void inet_diag_unregister(const struct inet_diag_handler *handler);
#endif /* __KERNEL__ */