1 #ifndef STRACE_LINUX_UNIX_DIAG_H 2 #define STRACE_LINUX_UNIX_DIAG_H 3 4 struct unix_diag_req { 5 uint8_t sdiag_family; 6 uint8_t sdiag_protocol; 7 uint16_t pad; 8 uint32_t udiag_states; 9 uint32_t udiag_ino; 10 uint32_t udiag_show; 11 uint32_t udiag_cookie[2]; 12 }; 13 14 #define UDIAG_SHOW_NAME 0x01 15 #define UDIAG_SHOW_PEER 0x04 16 17 struct unix_diag_msg { 18 uint8_t udiag_family; 19 uint8_t udiag_type; 20 uint8_t udiag_state; 21 uint8_t pad; 22 uint32_t udiag_ino; 23 uint32_t udiag_cookie[2]; 24 }; 25 26 #define UNIX_DIAG_NAME 0 27 #define UNIX_DIAG_PEER 2 28 29 #endif /* !STRACE_LINUX_UNIX_DIAG_H */ 30