]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/sock_diag.h
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[mirror_ubuntu-bionic-kernel.git] / include / linux / sock_diag.h
CommitLineData
d366477a
PE
1#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