Subversion Repositories Kolibri OS

Rev

Rev 4208 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4208 Rev 5842
Line 9... Line 9...
9
; IP protocols
9
; IP protocols
10
IPPROTO_IP      = 0
10
IPPROTO_IP      = 0
11
IPPROTO_ICMP    = 1
11
IPPROTO_ICMP    = 1
12
IPPROTO_TCP     = 6
12
IPPROTO_TCP     = 6
13
IPPROTO_UDP     = 17
13
IPPROTO_UDP     = 17
-
 
14
IPPROTO_RAW     = 255
-
 
15
 
-
 
16
; IP options
-
 
17
IP_TTL          = 2
Line 14... Line 18...
14
 
18
 
15
; Address families
19
; Address families
16
AF_UNSPEC       = 0
20
AF_UNSPEC       = 0
17
AF_LOCAL        = 1
21
AF_LOCAL        = 1
18
AF_INET4        = 2     ; IPv4
22
AF_INET4        = 2     ; IPv4
Line 19... Line 23...
19
AF_INET6        = 28    ; IPv6 (not supported yet)
23
AF_INET6        = 28    ; IPv6
20
 
24
 
21
PF_UNSPEC       = AF_UNSPEC
25
PF_UNSPEC       = AF_UNSPEC
22
PF_LOCAL        = AF_LOCAL
26
PF_LOCAL        = AF_LOCAL
Line 44... Line 48...
44
 
48
 
45
; Socket flags for user calls
49
; Socket flags for user calls
46
MSG_PEEK                = 0x02
50
MSG_PEEK        = 0x02
Line -... Line 51...
-
 
51
MSG_DONTWAIT    = 0x40
-
 
52
 
-
 
53
; Socket levels
-
 
54
SOL_SOCKET      = 0xffff
-
 
55
 
-
 
56
; Socket options
47
MSG_DONTWAIT            = 0x40
57
SO_BINDTODEVICE = 1 shl 9
48
 
58
 
49
struct sockaddr_in
59
struct sockaddr_in
50
        sin_family      dw      ?       ; sa_family_t
60
        sin_family      dw      ?       ; sa_family_t
51
        sin_port        dw      ?       ; in_port_t
61
        sin_port        dw      ?       ; in_port_t