blob: ba4933b1213b18552dd8e894f5744f51da9a8724 [file] [log] [blame]
Pavel Emelyanovd3664772011-12-06 07:58:03 +00001#ifndef __SOCK_DIAG_H__
2#define __SOCK_DIAG_H__
3struct sk_buff;
4struct nlmsghdr;
5
6struct sock_diag_req {
7 __u8 sdiag_family;
8 __u8 sdiag_protocol;
9};
10
11struct sock_diag_handler {
12 __u8 family;
13 int (*dump)(struct sk_buff *skb, struct nlmsghdr *nlh);
14};
15
16int sock_diag_register(struct sock_diag_handler *h);
17void sock_diag_unregister(struct sock_diag_handler *h);
18
19void sock_diag_register_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh));
20void sock_diag_unregister_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh));
21
22extern struct sock *sock_diag_nlsk;
23#endif