1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef __NETLINK_DIAG_H__ 8 #define __NETLINK_DIAG_H__ 9 #include <linux/types.h> 10 struct netlink_diag_req { 11 __u8 sdiag_family; 12 __u8 sdiag_protocol; 13 __u16 pad; 14 __u32 ndiag_ino; 15 __u32 ndiag_show; 16 __u32 ndiag_cookie[2]; 17 }; 18 struct netlink_diag_msg { 19 __u8 ndiag_family; 20 __u8 ndiag_type; 21 __u8 ndiag_protocol; 22 __u8 ndiag_state; 23 __u32 ndiag_portid; 24 __u32 ndiag_dst_portid; 25 __u32 ndiag_dst_group; 26 __u32 ndiag_ino; 27 __u32 ndiag_cookie[2]; 28 }; 29 struct netlink_diag_ring { 30 __u32 ndr_block_size; 31 __u32 ndr_block_nr; 32 __u32 ndr_frame_size; 33 __u32 ndr_frame_nr; 34 }; 35 enum { 36 NETLINK_DIAG_MEMINFO, 37 NETLINK_DIAG_GROUPS, 38 NETLINK_DIAG_RX_RING, 39 NETLINK_DIAG_TX_RING, 40 NETLINK_DIAG_FLAGS, 41 __NETLINK_DIAG_MAX, 42 }; 43 #define NETLINK_DIAG_MAX (__NETLINK_DIAG_MAX - 1) 44 #define NDIAG_PROTO_ALL ((__u8) ~0) 45 #define NDIAG_SHOW_MEMINFO 0x00000001 46 #define NDIAG_SHOW_GROUPS 0x00000002 47 #define NDIAG_SHOW_RING_CFG 0x00000004 48 #define NDIAG_SHOW_FLAGS 0x00000008 49 #define NDIAG_FLAG_CB_RUNNING 0x00000001 50 #define NDIAG_FLAG_PKTINFO 0x00000002 51 #define NDIAG_FLAG_BROADCAST_ERROR 0x00000004 52 #define NDIAG_FLAG_NO_ENOBUFS 0x00000008 53 #define NDIAG_FLAG_LISTEN_ALL_NSID 0x00000010 54 #define NDIAG_FLAG_CAP_ACK 0x00000020 55 #endif 56