3 #include <netinet/in.h>
6 static inline uint32_t htonl(uint32_t hostlong)
8 return __builtin_bswap32(hostlong);
11 static inline uint16_t htons(uint16_t hostshort)
13 return __builtin_bswap16(hostshort);
16 static inline uint32_t ntohl(uint32_t netlong)
18 return __builtin_bswap32(netlong);
21 static inline uint16_t ntohs(uint16_t netshort)
23 return __builtin_bswap16(netshort);
30 in_addr_t inet_addr(
const char *cp);
31 int inet_aton(
const char *cp,
struct in_addr *inp);
32 char* inet_ntoa(
struct in_addr in);
34 const char *inet_ntop(
int af,
const void * src,
char * dst, socklen_t size);
35 int inet_pton(
int af,
const char * src,
void * dst);