| 1 | /* |
| 2 | * arch/ubicom32/include/asm/socket.h |
| 3 | * Socket options definitions for Ubicom32 architecture. |
| 4 | * |
| 5 | * (C) Copyright 2009, Ubicom, Inc. |
| 6 | * |
| 7 | * This file is part of the Ubicom32 Linux Kernel Port. |
| 8 | * |
| 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. |
| 13 | * |
| 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. |
| 18 | * |
| 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/>. |
| 22 | * |
| 23 | * Ubicom32 implementation derived from (with many thanks): |
| 24 | * arch/m68knommu |
| 25 | * arch/blackfin |
| 26 | * arch/parisc |
| 27 | */ |
| 28 | #ifndef _ASM_UBICOM32_SOCKET_H |
| 29 | #define _ASM_UBICOM32_SOCKET_H |
| 30 | |
| 31 | #include <asm/sockios.h> |
| 32 | |
| 33 | /* For setsockopt(2) */ |
| 34 | #define SOL_SOCKET 1 |
| 35 | |
| 36 | #define SO_DEBUG 1 |
| 37 | #define SO_REUSEADDR 2 |
| 38 | #define SO_TYPE 3 |
| 39 | #define SO_ERROR 4 |
| 40 | #define SO_DONTROUTE 5 |
| 41 | #define SO_BROADCAST 6 |
| 42 | #define SO_SNDBUF 7 |
| 43 | #define SO_RCVBUF 8 |
| 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 |
| 50 | #define SO_LINGER 13 |
| 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 |
| 59 | |
| 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 |
| 64 | |
| 65 | #define SO_BINDTODEVICE 25 |
| 66 | |
| 67 | /* Socket filtering */ |
| 68 | #define SO_ATTACH_FILTER 26 |
| 69 | #define SO_DETACH_FILTER 27 |
| 70 | |
| 71 | #define SO_PEERNAME 28 |
| 72 | #define SO_TIMESTAMP 29 |
| 73 | #define SCM_TIMESTAMP SO_TIMESTAMP |
| 74 | |
| 75 | #define SO_ACCEPTCONN 30 |
| 76 | |
| 77 | #define SO_PEERSEC 31 |
| 78 | #define SO_PASSSEC 34 |
| 79 | #define SO_TIMESTAMPNS 35 |
| 80 | #define SCM_TIMESTAMPNS SO_TIMESTAMPNS |
| 81 | |
| 82 | #define SO_MARK 36 |
| 83 | |
| 84 | #define SO_TIMESTAMPING 37 |
| 85 | #define SCM_TIMESTAMPING SO_TIMESTAMPING |
| 86 | |
| 87 | #define SO_PROTOCOL 38 |
| 88 | #define SO_DOMAIN 39 |
| 89 | |
| 90 | #endif /* _ASM_UBICOM32_SOCKET_H */ |
| 91 | |