aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sock_diag.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sock_diag.h')
-rw-r--r--include/linux/sock_diag.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/linux/sock_diag.h b/include/linux/sock_diag.h
index 379d5dccf8e1..66bc18ef4fa4 100644
--- a/include/linux/sock_diag.h
+++ b/include/linux/sock_diag.h
@@ -1,16 +1,19 @@
1#ifndef __SOCK_DIAG_H__ 1#ifndef __SOCK_DIAG_H__
2#define __SOCK_DIAG_H__ 2#define __SOCK_DIAG_H__
3 3
4#define SOCK_DIAG_BY_FAMILY 20 4#include <linux/types.h>
5 5
6struct sk_buff; 6#define SOCK_DIAG_BY_FAMILY 20
7struct nlmsghdr;
8 7
9struct sock_diag_req { 8struct sock_diag_req {
10 __u8 sdiag_family; 9 __u8 sdiag_family;
11 __u8 sdiag_protocol; 10 __u8 sdiag_protocol;
12}; 11};
13 12
13#ifdef __KERNEL__
14struct sk_buff;
15struct nlmsghdr;
16
14struct sock_diag_handler { 17struct sock_diag_handler {
15 __u8 family; 18 __u8 family;
16 int (*dump)(struct sk_buff *skb, struct nlmsghdr *nlh); 19 int (*dump)(struct sk_buff *skb, struct nlmsghdr *nlh);
@@ -26,4 +29,5 @@ int sock_diag_check_cookie(void *sk, __u32 *cookie);
26void sock_diag_save_cookie(void *sk, __u32 *cookie); 29void sock_diag_save_cookie(void *sk, __u32 *cookie);
27 30
28extern struct sock *sock_diag_nlsk; 31extern struct sock *sock_diag_nlsk;
32#endif /* KERNEL */
29#endif 33#endif