MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-nios2nommu / socket.h
blobca77fbe5739a5d29435cc12517c2d7b4adf10d1b
1 #ifndef _ASM_SOCKET_H
2 #define _ASM_SOCKET_H
4 /*--------------------------------------------------------------------
6 * include/asm-nios2nommu/socket.h
8 * Derived from m68knommu
10 * Copyright (C) 2004 Microtronix Datacom Ltd
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
23 * Jan/20/2004 dgt NiosII
25 ---------------------------------------------------------------------*/
28 #include <asm/sockios.h>
30 /* For setsockopt(2) */
31 #define SOL_SOCKET 1
33 #define SO_DEBUG 1
34 #define SO_REUSEADDR 2
35 #define SO_TYPE 3
36 #define SO_ERROR 4
37 #define SO_DONTROUTE 5
38 #define SO_BROADCAST 6
39 #define SO_SNDBUF 7
40 #define SO_RCVBUF 8
41 #define SO_SNDBUFFORCE 32
42 #define SO_RCVBUFFORCE 33
43 #define SO_KEEPALIVE 9
44 #define SO_OOBINLINE 10
45 #define SO_NO_CHECK 11
46 #define SO_PRIORITY 12
47 #define SO_LINGER 13
48 #define SO_BSDCOMPAT 14
49 /* To add :#define SO_REUSEPORT 15 */
50 #define SO_PASSCRED 16
51 #define SO_PEERCRED 17
52 #define SO_RCVLOWAT 18
53 #define SO_SNDLOWAT 19
54 #define SO_RCVTIMEO 20
55 #define SO_SNDTIMEO 21
57 /* Security levels - as per NRL IPv6 - don't actually do anything */
58 #define SO_SECURITY_AUTHENTICATION 22
59 #define SO_SECURITY_ENCRYPTION_TRANSPORT 23
60 #define SO_SECURITY_ENCRYPTION_NETWORK 24
62 #define SO_BINDTODEVICE 25
64 /* Socket filtering */
65 #define SO_ATTACH_FILTER 26
66 #define SO_DETACH_FILTER 27
68 #define SO_PEERNAME 28
69 #define SO_TIMESTAMP 29
70 #define SCM_TIMESTAMP SO_TIMESTAMP
72 #define SO_ACCEPTCONN 30
74 #define SO_PEERSEC 31 /* ;dgt2;tmp; */
75 #define SO_PASSSEC 34
77 #endif /* _ASM_SOCKET_H */