1
2 #ifndef _ASM_SOCKET_H
3 #define _ASM_SOCKET_H
4
5
6 #define FIOSETOWN 0x8901
7 #define SIOCSPGRP 0x8902
8 #define FIOGETOWN 0x8903
9 #define SIOCGPGRP 0x8904
10 #define SIOCATMARK 0x8905
11 #define SIOCGSTAMP 0x8906
12
13
14 #define SOL_SOCKET 0xffff
15
16 #define SO_DEBUG 0x0001
17 #define SO_REUSEADDR 0x0004
18 #define SO_KEEPALIVE 0x0008
19 #define SO_DONTROUTE 0x0010
20 #define SO_BROADCAST 0x0020
21 #define SO_LINGER 0x0080
22 #define SO_OOBINLINE 0x0100
23
24 #define SO_BSDCOMPAT 0x0400
25
26
27 #define SO_DONTLINGER (~SO_LINGER)
28
29 #define SO_SNDBUF 0x1001
30 #define SO_RCVBUF 0x1002
31 #define SO_ERROR 0x1007
32 #define SO_TYPE 0x1008
33
34
35 #define SO_NO_CHECK 0x000b
36 #define SO_PRIORITY 0x000c
37
38 #endif