- verboser log, faster start
[oweals/gnunet.git] / src / nat / nat_auto.c
index d1ca940a097a6059166df3427626d1a543f9d949..baa1cc78d9836c5b021a5c9e1e418cc76cbea364 100644 (file)
@@ -322,9 +322,9 @@ nipo (void *cls, const char *name, int isDefault, const struct sockaddr *addr,
   if (!isDefault)
     return GNUNET_OK;
   if ( (sizeof (struct sockaddr_in6) == addrlen) &&
-       (0 != memcmp (&in6addr_loopback, addr,
-                    addrlen)) &&
-       (! IN6_IS_ADDR_LINKLOCAL(addr)) )
+       (0 != memcmp (&in6addr_loopback, &((const struct sockaddr_in6 *) addr)->sin6_addr,
+                    sizeof (struct in6_addr))) &&
+       (! IN6_IS_ADDR_LINKLOCAL(&((const struct sockaddr_in6 *) addr)->sin6_addr)) )
   {
     ah->have_v6 = GNUNET_YES;
     GNUNET_log (GNUNET_ERROR_TYPE_INFO,