#if P2MP
#if P2MP_SERVER
+/*
+ * Get tun/tap/null device type
+ */
+ const int dev = dev_type_enum (o->dev, o->dev_type);
+ const int topology = o->topology;
+
/*
*
* HELPER DIRECTIVE for IPv6
* push "route-gateway 10.8.0.1"
*/
- /*
- * Get tun/tap/null device type
- */
- const int dev = dev_type_enum (o->dev, o->dev_type);
- const int topology = o->topology;
-
if (o->server_defined)
{
int netbits = -2;
* inet_ntop() and inet_pton() wrap-implementations using
* WSAAddressToString() and WSAStringToAddress() functions
*/
+
+#ifndef _MSC_VER
const char *
inet_ntop(int af, const void *src, char *dst, socklen_t size)
{
return 0;
}
+#endif
+
int
socket_recv_queue (struct link_socket *sock, int maxsize)
{
#define inline __inline
/* type to use in place of socklen_t if not defined */
-#define socklen_t unsigned int
+/*#define socklen_t unsigned int*/
#ifndef __MINGW32__
/* 32-bit unsigned type */
/* call self in a subprocess */
void fork_to_self (const char *cmdline);
+#ifndef _MSV_VER
const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
int inet_pton(int af, const char *src, void *st);
+#endif
/* Find temporary directory */
const char *win_get_tempdir();