|
|
@ -19,12 +19,8 @@ |
|
|
|
#ifndef crypto777_inet_h |
|
|
|
#define crypto777_inet_h |
|
|
|
#include "OS_portable.h" |
|
|
|
//#include <in.h>
|
|
|
|
|
|
|
|
#ifdef _WIN32 |
|
|
|
//#include <windows.h>
|
|
|
|
//#include <io.h>
|
|
|
|
//#include <winsock2.h>
|
|
|
|
#define in6_addr sockaddr |
|
|
|
#define in_addr_t struct sockaddr_storage |
|
|
|
#define EAFNOSUPPORT WSAEAFNOSUPPORT |
|
|
@ -37,7 +33,9 @@ struct sockaddr_in6 { |
|
|
|
u_long sin6_scope_id; |
|
|
|
}; |
|
|
|
#endif |
|
|
|
#ifndef AF_INET6 |
|
|
|
#define AF_INET6 23 |
|
|
|
#endif |
|
|
|
static int inet_ntop4(unsigned char *src, char *dst, size_t size); |
|
|
|
static int inet_ntop6(unsigned char *src, char *dst, size_t size); |
|
|
|
static int inet_pton4(char *src, unsigned char *dst); |
|
|
|