Rev 4249 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4249 | Rev 4257 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | #define SOCK_STREAM 1 |
25 | #define SOCK_STREAM 1 |
26 | #define SOCK_DGRAM 2 |
26 | #define SOCK_DGRAM 2 |
27 | #define SOCK_RAW 3 |
27 | #define SOCK_RAW 3 |
Line 28... | Line 28... | ||
28 | 28 | ||
29 | // Socket options |
29 | // Socket options |
Line 30... | Line 30... | ||
30 | #define SO_NONBLOCK ((long)(1)) |
30 | #define SO_NONBLOCK 1 << 31 |
31 | 31 | ||
32 | // IP protocols |
32 | // IP protocols |
33 | #define IPPROTO_IP 0 |
33 | #define IPPROTO_IP 0 |
Line 55... | Line 55... | ||
55 | 55 | ||
56 | // Internal definition |
56 | // Internal definition |
Line 57... | Line 57... | ||
57 | #define AI_SUPPORTED 0x40F |
57 | #define AI_SUPPORTED 0x40F |
58 | 58 | ||
59 | // For system function 76 |
59 | // For system function 76 |
60 | #define API_ETH ((int)(0)) |
60 | #define API_ETH 0 << 16 |
61 | #define API_IPv4 ((int)(1)) |
61 | #define API_IPv4 1 << 16 |
62 | #define API_ICMP ((int)(2)) |
62 | #define API_ICMP 2 << 16 |
63 | #define API_UDP ((int)(3)) |
63 | #define API_UDP 3 << 16 |
64 | #define API_TCP ((int)(4)) |
64 | #define API_TCP 4 << 16 |
Line 65... | Line 65... | ||
65 | #define API_ARP ((int)(5)) |
65 | #define API_ARP 5 << 16 |
66 | #define API_PPPOE ((int)(6)) |
66 | #define API_PPPOE 6 << 16 |
67 | 67 |