Subversion Repositories Kolibri OS

Rev

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

Rev 2364 Rev 2853
Line 1... Line 1...
1
; Socket types
1
; Socket types
2
SOCK_STREAM	= 1
2
SOCK_STREAM     = 1
3
SOCK_DGRAM	= 2
3
SOCK_DGRAM      = 2
4
SOCK_RAW	= 3	; not supported by the kernel
4
SOCK_RAW        = 3
Line 5... Line 5...
5
 
5
 
6
; IP protocols
6
; IP protocols
7
IPPROTO_IP	= 0
7
IPPROTO_IP      = 0
8
IPPROTO_ICMP	= 1	; not supported by the kernel
8
IPPROTO_ICMP    = 1
9
IPPROTO_TCP	= 6
9
IPPROTO_TCP     = 6
Line 10... Line 10...
10
IPPROTO_UDP	= 17
10
IPPROTO_UDP     = 17
11
 
11
 
12
; Address families
12
; Address families
13
AF_UNSPEC	= 0
13
AF_UNSPEC       = 0
14
AF_UNIX 	= 1
14
AF_LOCAL        = 1
Line 15... Line 15...
15
AF_INET4	= 2	; IPv4
15
AF_INET4        = 2     ; IPv4
16
;AF_INET6       = 28    ; IPv6 (not supported)
16
;AF_INET6        = 28    ; IPv6 (not supported yet)
17
 
17
 
18
PF_UNSPEC	= AF_UNSPEC
18
PF_UNSPEC       = AF_UNSPEC
Line 19... Line 19...
19
PF_UNIX 	= AF_UNIX
19
PF_LOCAL        = AF_LOCAL
20
PF_INET4	= AF_INET4
20
PF_INET4        = AF_INET4
Line 28... Line 28...
28
AI_ADDRCONFIG	= 0x400
28
AI_ADDRCONFIG   = 0x400
Line 29... Line 29...
29
 
29
 
30
; internal definition
30
; internal definition
Line -... Line 31...
-
 
31
AI_SUPPORTED    = 0x40F
-
 
32
 
-
 
33
; for system function 76
-
 
34
API_ETH         = 0 shl 16
-
 
35
API_IPv4        = 1 shl 16
-
 
36
API_ICMP        = 2 shl 16
-
 
37
API_UDP         = 3 shl 16
-
 
38
API_TCP         = 4 shl 16
-
 
39
API_ARP         = 5 shl 16
31
AI_SUPPORTED	= 0x40F
40
API_PPPOE       = 6 shl 16
32
 
41
 
33
struct sockaddr_in
42
struct sockaddr_in
34
	sin_family	dw	?	; sa_family_t
43
        sin_family      dw      ?       ; sa_family_t
35
	sin_port	dw	?	; in_port_t
44
        sin_port        dw      ?       ; in_port_t
Line 67... Line 76...
67
listen		fix 75, 3
76
listen          fix 75, 3
68
connect 	fix 75, 4
77
connect         fix 75, 4
69
accept		fix 75, 5
78
accept          fix 75, 5
70
send		fix 75, 6
79
send            fix 75, 6
71
recv		fix 75, 7
80
recv            fix 75, 7
-
 
81
setsockopt      fix 75, 8
-
 
82
getsockopt      fix 75, 9
-
 
83
 
Line -... Line 84...
-
 
84
 
-
 
85
 
-
 
86
struct  ARP_entry
-
 
87
        IP      dd ?
-
 
88
        MAC     dp ?
-
 
89
        status  dw ?
-
 
90
        TTL     dw ?