diff options
author | Pavel Emelyanov <xemul@parallels.com> | 2011-12-06 02:58:21 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-06 13:58:01 -0500 |
commit | 126fdc3249c9ced2a0d20f916858fec26a445f61 (patch) | |
tree | 3472fb17cbe27014ee45c70535dc96ad7ae28195 /include/linux/inet_diag.h | |
parent | d366477a52f1df29fa066ffb18e4e6101ee2ad04 (diff) |
inet_diag: Introduce new inet_diag_req header
This one coinsides with the sock_diag_req in the beginning and
contains only used fields from its previous analogue.
The existing code is patched to use the _compat version of it
for now.
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/inet_diag.h')
-rw-r--r-- | include/linux/inet_diag.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/inet_diag.h b/include/linux/inet_diag.h index f7baaf637426..defe8ff36df8 100644 --- a/include/linux/inet_diag.h +++ b/include/linux/inet_diag.h | |||
@@ -23,7 +23,7 @@ struct inet_diag_sockid { | |||
23 | 23 | ||
24 | /* Request structure */ | 24 | /* Request structure */ |
25 | 25 | ||
26 | struct inet_diag_req { | 26 | struct inet_diag_req_compat { |
27 | __u8 idiag_family; /* Family of addresses. */ | 27 | __u8 idiag_family; /* Family of addresses. */ |
28 | __u8 idiag_src_len; | 28 | __u8 idiag_src_len; |
29 | __u8 idiag_dst_len; | 29 | __u8 idiag_dst_len; |
@@ -35,6 +35,15 @@ struct inet_diag_req { | |||
35 | __u32 idiag_dbs; /* Tables to dump (NI) */ | 35 | __u32 idiag_dbs; /* Tables to dump (NI) */ |
36 | }; | 36 | }; |
37 | 37 | ||
38 | struct inet_diag_req { | ||
39 | __u8 sdiag_family; | ||
40 | __u8 sdiag_protocol; | ||
41 | __u8 idiag_ext; | ||
42 | __u8 pad; | ||
43 | __u32 idiag_states; | ||
44 | struct inet_diag_sockid id; | ||
45 | }; | ||
46 | |||
38 | enum { | 47 | enum { |
39 | INET_DIAG_REQ_NONE, | 48 | INET_DIAG_REQ_NONE, |
40 | INET_DIAG_REQ_BYTECODE, | 49 | INET_DIAG_REQ_BYTECODE, |