9 #include <netinet/in.h>
11 uint32_t htonl(uint32_t);
12 uint16_t htons(uint16_t);
13 uint32_t ntohl(uint32_t);
14 uint16_t ntohs(uint16_t);
16 in_addr_t
inet_addr (const char *);
17 in_addr_t
inet_network (const char *);
18 char *inet_ntoa (struct in_addr
);
19 int inet_pton (int, const char *__restrict
, void *__restrict
);
20 const char *inet_ntop (int, const void *__restrict
, char *__restrict
, socklen_t
);
22 int inet_aton (const char *, struct in_addr
*);
23 struct in_addr
inet_makeaddr(in_addr_t
, in_addr_t
);
24 in_addr_t
inet_lnaof(struct in_addr
);
25 in_addr_t
inet_netof(struct in_addr
);
27 #undef INET_ADDRSTRLEN
28 #undef INET6_ADDRSTRLEN
29 #define INET_ADDRSTRLEN 16
30 #define INET6_ADDRSTRLEN 46