2 #define _INET_DIAG_H_ 1
4 #include <uapi/linux/inet_diag.h>
11 struct netlink_callback
;
13 struct inet_diag_handler
{
14 void (*dump
)(struct sk_buff
*skb
,
15 struct netlink_callback
*cb
,
16 const struct inet_diag_req_v2
*r
,
19 int (*dump_one
)(struct sk_buff
*in_skb
,
20 const struct nlmsghdr
*nlh
,
21 const struct inet_diag_req_v2
*req
);
23 void (*idiag_get_info
)(struct sock
*sk
,
24 struct inet_diag_msg
*r
,
27 __u16 idiag_info_size
;
30 struct inet_connection_sock
;
31 int inet_sk_diag_fill(struct sock
*sk
, struct inet_connection_sock
*icsk
,
32 struct sk_buff
*skb
, const struct inet_diag_req_v2
*req
,
33 struct user_namespace
*user_ns
,
34 u32 pid
, u32 seq
, u16 nlmsg_flags
,
35 const struct nlmsghdr
*unlh
);
36 void inet_diag_dump_icsk(struct inet_hashinfo
*h
, struct sk_buff
*skb
,
37 struct netlink_callback
*cb
,
38 const struct inet_diag_req_v2
*r
,
40 int inet_diag_dump_one_icsk(struct inet_hashinfo
*hashinfo
,
41 struct sk_buff
*in_skb
, const struct nlmsghdr
*nlh
,
42 const struct inet_diag_req_v2
*req
);
44 int inet_diag_bc_sk(const struct nlattr
*_bc
, struct sock
*sk
);
46 extern int inet_diag_register(const struct inet_diag_handler
*handler
);
47 extern void inet_diag_unregister(const struct inet_diag_handler
*handler
);
48 #endif /* _INET_DIAG_H_ */
This page took 0.031429 seconds and 5 git commands to generate.