diff options
author | Pavel Emelyanov <xemul@parallels.com> | 2012-08-13 05:55:46 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-14 16:56:33 -0700 |
commit | 8a360be0c5f8fe2c46f0a524886fa56596534193 (patch) | |
tree | 6f97f7711805ef93abe605244440268dcfa4d1f5 /include/linux/packet_diag.h | |
parent | 96ec6327144e1ac9e6676e34fae8b49c2102fa5a (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.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/linux/packet_diag.h b/include/linux/packet_diag.h index fa19300ca33..3781ea4bc82 100644 --- a/include/linux/packet_diag.h +++ b/include/linux/packet_diag.h @@ -12,6 +12,8 @@ struct packet_diag_req { __u32 pdiag_cookie[2]; }; +#define PACKET_SHOW_INFO 0x00000001 /* Basic packet_sk information */ + struct packet_diag_msg { __u8 pdiag_family; __u8 pdiag_type; @@ -21,4 +23,25 @@ struct packet_diag_msg { __u32 pdiag_cookie[2]; }; +enum { + PACKET_DIAG_INFO, + + PACKET_DIAG_MAX, +}; + +struct packet_diag_info { + __u32 pdi_index; + __u32 pdi_version; + __u32 pdi_reserve; + __u32 pdi_copy_thresh; + __u32 pdi_tstamp; + __u32 pdi_flags; + +#define PDI_RUNNING 0x1 +#define PDI_AUXDATA 0x2 +#define PDI_ORIGDEV 0x4 +#define PDI_VNETHDR 0x8 +#define PDI_LOSS 0x10 +}; + #endif |