| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -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 | ****************************************************************************/ | 
|  | 19 | #ifndef _UAPI_ASM_SOCKET_H | 
|  | 20 | #define _UAPI_ASM_SOCKET_H | 
|  | 21 | #include <asm/sockios.h> | 
|  | 22 | #define SOL_SOCKET 0xffff | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 23 | #define SO_DEBUG 0x0001 | 
|  | 24 | #define SO_REUSEADDR 0x0004 | 
|  | 25 | #define SO_KEEPALIVE 0x0008 | 
|  | 26 | #define SO_DONTROUTE 0x0010 | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 27 | #define SO_BROADCAST 0x0020 | 
|  | 28 | #define SO_LINGER 0x0080 | 
|  | 29 | #define SO_OOBINLINE 0x0100 | 
|  | 30 | #define SO_REUSEPORT 0x0200 | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 31 | #define SO_TYPE 0x1008 | 
|  | 32 | #define SO_STYLE SO_TYPE | 
|  | 33 | #define SO_ERROR 0x1007 | 
|  | 34 | #define SO_SNDBUF 0x1001 | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 35 | #define SO_RCVBUF 0x1002 | 
|  | 36 | #define SO_SNDLOWAT 0x1003 | 
|  | 37 | #define SO_RCVLOWAT 0x1004 | 
|  | 38 | #define SO_SNDTIMEO 0x1005 | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 39 | #define SO_RCVTIMEO 0x1006 | 
|  | 40 | #define SO_ACCEPTCONN 0x1009 | 
|  | 41 | #define SO_PROTOCOL 0x1028 | 
|  | 42 | #define SO_DOMAIN 0x1029 | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 43 | #define SO_NO_CHECK 11 | 
|  | 44 | #define SO_PRIORITY 12 | 
|  | 45 | #define SO_BSDCOMPAT 14 | 
|  | 46 | #define SO_PASSCRED 17 | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 47 | #define SO_PEERCRED 18 | 
|  | 48 | #define SO_SECURITY_AUTHENTICATION 22 | 
|  | 49 | #define SO_SECURITY_ENCRYPTION_TRANSPORT 23 | 
|  | 50 | #define SO_SECURITY_ENCRYPTION_NETWORK 24 | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 51 | #define SO_BINDTODEVICE 25 | 
|  | 52 | #define SO_ATTACH_FILTER 26 | 
|  | 53 | #define SO_DETACH_FILTER 27 | 
|  | 54 | #define SO_GET_FILTER SO_ATTACH_FILTER | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 55 | #define SO_PEERNAME 28 | 
|  | 56 | #define SO_TIMESTAMP 29 | 
|  | 57 | #define SCM_TIMESTAMP SO_TIMESTAMP | 
|  | 58 | #define SO_PEERSEC 30 | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 59 | #define SO_SNDBUFFORCE 31 | 
|  | 60 | #define SO_RCVBUFFORCE 33 | 
|  | 61 | #define SO_PASSSEC 34 | 
|  | 62 | #define SO_TIMESTAMPNS 35 | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 63 | #define SCM_TIMESTAMPNS SO_TIMESTAMPNS | 
|  | 64 | #define SO_MARK 36 | 
|  | 65 | #define SO_TIMESTAMPING 37 | 
|  | 66 | #define SCM_TIMESTAMPING SO_TIMESTAMPING | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 67 | #define SO_RXQ_OVFL 40 | 
|  | 68 | #define SO_WIFI_STATUS 41 | 
|  | 69 | #define SCM_WIFI_STATUS SO_WIFI_STATUS | 
|  | 70 | #define SO_PEEK_OFF 42 | 
| Elliott Hughes | abd6261 | 2013-11-08 11:45:48 -0800 | [diff] [blame] | 71 | #define SO_NOFCS 43 | 
|  | 72 | #define SO_LOCK_FILTER 44 | 
|  | 73 | #define SO_SELECT_ERR_QUEUE 45 | 
| Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 74 | #define SO_BUSY_POLL 46 | 
| Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 75 | #define SO_MAX_PACING_RATE 47 | 
|  | 76 | #define SO_BPF_EXTENSIONS 48 | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 77 | #define SO_INCOMING_CPU 49 | 
|  | 78 | #define SO_ATTACH_BPF 50 | 
| Christopher Ferris | 05d08e9 | 2016-02-04 13:16:38 -0800 | [diff] [blame] | 79 | #define SO_DETACH_BPF SO_DETACH_FILTER | 
| Christopher Ferris | 106b3a8 | 2016-08-24 12:15:38 -0700 | [diff] [blame] | 80 | #define SO_ATTACH_REUSEPORT_CBPF 51 | 
|  | 81 | #define SO_ATTACH_REUSEPORT_EBPF 52 | 
|  | 82 | #define SO_CNX_ADVICE 53 | 
| Christopher Ferris | 48af7cb | 2017-02-21 12:35:09 -0800 | [diff] [blame] | 83 | #define SCM_TIMESTAMPING_OPT_STATS 54 | 
| Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 84 | #define SO_MEMINFO 55 | 
|  | 85 | #define SO_INCOMING_NAPI_ID 56 | 
|  | 86 | #define SO_COOKIE 57 | 
| Christopher Ferris | 38062f9 | 2014-07-09 15:33:25 -0700 | [diff] [blame] | 87 | #endif |