blob: 343098472e0b4ea827ec635d1a159f272385f80a [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 _UAPI__SOCK_DIAG_H__
8#define _UAPI__SOCK_DIAG_H__
9#include <linux/types.h>
10#define SOCK_DIAG_BY_FAMILY 20
Christopher Ferris106b3a82016-08-24 12:15:38 -070011#define SOCK_DESTROY 21
Ben Cheng655a7c02013-10-16 16:09:24 -070012struct sock_diag_req {
Tao Baod7db5942015-01-28 10:07:51 -080013 __u8 sdiag_family;
14 __u8 sdiag_protocol;
Christopher Ferris106b3a82016-08-24 12:15:38 -070015};
Ben Cheng655a7c02013-10-16 16:09:24 -070016enum {
Tao Baod7db5942015-01-28 10:07:51 -080017 SK_MEMINFO_RMEM_ALLOC,
18 SK_MEMINFO_RCVBUF,
Christopher Ferris106b3a82016-08-24 12:15:38 -070019 SK_MEMINFO_WMEM_ALLOC,
Tao Baod7db5942015-01-28 10:07:51 -080020 SK_MEMINFO_SNDBUF,
21 SK_MEMINFO_FWD_ALLOC,
22 SK_MEMINFO_WMEM_QUEUED,
Christopher Ferris106b3a82016-08-24 12:15:38 -070023 SK_MEMINFO_OPTMEM,
Tao Baod7db5942015-01-28 10:07:51 -080024 SK_MEMINFO_BACKLOG,
Christopher Ferris106b3a82016-08-24 12:15:38 -070025 SK_MEMINFO_DROPS,
Tao Baod7db5942015-01-28 10:07:51 -080026 SK_MEMINFO_VARS,
Ben Cheng655a7c02013-10-16 16:09:24 -070027};
Christopher Ferris05d08e92016-02-04 13:16:38 -080028enum sknetlink_groups {
Christopher Ferris05d08e92016-02-04 13:16:38 -080029 SKNLGRP_NONE,
30 SKNLGRP_INET_TCP_DESTROY,
31 SKNLGRP_INET_UDP_DESTROY,
32 SKNLGRP_INET6_TCP_DESTROY,
Christopher Ferris05d08e92016-02-04 13:16:38 -080033 SKNLGRP_INET6_UDP_DESTROY,
34 __SKNLGRP_MAX,
35};
36#define SKNLGRP_MAX (__SKNLGRP_MAX - 1)
Christopher Ferrisaf09c702020-06-01 20:29:29 -070037enum {
38 SK_DIAG_BPF_STORAGE_REQ_NONE,
39 SK_DIAG_BPF_STORAGE_REQ_MAP_FD,
40 __SK_DIAG_BPF_STORAGE_REQ_MAX,
41};
42#define SK_DIAG_BPF_STORAGE_REQ_MAX (__SK_DIAG_BPF_STORAGE_REQ_MAX - 1)
43enum {
44 SK_DIAG_BPF_STORAGE_REP_NONE,
45 SK_DIAG_BPF_STORAGE,
46 __SK_DIAG_BPF_STORAGE_REP_MAX,
47};
48#define SK_DIAB_BPF_STORAGE_REP_MAX (__SK_DIAG_BPF_STORAGE_REP_MAX - 1)
49enum {
50 SK_DIAG_BPF_STORAGE_NONE,
51 SK_DIAG_BPF_STORAGE_PAD,
52 SK_DIAG_BPF_STORAGE_MAP_ID,
53 SK_DIAG_BPF_STORAGE_MAP_VALUE,
54 __SK_DIAG_BPF_STORAGE_MAX,
55};
56#define SK_DIAG_BPF_STORAGE_MAX (__SK_DIAG_BPF_STORAGE_MAX - 1)
Christopher Ferris05d08e92016-02-04 13:16:38 -080057#endif