blob: aef637de3c1778ae07328dd1b377653604bd7c1e [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef __NETLINK_DIAG_H__
8#define __NETLINK_DIAG_H__
9#include <linux/types.h>
10struct netlink_diag_req {
Tao Baod7db5942015-01-28 10:07:51 -080011 __u8 sdiag_family;
12 __u8 sdiag_protocol;
13 __u16 pad;
14 __u32 ndiag_ino;
Tao Baod7db5942015-01-28 10:07:51 -080015 __u32 ndiag_show;
16 __u32 ndiag_cookie[2];
Ben Cheng655a7c02013-10-16 16:09:24 -070017};
18struct netlink_diag_msg {
Tao Baod7db5942015-01-28 10:07:51 -080019 __u8 ndiag_family;
20 __u8 ndiag_type;
21 __u8 ndiag_protocol;
22 __u8 ndiag_state;
Tao Baod7db5942015-01-28 10:07:51 -080023 __u32 ndiag_portid;
24 __u32 ndiag_dst_portid;
25 __u32 ndiag_dst_group;
26 __u32 ndiag_ino;
Tao Baod7db5942015-01-28 10:07:51 -080027 __u32 ndiag_cookie[2];
Ben Cheng655a7c02013-10-16 16:09:24 -070028};
29struct netlink_diag_ring {
Tao Baod7db5942015-01-28 10:07:51 -080030 __u32 ndr_block_size;
Tao Baod7db5942015-01-28 10:07:51 -080031 __u32 ndr_block_nr;
32 __u32 ndr_frame_size;
33 __u32 ndr_frame_nr;
Ben Cheng655a7c02013-10-16 16:09:24 -070034};
Ben Cheng655a7c02013-10-16 16:09:24 -070035enum {
Tao Baod7db5942015-01-28 10:07:51 -080036 NETLINK_DIAG_MEMINFO,
37 NETLINK_DIAG_GROUPS,
38 NETLINK_DIAG_RX_RING,
Tao Baod7db5942015-01-28 10:07:51 -080039 NETLINK_DIAG_TX_RING,
Christopher Ferris525ce912017-07-26 13:12:53 -070040 NETLINK_DIAG_FLAGS,
Tao Baod7db5942015-01-28 10:07:51 -080041 __NETLINK_DIAG_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -070042};
43#define NETLINK_DIAG_MAX (__NETLINK_DIAG_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -070044#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
Christopher Ferris525ce912017-07-26 13:12:53 -070048#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
Ben Cheng655a7c02013-10-16 16:09:24 -070055#endif