xref: /openbmc/qemu/linux-user/generic/sockbits.h (revision 096b778f)
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License version 2 as
4  * published by the Free Software Foundation, or (at your option) any
5  * later version. See the COPYING file in the top-level directory.
6  */
7 
8 #ifndef GENERIC_SOCKBITS_H
9 #define GENERIC_SOCKBITS_H
10 
11 #define TARGET_SO_PASSSEC        34
12 
13 /* For setsockopt(2) */
14 #define TARGET_SOL_SOCKET      1
15 
16 #define TARGET_SO_DEBUG        1
17 #define TARGET_SO_REUSEADDR    2
18 #define TARGET_SO_TYPE         3
19 #define TARGET_SO_ERROR        4
20 #define TARGET_SO_DONTROUTE    5
21 #define TARGET_SO_BROADCAST    6
22 #define TARGET_SO_SNDBUF       7
23 #define TARGET_SO_RCVBUF       8
24 #define TARGET_SO_SNDBUFFORCE  32
25 #define TARGET_SO_RCVBUFFORCE  33
26 #define TARGET_SO_KEEPALIVE    9
27 #define TARGET_SO_OOBINLINE    10
28 #define TARGET_SO_NO_CHECK     11
29 #define TARGET_SO_PRIORITY     12
30 #define TARGET_SO_LINGER       13
31 #define TARGET_SO_BSDCOMPAT    14
32 #define TARGET_SO_REUSEPORT    15
33 #define TARGET_SO_PASSCRED     16
34 #define TARGET_SO_PEERCRED     17
35 #define TARGET_SO_RCVLOWAT     18
36 #define TARGET_SO_SNDLOWAT     19
37 #define TARGET_SO_RCVTIMEO     20
38 #define TARGET_SO_SNDTIMEO     21
39 
40 /* Security levels - as per NRL IPv6 - don't actually do anything */
41 #define TARGET_SO_SECURITY_AUTHENTICATION              22
42 #define TARGET_SO_SECURITY_ENCRYPTION_TRANSPORT        23
43 #define TARGET_SO_SECURITY_ENCRYPTION_NETWORK          24
44 
45 #define TARGET_SO_BINDTODEVICE 25
46 
47 /* Socket filtering */
48 #define TARGET_SO_ATTACH_FILTER        26
49 #define TARGET_SO_DETACH_FILTER        27
50 
51 #define TARGET_SO_PEERNAME             28
52 #define TARGET_SO_TIMESTAMP            29
53 #define TARGET_SCM_TIMESTAMP           TARGET_SO_TIMESTAMP
54 
55 #define TARGET_SO_ACCEPTCONN           30
56 
57 #define TARGET_SO_PEERSEC              31
58 
59 #define TARGET_SO_PROTOCOL             38
60 #define TARGET_SO_DOMAIN               39
61 #endif
62