1    | /* on some machines the AF_INET6 definition is needed, on most systems not */
2    | #include <sys/socket.h>
3    | 
4    | #ifndef AF_INET6 
5    | #define AF_INET6        24              /* Internet Protocol version 6 */
6    | #endif
7    | 
8    | #ifndef _LINUX
9    | typedef uint32_t u_int32_t ;
10   | #endif
11   | 
12   | int inet_pton(int af, const char *src, void *dst);
13   | const char *inet_ntop(int af, const void *src, char *dst, size_t size);