blob: a4e40d9512bc44610651bfb8f694045c443888c3 [file] [log] [blame]
Nick Kralevicha67e4de2013-01-14 11:28:26 -08001/****************************************************************************
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 ****************************************************************************/
Ben Cheng655a7c02013-10-16 16:09:24 -070019#ifndef _UAPI__SOCK_DIAG_H__
20#define _UAPI__SOCK_DIAG_H__
21#include <linux/types.h>
22#define SOCK_DIAG_BY_FAMILY 20
Christopher Ferris106b3a82016-08-24 12:15:38 -070023#define SOCK_DESTROY 21
Ben Cheng655a7c02013-10-16 16:09:24 -070024struct sock_diag_req {
Tao Baod7db5942015-01-28 10:07:51 -080025 __u8 sdiag_family;
26 __u8 sdiag_protocol;
Christopher Ferris106b3a82016-08-24 12:15:38 -070027};
Ben Cheng655a7c02013-10-16 16:09:24 -070028enum {
Tao Baod7db5942015-01-28 10:07:51 -080029 SK_MEMINFO_RMEM_ALLOC,
30 SK_MEMINFO_RCVBUF,
Christopher Ferris106b3a82016-08-24 12:15:38 -070031 SK_MEMINFO_WMEM_ALLOC,
Tao Baod7db5942015-01-28 10:07:51 -080032 SK_MEMINFO_SNDBUF,
33 SK_MEMINFO_FWD_ALLOC,
34 SK_MEMINFO_WMEM_QUEUED,
Christopher Ferris106b3a82016-08-24 12:15:38 -070035 SK_MEMINFO_OPTMEM,
Tao Baod7db5942015-01-28 10:07:51 -080036 SK_MEMINFO_BACKLOG,
Christopher Ferris106b3a82016-08-24 12:15:38 -070037 SK_MEMINFO_DROPS,
Tao Baod7db5942015-01-28 10:07:51 -080038 SK_MEMINFO_VARS,
Ben Cheng655a7c02013-10-16 16:09:24 -070039};
Christopher Ferris05d08e92016-02-04 13:16:38 -080040enum sknetlink_groups {
Christopher Ferris05d08e92016-02-04 13:16:38 -080041 SKNLGRP_NONE,
42 SKNLGRP_INET_TCP_DESTROY,
43 SKNLGRP_INET_UDP_DESTROY,
44 SKNLGRP_INET6_TCP_DESTROY,
Christopher Ferris05d08e92016-02-04 13:16:38 -080045 SKNLGRP_INET6_UDP_DESTROY,
46 __SKNLGRP_MAX,
47};
48#define SKNLGRP_MAX (__SKNLGRP_MAX - 1)
Christopher Ferrisaf09c702020-06-01 20:29:29 -070049enum {
50 SK_DIAG_BPF_STORAGE_REQ_NONE,
51 SK_DIAG_BPF_STORAGE_REQ_MAP_FD,
52 __SK_DIAG_BPF_STORAGE_REQ_MAX,
53};
54#define SK_DIAG_BPF_STORAGE_REQ_MAX (__SK_DIAG_BPF_STORAGE_REQ_MAX - 1)
55enum {
56 SK_DIAG_BPF_STORAGE_REP_NONE,
57 SK_DIAG_BPF_STORAGE,
58 __SK_DIAG_BPF_STORAGE_REP_MAX,
59};
60#define SK_DIAB_BPF_STORAGE_REP_MAX (__SK_DIAG_BPF_STORAGE_REP_MAX - 1)
61enum {
62 SK_DIAG_BPF_STORAGE_NONE,
63 SK_DIAG_BPF_STORAGE_PAD,
64 SK_DIAG_BPF_STORAGE_MAP_ID,
65 SK_DIAG_BPF_STORAGE_MAP_VALUE,
66 __SK_DIAG_BPF_STORAGE_MAX,
67};
68#define SK_DIAG_BPF_STORAGE_MAX (__SK_DIAG_BPF_STORAGE_MAX - 1)
Christopher Ferris05d08e92016-02-04 13:16:38 -080069#endif