aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/packet_diag.h
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@parallels.com>2012-08-13 01:55:46 -0400
committerDavid S. Miller <davem@davemloft.net>2012-08-14 19:56:33 -0400
commit8a360be0c5f8fe2c46f0a524886fa56596534193 (patch)
tree6f97f7711805ef93abe605244440268dcfa4d1f5 /include/linux/packet_diag.h
parent96ec6327144e1ac9e6676e34fae8b49c2102fa5a (diff)
packet: Report more packet sk info via diag module
This reports in one rtattr message all the other scalar values, that can be set on a packet socket with setsockopt. 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.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/linux/packet_diag.h b/include/linux/packet_diag.h
index fa19300ca334..3781ea4bc829 100644
--- a/include/linux/packet_diag.h
+++ b/include/linux/packet_diag.h
@@ -12,6 +12,8 @@ struct packet_diag_req {
12 __u32 pdiag_cookie[2]; 12 __u32 pdiag_cookie[2];
13}; 13};
14 14
15#define PACKET_SHOW_INFO 0x00000001 /* Basic packet_sk information */
16
15struct packet_diag_msg { 17struct packet_diag_msg {
16 __u8 pdiag_family; 18 __u8 pdiag_family;
17 __u8 pdiag_type; 19 __u8 pdiag_type;
@@ -21,4 +23,25 @@ struct packet_diag_msg {
21 __u32 pdiag_cookie[2]; 23 __u32 pdiag_cookie[2];
22}; 24};
23 25
26enum {
27 PACKET_DIAG_INFO,
28
29 PACKET_DIAG_MAX,
30};
31
32struct packet_diag_info {
33 __u32 pdi_index;
34 __u32 pdi_version;
35 __u32 pdi_reserve;
36 __u32 pdi_copy_thresh;
37 __u32 pdi_tstamp;
38 __u32 pdi_flags;
39
40#define PDI_RUNNING 0x1
41#define PDI_AUXDATA 0x2
42#define PDI_ORIGDEV 0x4
43#define PDI_VNETHDR 0x8
44#define PDI_LOSS 0x10
45};
46
24#endif 47#endif