| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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 __NETLINK_DIAG_H__ | 
 | 20 | #define __NETLINK_DIAG_H__ | 
 | 21 | #include <linux/types.h> | 
 | 22 | struct netlink_diag_req { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 23 |   __u8 sdiag_family; | 
 | 24 |   __u8 sdiag_protocol; | 
 | 25 |   __u16 pad; | 
 | 26 |   __u32 ndiag_ino; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 27 |   __u32 ndiag_show; | 
 | 28 |   __u32 ndiag_cookie[2]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 29 | }; | 
 | 30 | struct netlink_diag_msg { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 31 |   __u8 ndiag_family; | 
 | 32 |   __u8 ndiag_type; | 
 | 33 |   __u8 ndiag_protocol; | 
 | 34 |   __u8 ndiag_state; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 35 |   __u32 ndiag_portid; | 
 | 36 |   __u32 ndiag_dst_portid; | 
 | 37 |   __u32 ndiag_dst_group; | 
 | 38 |   __u32 ndiag_ino; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 39 |   __u32 ndiag_cookie[2]; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 40 | }; | 
 | 41 | struct netlink_diag_ring { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 42 |   __u32 ndr_block_size; | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 43 |   __u32 ndr_block_nr; | 
 | 44 |   __u32 ndr_frame_size; | 
 | 45 |   __u32 ndr_frame_nr; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 46 | }; | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 47 | enum { | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 48 |   NETLINK_DIAG_MEMINFO, | 
 | 49 |   NETLINK_DIAG_GROUPS, | 
 | 50 |   NETLINK_DIAG_RX_RING, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 51 |   NETLINK_DIAG_TX_RING, | 
| Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 52 |   NETLINK_DIAG_FLAGS, | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 53 |   __NETLINK_DIAG_MAX, | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 54 | }; | 
 | 55 | #define NETLINK_DIAG_MAX (__NETLINK_DIAG_MAX - 1) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 56 | #define NDIAG_PROTO_ALL ((__u8) ~0) | 
 | 57 | #define NDIAG_SHOW_MEMINFO 0x00000001 | 
 | 58 | #define NDIAG_SHOW_GROUPS 0x00000002 | 
 | 59 | #define NDIAG_SHOW_RING_CFG 0x00000004 | 
| Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 60 | #define NDIAG_SHOW_FLAGS 0x00000008 | 
 | 61 | #define NDIAG_FLAG_CB_RUNNING 0x00000001 | 
 | 62 | #define NDIAG_FLAG_PKTINFO 0x00000002 | 
 | 63 | #define NDIAG_FLAG_BROADCAST_ERROR 0x00000004 | 
 | 64 | #define NDIAG_FLAG_NO_ENOBUFS 0x00000008 | 
 | 65 | #define NDIAG_FLAG_LISTEN_ALL_NSID 0x00000010 | 
 | 66 | #define NDIAG_FLAG_CAP_ACK 0x00000020 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 67 | #endif |