mlx4_core: Modify driver initialization flow to accommodate SRIOV for Ethernet
[cascardo/linux.git] / include / linux / sock_diag.h
1 #ifndef __SOCK_DIAG_H__
2 #define __SOCK_DIAG_H__
3 struct sk_buff;
4 struct nlmsghdr;
5
6 struct sock_diag_req {
7         __u8    sdiag_family;
8         __u8    sdiag_protocol;
9 };
10
11 struct sock_diag_handler {
12         __u8 family;
13         int (*dump)(struct sk_buff *skb, struct nlmsghdr *nlh);
14 };
15
16 int sock_diag_register(struct sock_diag_handler *h);
17 void sock_diag_unregister(struct sock_diag_handler *h);
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
22 extern struct sock *sock_diag_nlsk;
23 #endif