diff options
author | Pavel Emelyanov <xemul@parallels.com> | 2012-08-13 01:57:44 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-14 19:56:33 -0400 |
commit | eea68e2f1a0061e09265992b91fdc0014930ae92 (patch) | |
tree | 2b8f78565a04701e49b271b670a67fcb362c8022 /include/linux/packet_diag.h | |
parent | 8a360be0c5f8fe2c46f0a524886fa56596534193 (diff) |
packet: Report socket mclist info via diag module
The info is reported as an array of packet_diag_mclist structures. Each
includes not only the directly configured values (index, type, etc), but
also the "count".
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/packet_diag.h')
-rw-r--r-- | include/linux/packet_diag.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/packet_diag.h b/include/linux/packet_diag.h index 3781ea4bc829..ea2e8923bd7e 100644 --- a/include/linux/packet_diag.h +++ b/include/linux/packet_diag.h | |||
@@ -13,6 +13,7 @@ struct packet_diag_req { | |||
13 | }; | 13 | }; |
14 | 14 | ||
15 | #define PACKET_SHOW_INFO 0x00000001 /* Basic packet_sk information */ | 15 | #define PACKET_SHOW_INFO 0x00000001 /* Basic packet_sk information */ |
16 | #define PACKET_SHOW_MCLIST 0x00000002 /* A set of packet_diag_mclist-s */ | ||
16 | 17 | ||
17 | struct packet_diag_msg { | 18 | struct packet_diag_msg { |
18 | __u8 pdiag_family; | 19 | __u8 pdiag_family; |
@@ -25,6 +26,7 @@ struct packet_diag_msg { | |||
25 | 26 | ||
26 | enum { | 27 | enum { |
27 | PACKET_DIAG_INFO, | 28 | PACKET_DIAG_INFO, |
29 | PACKET_DIAG_MCLIST, | ||
28 | 30 | ||
29 | PACKET_DIAG_MAX, | 31 | PACKET_DIAG_MAX, |
30 | }; | 32 | }; |
@@ -44,4 +46,12 @@ struct packet_diag_info { | |||
44 | #define PDI_LOSS 0x10 | 46 | #define PDI_LOSS 0x10 |
45 | }; | 47 | }; |
46 | 48 | ||
49 | struct packet_diag_mclist { | ||
50 | __u32 pdmc_index; | ||
51 | __u32 pdmc_count; | ||
52 | __u16 pdmc_type; | ||
53 | __u16 pdmc_alen; | ||
54 | __u8 pdmc_addr[MAX_ADDR_LEN]; | ||
55 | }; | ||
56 | |||
47 | #endif | 57 | #endif |