]>
Commit | Line | Data |
---|---|---|
d366477a PE |
1 | #ifndef __SOCK_DIAG_H__ |
2 | #define __SOCK_DIAG_H__ | |
e7c466e5 | 3 | |
e8d9612c | 4 | #include <linux/user_namespace.h> |
607ca46e | 5 | #include <uapi/linux/sock_diag.h> |
e7c466e5 | 6 | |
e6fe2371 PE |
7 | struct sk_buff; |
8 | struct nlmsghdr; | |
5d2e5f27 | 9 | struct sock; |
e6fe2371 | 10 | |
d366477a PE |
11 | struct sock_diag_handler { |
12 | __u8 family; | |
13 | int (*dump)(struct sk_buff *skb, struct nlmsghdr *nlh); | |
14 | }; | |
15 | ||
8dcf01fc SW |
16 | int sock_diag_register(const struct sock_diag_handler *h); |
17 | void sock_diag_unregister(const struct sock_diag_handler *h); | |
d366477a PE |
18 | |
19 | void sock_diag_register_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)); | |
20 | void sock_diag_unregister_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)); | |
21 | ||
33cf7c90 ED |
22 | int sock_diag_check_cookie(struct sock *sk, const __u32 *cookie); |
23 | void sock_diag_save_cookie(struct sock *sk, __u32 *cookie); | |
f65c1b53 | 24 | |
5d2e5f27 | 25 | int sock_diag_put_meminfo(struct sock *sk, struct sk_buff *skb, int attr); |
a53b72c8 | 26 | int sock_diag_put_filterinfo(bool may_report_filterinfo, struct sock *sk, |
e8d9612c | 27 | struct sk_buff *skb, int attrtype); |
5d2e5f27 | 28 | |
d366477a | 29 | #endif |