migration/rdma: Plug memory leaks in qemu_rdma_registration_stop()
[qemu/armbru.git] / linux-user / generic / sockbits.h
blobe44733c601a4b23418a7f67d9e0a5366f7a5c2e0
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 */
8 #ifndef GENERIC_SOCKBITS_H
9 #define GENERIC_SOCKBITS_H
11 #define TARGET_SO_PASSSEC 34
13 /* For setsockopt(2) */
14 #define TARGET_SOL_SOCKET 1
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
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
45 #define TARGET_SO_BINDTODEVICE 25
47 /* Socket filtering */
48 #define TARGET_SO_ATTACH_FILTER 26
49 #define TARGET_SO_DETACH_FILTER 27
51 #define TARGET_SO_PEERNAME 28
52 #define TARGET_SO_TIMESTAMP 29
53 #define TARGET_SCM_TIMESTAMP TARGET_SO_TIMESTAMP
55 #define TARGET_SO_ACCEPTCONN 30
57 #define TARGET_SO_PEERSEC 31
58 #endif