Root/
1 | #ifndef _INET_DIAG_H_ |
2 | #define _INET_DIAG_H_ 1 |
3 | |
4 | #include <uapi/linux/inet_diag.h> |
5 | |
6 | struct sock; |
7 | struct inet_hashinfo; |
8 | struct nlattr; |
9 | struct nlmsghdr; |
10 | struct sk_buff; |
11 | struct netlink_callback; |
12 | |
13 | struct inet_diag_handler { |
14 | void (*dump)(struct sk_buff *skb, |
15 | struct netlink_callback *cb, |
16 | struct inet_diag_req_v2 *r, |
17 | struct nlattr *bc); |
18 | |
19 | int (*dump_one)(struct sk_buff *in_skb, |
20 | const struct nlmsghdr *nlh, |
21 | struct inet_diag_req_v2 *req); |
22 | |
23 | void (*idiag_get_info)(struct sock *sk, |
24 | struct inet_diag_msg *r, |
25 | void *info); |
26 | __u16 idiag_type; |
27 | }; |
28 | |
29 | struct inet_connection_sock; |
30 | int inet_sk_diag_fill(struct sock *sk, struct inet_connection_sock *icsk, |
31 | struct sk_buff *skb, struct inet_diag_req_v2 *req, |
32 | struct user_namespace *user_ns, |
33 | u32 pid, u32 seq, u16 nlmsg_flags, |
34 | const struct nlmsghdr *unlh); |
35 | void inet_diag_dump_icsk(struct inet_hashinfo *h, struct sk_buff *skb, |
36 | struct netlink_callback *cb, struct inet_diag_req_v2 *r, |
37 | struct nlattr *bc); |
38 | int inet_diag_dump_one_icsk(struct inet_hashinfo *hashinfo, |
39 | struct sk_buff *in_skb, const struct nlmsghdr *nlh, |
40 | struct inet_diag_req_v2 *req); |
41 | |
42 | int inet_diag_bc_sk(const struct nlattr *_bc, struct sock *sk); |
43 | |
44 | extern int inet_diag_register(const struct inet_diag_handler *handler); |
45 | extern void inet_diag_unregister(const struct inet_diag_handler *handler); |
46 | #endif /* _INET_DIAG_H_ */ |
47 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9