1 #ifndef STRACE_LINUX_PACKET_DIAG_H 2 #define STRACE_LINUX_PACKET_DIAG_H 3 4 struct packet_diag_req { 5 uint8_t sdiag_family; 6 uint8_t sdiag_protocol; 7 uint16_t pad; 8 uint32_t pdiag_ino; 9 uint32_t pdiag_show; 10 uint32_t pdiag_cookie[2]; 11 }; 12 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 19 20 struct packet_diag_msg { 21 uint8_t pdiag_family; 22 uint8_t pdiag_type; 23 uint16_t pdiag_num; 24 25 uint32_t pdiag_ino; 26 uint32_t pdiag_cookie[2]; 27 }; 28 29 enum { 30 PACKET_DIAG_INFO, 31 PACKET_DIAG_MCLIST, 32 PACKET_DIAG_RX_RING, 33 PACKET_DIAG_TX_RING, 34 PACKET_DIAG_FANOUT, 35 PACKET_DIAG_UID, 36 PACKET_DIAG_MEMINFO, 37 PACKET_DIAG_FILTER, 38 }; 39 40 #endif /* !STRACE_LINUX_PACKET_DIAG_H */ 41