stuff
authorChristian Grothoff <christian@grothoff.org>
Sat, 21 Aug 2010 21:54:02 +0000 (21:54 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 21 Aug 2010 21:54:02 +0000 (21:54 +0000)
src/transport/gnunet-nat-server.c

index 5fac0cc73f38078bd53c222b9189ae31c9eaca06..f9aceddc84bb3ce0f767d3d974c64d21e0a99c2f 100644 (file)
@@ -401,7 +401,7 @@ process_icmp_response ()
       memcpy (&icmp_echo_pkt,
              &buf[off],
              sizeof (struct icmp_echo_header));
-      port = (uint16_t) htonl (icmp_echo_pkt.reserved);
+      port = (uint16_t)  ntohl (icmp_echo_pkt.reserved);
       break;
     case IPPROTO_UDP:
       if (have != (sizeof (struct ip_header) * 2 +