1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef _UAPI__VM_SOCKETS_DIAG_H__ 20 #define _UAPI__VM_SOCKETS_DIAG_H__ 21 #include <linux/types.h> 22 struct vsock_diag_req { 23 __u8 sdiag_family; 24 __u8 sdiag_protocol; 25 __u16 pad; 26 __u32 vdiag_states; 27 __u32 vdiag_ino; 28 __u32 vdiag_show; 29 __u32 vdiag_cookie[2]; 30 }; 31 struct vsock_diag_msg { 32 __u8 vdiag_family; 33 __u8 vdiag_type; 34 __u8 vdiag_state; 35 __u8 vdiag_shutdown; 36 __u32 vdiag_src_cid; 37 __u32 vdiag_src_port; 38 __u32 vdiag_dst_cid; 39 __u32 vdiag_dst_port; 40 __u32 vdiag_ino; 41 __u32 vdiag_cookie[2]; 42 }; 43 #endif 44