Import 2.3.18pre1
[davej-history.git] / include / asm-mips / socket.h
blob8af2e205b9a295a6aa41b6f703764b156229d881
1 /*
2 * $Id: socket.h,v 1.5 1998/03/15 09:52:54 ralf Exp $
3 */
4 #ifndef __ASM_MIPS_SOCKET_H
5 #define __ASM_MIPS_SOCKET_H
7 #include <asm/sockios.h>
9 /*
10 * For setsockoptions(2)
12 * This defines are ABI conformant as far as Linux supports these ...
14 #define SOL_SOCKET 0xffff
16 #define SO_DEBUG 0x0001 /* Record debugging information. */
17 #define SO_REUSEADDR 0x0004 /* Allow reuse of local addresses. */
18 #define SO_KEEPALIVE 0x0008 /* Keep connections alive and send
19 SIGPIPE when they die. */
20 #define SO_DONTROUTE 0x0010 /* Don't do local routing. */
21 #define SO_BROADCAST 0x0020 /* Allow transmission of
22 broadcast messages. */
23 #define SO_LINGER 0x0080 /* Block on close of a reliable
24 socket to transmit pending data. */
25 #define SO_OOBINLINE 0x0100 /* Receive out-of-band data in-band. */
26 #if 0
27 To add: #define SO_REUSEPORT 0x0200 /* Allow local address and port reuse. */
28 #endif
30 #define SO_TYPE 0x1008 /* Compatible name for SO_STYLE. */
31 #define SO_STYLE SO_TYPE /* Synonym */
32 #define SO_ERROR 0x1007 /* get error status and clear */
33 #define SO_SNDBUF 0x1001 /* Send buffer size. */
34 #define SO_RCVBUF 0x1002 /* Receive buffer. */
35 #define SO_SNDLOWAT 0x1003 /* send low-water mark */
36 #define SO_RCVLOWAT 0x1004 /* receive low-water mark */
37 #define SO_SNDTIMEO 0x1005 /* send timeout */
38 #define SO_RCVTIMEO 0x1006 /* receive timeout */
40 /* linux-specific, might as well be the same as on i386 */
41 #define SO_NO_CHECK 11
42 #define SO_PRIORITY 12
43 #define SO_BSDCOMPAT 14
45 #define SO_PASSCRED 17
46 #define SO_PEERCRED 18
48 /* Security levels - as per NRL IPv6 - don't actually do anything */
49 #define SO_SECURITY_AUTHENTICATION 22
50 #define SO_SECURITY_ENCRYPTION_TRANSPORT 23
51 #define SO_SECURITY_ENCRYPTION_NETWORK 24
53 #define SO_BINDTODEVICE 25
55 /* Socket filtering */
56 #define SO_ATTACH_FILTER 26
57 #define SO_DETACH_FILTER 27
59 /* Types of sockets. */
60 #define SOCK_DGRAM 1 /* Connectionless, unreliable datagrams
61 of fixed maximum length. */
62 #define SOCK_STREAM 2 /* Sequenced, reliable, connection-based
63 byte streams. */
64 #define SOCK_RAW 3 /* Raw protocol interface. */
65 #define SOCK_RDM 4 /* Reliably-delivered messages. */
66 #define SOCK_SEQPACKET 5 /* Sequenced, reliable, connection-based,
67 datagrams of fixed maximum length. */
68 #define SOCK_PACKET 10 /* Linux specific way of getting packets at
69 the dev level. For writing rarp and
70 other similar things on the user level. */
72 #endif /* __ASM_MIPS_SOCKET_H */