• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 {
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24  __u8 sdiag_family;
25  __u8 sdiag_protocol;
26  __u16 pad;
27  __u32 ndiag_ino;
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29  __u32 ndiag_show;
30  __u32 ndiag_cookie[2];
31 };
32 struct netlink_diag_msg {
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34  __u8 ndiag_family;
35  __u8 ndiag_type;
36  __u8 ndiag_protocol;
37  __u8 ndiag_state;
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39  __u32 ndiag_portid;
40  __u32 ndiag_dst_portid;
41  __u32 ndiag_dst_group;
42  __u32 ndiag_ino;
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44  __u32 ndiag_cookie[2];
45 };
46 struct netlink_diag_ring {
47  __u32 ndr_block_size;
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49  __u32 ndr_block_nr;
50  __u32 ndr_frame_size;
51  __u32 ndr_frame_nr;
52 };
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 enum {
55  NETLINK_DIAG_MEMINFO,
56  NETLINK_DIAG_GROUPS,
57  NETLINK_DIAG_RX_RING,
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59  NETLINK_DIAG_TX_RING,
60  __NETLINK_DIAG_MAX,
61 };
62 #define NETLINK_DIAG_MAX (__NETLINK_DIAG_MAX - 1)
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 #define NDIAG_PROTO_ALL ((__u8) ~0)
65 #define NDIAG_SHOW_MEMINFO 0x00000001
66 #define NDIAG_SHOW_GROUPS 0x00000002
67 #define NDIAG_SHOW_RING_CFG 0x00000004
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 #endif
70