Merge tag 'fixes-for-rmk' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm...
[deliverable/linux.git] / include / linux / sock_diag.h
CommitLineData
d366477a
PE
1#ifndef __SOCK_DIAG_H__
2#define __SOCK_DIAG_H__
e7c466e5 3
607ca46e 4#include <uapi/linux/sock_diag.h>
e7c466e5 5
e6fe2371
PE
6struct sk_buff;
7struct nlmsghdr;
5d2e5f27 8struct sock;
e6fe2371 9
d366477a
PE
10struct sock_diag_handler {
11 __u8 family;
12 int (*dump)(struct sk_buff *skb, struct nlmsghdr *nlh);
13};
14
8dcf01fc
SW
15int sock_diag_register(const struct sock_diag_handler *h);
16void sock_diag_unregister(const struct sock_diag_handler *h);
d366477a
PE
17
18void sock_diag_register_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh));
19void sock_diag_unregister_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh));
20
f65c1b53
PE
21int sock_diag_check_cookie(void *sk, __u32 *cookie);
22void sock_diag_save_cookie(void *sk, __u32 *cookie);
23
5d2e5f27
PE
24int sock_diag_put_meminfo(struct sock *sk, struct sk_buff *skb, int attr);
25
d366477a 26#endif
This page took 0.13606 seconds and 5 git commands to generate.