1 #ifndef __SOCK_DIAG_H__
2 #define __SOCK_DIAG_H__
11 struct sock_diag_handler {
13 int (*dump)(struct sk_buff *skb, struct nlmsghdr *nlh);
16 int sock_diag_register(struct sock_diag_handler *h);
17 void sock_diag_unregister(struct sock_diag_handler *h);
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));
22 extern struct sock *sock_diag_nlsk;