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 _UAPI__SOCK_DIAG_H__
20 #define _UAPI__SOCK_DIAG_H__
21 #include <linux/types.h>
22 #define SOCK_DIAG_BY_FAMILY 20
23 #define SOCK_DESTROY 21
24 struct sock_diag_req {
25   __u8 sdiag_family;
26   __u8 sdiag_protocol;
27 };
28 enum {
29   SK_MEMINFO_RMEM_ALLOC,
30   SK_MEMINFO_RCVBUF,
31   SK_MEMINFO_WMEM_ALLOC,
32   SK_MEMINFO_SNDBUF,
33   SK_MEMINFO_FWD_ALLOC,
34   SK_MEMINFO_WMEM_QUEUED,
35   SK_MEMINFO_OPTMEM,
36   SK_MEMINFO_BACKLOG,
37   SK_MEMINFO_DROPS,
38   SK_MEMINFO_VARS,
39 };
40 enum sknetlink_groups {
41   SKNLGRP_NONE,
42   SKNLGRP_INET_TCP_DESTROY,
43   SKNLGRP_INET_UDP_DESTROY,
44   SKNLGRP_INET6_TCP_DESTROY,
45   SKNLGRP_INET6_UDP_DESTROY,
46   __SKNLGRP_MAX,
47 };
48 #define SKNLGRP_MAX (__SKNLGRP_MAX - 1)
49 enum {
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)
55 enum {
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)
61 enum {
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)
69 #endif
70