2 #define _INET_DIAG_H_ 1
4 #include <uapi/linux/inet_diag.h>
12 struct netlink_callback
;
14 struct inet_diag_handler
{
15 void (*dump
)(struct sk_buff
*skb
,
16 struct netlink_callback
*cb
,
17 const struct inet_diag_req_v2
*r
,
20 int (*dump_one
)(struct sk_buff
*in_skb
,
21 const struct nlmsghdr
*nlh
,
22 const struct inet_diag_req_v2
*req
);
24 void (*idiag_get_info
)(struct sock
*sk
,
25 struct inet_diag_msg
*r
,
28 __u16 idiag_info_size
;
31 struct inet_connection_sock
;
32 int inet_sk_diag_fill(struct sock
*sk
, struct inet_connection_sock
*icsk
,
33 struct sk_buff
*skb
, const struct inet_diag_req_v2
*req
,
34 struct user_namespace
*user_ns
,
35 u32 pid
, u32 seq
, u16 nlmsg_flags
,
36 const struct nlmsghdr
*unlh
);
37 void inet_diag_dump_icsk(struct inet_hashinfo
*h
, struct sk_buff
*skb
,
38 struct netlink_callback
*cb
,
39 const struct inet_diag_req_v2
*r
,
41 int inet_diag_dump_one_icsk(struct inet_hashinfo
*hashinfo
,
42 struct sk_buff
*in_skb
, const struct nlmsghdr
*nlh
,
43 const struct inet_diag_req_v2
*req
);
45 struct sock
*inet_diag_find_one_icsk(struct net
*net
,
46 struct inet_hashinfo
*hashinfo
,
47 const struct inet_diag_req_v2
*req
);
49 int inet_diag_bc_sk(const struct nlattr
*_bc
, struct sock
*sk
);
51 extern int inet_diag_register(const struct inet_diag_handler
*handler
);
52 extern void inet_diag_unregister(const struct inet_diag_handler
*handler
);
53 #endif /* _INET_DIAG_H_ */
This page took 0.033421 seconds and 6 git commands to generate.