Nick Kralevich | a67e4de | 2013-01-14 11:28:26 -0800 | [diff] [blame] | 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 | ****************************************************************************/ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 19 | #ifndef _UAPI__SOCK_DIAG_H__ |
| 20 | #define _UAPI__SOCK_DIAG_H__ |
| 21 | #include <linux/types.h> |
| 22 | #define SOCK_DIAG_BY_FAMILY 20 |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 23 | #define SOCK_DESTROY 21 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 24 | struct sock_diag_req { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 25 | __u8 sdiag_family; |
| 26 | __u8 sdiag_protocol; |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 27 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 28 | enum { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 29 | SK_MEMINFO_RMEM_ALLOC, |
| 30 | SK_MEMINFO_RCVBUF, |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 31 | SK_MEMINFO_WMEM_ALLOC, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 32 | SK_MEMINFO_SNDBUF, |
| 33 | SK_MEMINFO_FWD_ALLOC, |
| 34 | SK_MEMINFO_WMEM_QUEUED, |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 35 | SK_MEMINFO_OPTMEM, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 36 | SK_MEMINFO_BACKLOG, |
Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 37 | SK_MEMINFO_DROPS, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 38 | SK_MEMINFO_VARS, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 39 | }; |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 40 | enum sknetlink_groups { |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 41 | SKNLGRP_NONE, |
| 42 | SKNLGRP_INET_TCP_DESTROY, |
| 43 | SKNLGRP_INET_UDP_DESTROY, |
| 44 | SKNLGRP_INET6_TCP_DESTROY, |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 45 | SKNLGRP_INET6_UDP_DESTROY, |
| 46 | __SKNLGRP_MAX, |
| 47 | }; |
| 48 | #define SKNLGRP_MAX (__SKNLGRP_MAX - 1) |
Christopher Ferris | af09c70 | 2020-06-01 20:29:29 -0700 | [diff] [blame] | 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) |
Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 69 | #endif |