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>
This commit is contained in:
parent
96ec632714
commit
8a360be0c5
2 changed files with 56 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue