• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
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  */
7 #ifndef __ASM_GENERIC_SOCKET_H
8 #define __ASM_GENERIC_SOCKET_H
9 #include <linux/posix_types.h>
10 #include <asm/sockios.h>
11 #define SOL_SOCKET 1
12 #define SO_DEBUG 1
13 #define SO_REUSEADDR 2
14 #define SO_TYPE 3
15 #define SO_ERROR 4
16 #define SO_DONTROUTE 5
17 #define SO_BROADCAST 6
18 #define SO_SNDBUF 7
19 #define SO_RCVBUF 8
20 #define SO_SNDBUFFORCE 32
21 #define SO_RCVBUFFORCE 33
22 #define SO_KEEPALIVE 9
23 #define SO_OOBINLINE 10
24 #define SO_NO_CHECK 11
25 #define SO_PRIORITY 12
26 #define SO_LINGER 13
27 #define SO_BSDCOMPAT 14
28 #define SO_REUSEPORT 15
29 #ifndef SO_PASSCRED
30 #define SO_PASSCRED 16
31 #define SO_PEERCRED 17
32 #define SO_RCVLOWAT 18
33 #define SO_SNDLOWAT 19
34 #define SO_RCVTIMEO_OLD 20
35 #define SO_SNDTIMEO_OLD 21
36 #endif
37 #define SO_SECURITY_AUTHENTICATION 22
38 #define SO_SECURITY_ENCRYPTION_TRANSPORT 23
39 #define SO_SECURITY_ENCRYPTION_NETWORK 24
40 #define SO_BINDTODEVICE 25
41 #define SO_ATTACH_FILTER 26
42 #define SO_DETACH_FILTER 27
43 #define SO_GET_FILTER SO_ATTACH_FILTER
44 #define SO_PEERNAME 28
45 #define SO_ACCEPTCONN 30
46 #define SO_PEERSEC 31
47 #define SO_PASSSEC 34
48 #define SO_MARK 36
49 #define SO_PROTOCOL 38
50 #define SO_DOMAIN 39
51 #define SO_RXQ_OVFL 40
52 #define SO_WIFI_STATUS 41
53 #define SCM_WIFI_STATUS SO_WIFI_STATUS
54 #define SO_PEEK_OFF 42
55 #define SO_NOFCS 43
56 #define SO_LOCK_FILTER 44
57 #define SO_SELECT_ERR_QUEUE 45
58 #define SO_BUSY_POLL 46
59 #define SO_MAX_PACING_RATE 47
60 #define SO_BPF_EXTENSIONS 48
61 #define SO_INCOMING_CPU 49
62 #define SO_ATTACH_BPF 50
63 #define SO_DETACH_BPF SO_DETACH_FILTER
64 #define SO_ATTACH_REUSEPORT_CBPF 51
65 #define SO_ATTACH_REUSEPORT_EBPF 52
66 #define SO_CNX_ADVICE 53
67 #define SCM_TIMESTAMPING_OPT_STATS 54
68 #define SO_MEMINFO 55
69 #define SO_INCOMING_NAPI_ID 56
70 #define SO_COOKIE 57
71 #define SCM_TIMESTAMPING_PKTINFO 58
72 #define SO_PEERGROUPS 59
73 #define SO_ZEROCOPY 60
74 #define SO_TXTIME 61
75 #define SCM_TXTIME SO_TXTIME
76 #define SO_BINDTOIFINDEX 62
77 #define SO_TIMESTAMP_OLD 29
78 #define SO_TIMESTAMPNS_OLD 35
79 #define SO_TIMESTAMPING_OLD 37
80 #define SO_TIMESTAMP_NEW 63
81 #define SO_TIMESTAMPNS_NEW 64
82 #define SO_TIMESTAMPING_NEW 65
83 #define SO_RCVTIMEO_NEW 66
84 #define SO_SNDTIMEO_NEW 67
85 #define SO_DETACH_REUSEPORT_BPF 68
86 #define SO_PREFER_BUSY_POLL 69
87 #define SO_BUSY_POLL_BUDGET 70
88 #define SO_NETNS_COOKIE 71
89 #define SO_BUF_LOCK 72
90 #define SO_RESERVE_MEM 73
91 #define SO_TXREHASH 74
92 #define SO_RCVMARK 75
93 #define SO_PASSPIDFD 76
94 #define SO_PEERPIDFD 77
95 #if __BITS_PER_LONG == 64 || defined(__x86_64__) && defined(__ILP32__)
96 #define SO_TIMESTAMP SO_TIMESTAMP_OLD
97 #define SO_TIMESTAMPNS SO_TIMESTAMPNS_OLD
98 #define SO_TIMESTAMPING SO_TIMESTAMPING_OLD
99 #define SO_RCVTIMEO SO_RCVTIMEO_OLD
100 #define SO_SNDTIMEO SO_SNDTIMEO_OLD
101 #else
102 #define SO_TIMESTAMP (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_TIMESTAMP_OLD : SO_TIMESTAMP_NEW)
103 #define SO_TIMESTAMPNS (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_TIMESTAMPNS_OLD : SO_TIMESTAMPNS_NEW)
104 #define SO_TIMESTAMPING (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_TIMESTAMPING_OLD : SO_TIMESTAMPING_NEW)
105 #define SO_RCVTIMEO (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_RCVTIMEO_OLD : SO_RCVTIMEO_NEW)
106 #define SO_SNDTIMEO (sizeof(time_t) == sizeof(__kernel_long_t) ? SO_SNDTIMEO_OLD : SO_SNDTIMEO_NEW)
107 #endif
108 #define SCM_TIMESTAMP SO_TIMESTAMP
109 #define SCM_TIMESTAMPNS SO_TIMESTAMPNS
110 #define SCM_TIMESTAMPING SO_TIMESTAMPING
111 #endif
112