(no commit message)
[oweals/gnunet.git] / src / transport / gnunet-nat-server.c
index 9bef4dbc80a67694a69e4b143642fdcc95a7c21a..13a54058b71f46358fc6d9977119e5ff28db232f 100644 (file)
@@ -60,7 +60,7 @@
 /**
  * Must match IP given in the client.
  */
-#define DUMMY_IP "1.2.3.4"
+#define DUMMY_IP "192.0.2.86"
 
 #define VERBOSE 0
 
@@ -234,7 +234,7 @@ process_icmp_response ()
   off += sizeof (ip_pkt);
   memcpy (&icmp_pkt, &buf[off], sizeof (icmp_pkt));
   off += sizeof (icmp_pkt);
-  if ( (ip_pkt.proto != IPPROTO_ICMP) ||
+  if ( ((ip_pkt.proto != IPPROTO_ICMP) && (ip_pkt.proto != IPPROTO_UDP)) ||
        (icmp_pkt.type != ICMP_TIME_EXCEEDED) || 
        (icmp_pkt.code != 0) )
     {