1 #ifndef STRACE_LINUX_PACKET_DIAG_H
2 #define STRACE_LINUX_PACKET_DIAG_H
4 struct packet_diag_req {
6 uint8_t sdiag_protocol;
10 uint32_t pdiag_cookie[2];
13 #define PACKET_SHOW_INFO 0x00000001
14 #define PACKET_SHOW_MCLIST 0x00000002
15 #define PACKET_SHOW_RING_CFG 0x00000004
16 #define PACKET_SHOW_FANOUT 0x00000008
17 #define PACKET_SHOW_MEMINFO 0x00000010
18 #define PACKET_SHOW_FILTER 0x00000020
20 struct packet_diag_msg {
26 uint32_t pdiag_cookie[2];
40 struct packet_diag_info {
44 uint32_t pdi_copy_thresh;
48 #define PDI_RUNNING 0x1
49 #define PDI_AUXDATA 0x2
50 #define PDI_ORIGDEV 0x4
51 #define PDI_VNETHDR 0x8
55 struct packet_diag_mclist {
60 uint8_t pdmc_addr[32]; /* MAX_ADDR_LEN */
63 struct packet_diag_ring {
64 uint32_t pdr_block_size;
65 uint32_t pdr_block_nr;
66 uint32_t pdr_frame_size;
67 uint32_t pdr_frame_nr;
68 uint32_t pdr_retire_tmo;
69 uint32_t pdr_sizeof_priv;
70 uint32_t pdr_features;
73 #endif /* !STRACE_LINUX_PACKET_DIAG_H */