static int
get_traversal_status (const struct GNUNET_NAT_Handle *h)
{
- return MAX (h->natpmp_status, h->upnp_status);
+ return GNUNET_MAX (h->natpmp_status, h->upnp_status);
}
if (!p2 || (p2 > p3))
{
- strncpy (hostname, p1, MIN (MAX_HOSTNAME_LEN, (int) (p3 - p1)));
+ strncpy (hostname, p1, GNUNET_MIN (MAX_HOSTNAME_LEN, (int) (p3 - p1)));
*port = 80;
}
else
{
- strncpy (hostname, p1, MIN (MAX_HOSTNAME_LEN, (int) (p2 - p1)));
+ strncpy (hostname, p1, GNUNET_MIN (MAX_HOSTNAME_LEN, (int) (p2 - p1)));
*port = 0;
p2++;
{
if (multicastif)
{
+#ifndef MINGW
if_index = if_nametoindex (multicastif);
+#else
+ // FIXME
+ if_index = 0;
+#endif
if (!if_index)
PRINT_SOCKET_ERROR ("if_nametoindex");
}
/* Try IPv4 and IPv6 as we don't know what's the format */
+#ifndef MINGW
if (inet_aton (ext_addr, &addr) != 0)
+#else
+ addr.S_un.S_addr = inet_addr(ext_addr);
+ if (addr.S_un.S_addr == INADDR_NONE)
+#endif
{
handle->ext_addr = GNUNET_malloc (sizeof (struct sockaddr_in));
handle->ext_addr->sa_family = AF_INET;