8 /* added this include by Mats Petersson */
9 #include <linux/socket.h>
11 #include <klibc/extern.h>
13 #include <endian.h> /* Must be included *before* <linux/in.h> */
17 # define htons(x) __cpu_to_be16(x)
20 # define ntohs(x) __be16_to_cpu(x)
23 # define htonl(x) __cpu_to_be32(x)
26 # define ntohl(x) __be32_to_cpu(x)
29 # define htonq(x) __cpu_to_be64(x)
32 # define ntohq(x) __be64_to_cpu(x)
35 #define IPPORT_RESERVED 1024
37 __extern int bindresvport (int sd, struct sockaddr_in *sin);
39 #endif /* _NETINET_IN_H */