Rev 1155 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1155 | Rev 3545 | ||
---|---|---|---|
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 |
|
- | 5 | ||
- | 6 | ; Socket options |
|
4 | SOCK_RAW = 3 ; not supported by the kernel |
7 | SO_NONBLOCK = 1 shl 31 |
Line 5... | Line 8... | ||
5 | 8 | ||
6 | ; IP protocols |
9 | ; IP protocols |
7 | IPPROTO_IP = 0 |
10 | IPPROTO_IP = 0 |
8 | IPPROTO_ICMP = 1 ; not supported by the kernel |
11 | IPPROTO_ICMP = 1 |
9 | IPPROTO_TCP = 6 |
12 | IPPROTO_TCP = 6 |
Line 10... | Line 13... | ||
10 | IPPROTO_UDP = 17 |
13 | IPPROTO_UDP = 17 |
11 | 14 | ||
- | 15 | ; Address families |
|
12 | ; Address families |
16 | AF_UNSPEC = 0 |
13 | AF_UNSPEC = 0 |
17 | AF_LOCAL = 1 |
Line 14... | Line 18... | ||
14 | AF_INET = 2 ; IPv4 |
18 | AF_INET4 = 2 ; IPv4 |
- | 19 | AF_INET6 = 28 ; IPv6 (not supported yet) |
|
15 | ;AF_INET6 = 28 ; IPv6 (not supported) |
20 | |
16 | 21 | PF_UNSPEC = AF_UNSPEC |
|
Line 17... | Line 22... | ||
17 | PF_UNSPEC = AF_UNSPEC |
22 | PF_LOCAL = AF_LOCAL |
18 | PF_INET = AF_INET |
23 | PF_INET4 = AF_INET4 |
19 | ;PF_INET6 = AF_INET6 |
24 | PF_INET6 = AF_INET6 |
20 | 25 | ||
Line 26... | Line 31... | ||
26 | AI_ADDRCONFIG = 0x400 |
31 | AI_ADDRCONFIG = 0x400 |
Line 27... | Line 32... | ||
27 | 32 | ||
28 | ; internal definition |
33 | ; internal definition |
Line -... | Line 34... | ||
- | 34 | AI_SUPPORTED = 0x40F |
|
- | 35 | ||
- | 36 | ; for system function 76 |
|
- | 37 | API_ETH = 0 shl 16 |
|
- | 38 | API_IPv4 = 1 shl 16 |
|
- | 39 | API_ICMP = 2 shl 16 |
|
- | 40 | API_UDP = 3 shl 16 |
|
- | 41 | API_TCP = 4 shl 16 |
|
- | 42 | API_ARP = 5 shl 16 |
|
29 | AI_SUPPORTED = 0x40F |
43 | API_PPPOE = 6 shl 16 |
30 | - | ||
31 | struct sockaddr_in |
44 | |
32 | sin_len db ? ; uint8_t |
45 | struct sockaddr_in |
33 | sin_family db ? ; sa_family_t |
46 | sin_family dw ? ; sa_family_t |
34 | sin_port dw ? ; in_port_t |
47 | sin_port dw ? ; in_port_t |
35 | sin_addr dd ? ; struct in_addr |
48 | sin_addr dd ? ; struct in_addr |
Line 57... | Line 70... | ||
57 | EAI_SERVICE = 9 |
70 | EAI_SERVICE = 9 |
58 | EAI_SOCKTYPE = 10 |
71 | EAI_SOCKTYPE = 10 |
59 | EAI_BADHINTS = 12 |
72 | EAI_BADHINTS = 12 |
60 | EAI_PROTOCOL = 13 |
73 | EAI_PROTOCOL = 13 |
61 | EAI_OVERFLOW = 14 |
74 | EAI_OVERFLOW = 14 |
- | 75 | ||
- | 76 | socket fix 75, 0 |
|
- | 77 | close fix 75, 1 |
|
- | 78 | bind fix 75, 2 |
|
- | 79 | listen fix 75, 3 |
|
- | 80 | connect fix 75, 4 |
|
- | 81 | accept fix 75, 5 |
|
- | 82 | send fix 75, 6 |
|
- | 83 | recv fix 75, 7 |
|
- | 84 | setsockopt fix 75, 8 |
|
- | 85 | getsockopt fix 75, 9 |
|
- | 86 | socketpair fix 75, 10 |
|
- | 87 | ||
- | 88 | ||
- | 89 | struct ARP_entry |
|
- | 90 | IP dd ? |
|
- | 91 | MAC dp ? |
|
- | 92 | status dw ? |
|
- | 93 | TTL dw ? |
|
- | 94 | ends |