2 * arch/ubicom32/include/asm/socket.h
3 * Socket options definitions for Ubicom32 architecture.
5 * (C) Copyright 2009, Ubicom, Inc.
7 * This file is part of the Ubicom32 Linux Kernel Port.
9 * The Ubicom32 Linux Kernel Port is free software: you can redistribute
10 * it and/or modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation, either version 2 of the
12 * License, or (at your option) any later version.
14 * The Ubicom32 Linux Kernel Port is distributed in the hope that it
15 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
16 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
17 * the GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with the Ubicom32 Linux Kernel Port. If not,
21 * see <http://www.gnu.org/licenses/>.
23 * Ubicom32 implementation derived from (with many thanks):
28 #ifndef _ASM_UBICOM32_SOCKET_H
29 #define _ASM_UBICOM32_SOCKET_H
31 #include <asm/sockios.h>
33 /* For setsockopt(2) */
37 #define SO_REUSEADDR 2
40 #define SO_DONTROUTE 5
41 #define SO_BROADCAST 6
44 #define SO_SNDBUFFORCE 32
45 #define SO_RCVBUFFORCE 33
46 #define SO_KEEPALIVE 9
47 #define SO_OOBINLINE 10
48 #define SO_NO_CHECK 11
49 #define SO_PRIORITY 12
51 #define SO_BSDCOMPAT 14
52 /* To add :#define SO_REUSEPORT 15 */
53 #define SO_PASSCRED 16
54 #define SO_PEERCRED 17
55 #define SO_RCVLOWAT 18
56 #define SO_SNDLOWAT 19
57 #define SO_RCVTIMEO 20
58 #define SO_SNDTIMEO 21
60 /* Security levels - as per NRL IPv6 - don't actually do anything */
61 #define SO_SECURITY_AUTHENTICATION 22
62 #define SO_SECURITY_ENCRYPTION_TRANSPORT 23
63 #define SO_SECURITY_ENCRYPTION_NETWORK 24
65 #define SO_BINDTODEVICE 25
67 /* Socket filtering */
68 #define SO_ATTACH_FILTER 26
69 #define SO_DETACH_FILTER 27
71 #define SO_PEERNAME 28
72 #define SO_TIMESTAMP 29
73 #define SCM_TIMESTAMP SO_TIMESTAMP
75 #define SO_ACCEPTCONN 30
79 #define SO_TIMESTAMPNS 35
80 #define SCM_TIMESTAMPNS SO_TIMESTAMPNS
84 #define SO_TIMESTAMPING 37
85 #define SCM_TIMESTAMPING SO_TIMESTAMPING
87 #define SO_PROTOCOL 38
90 #endif /* _ASM_UBICOM32_SOCKET_H */