-adding missing break statements
[oweals/gnunet.git] / src / tun / test_tun.c
index 5b124a52ca61f204ae943c38a10bf16867fb7194..71737d8f04bd7375b0484da74011cb0faf619ea0 100644 (file)
@@ -39,8 +39,8 @@ test_udp (size_t pll,
   struct in_addr src;
   struct in_addr dst;
 
-  inet_pton (AF_INET, "1.2.3.4", &src);
-  inet_pton (AF_INET, "122.2.3.5", &dst);
+  GNUNET_assert (1 == inet_pton (AF_INET, "1.2.3.4", &src));
+  GNUNET_assert (1 == inet_pton (AF_INET, "122.2.3.5", &dst));
   memset (payload, pl_fill, sizeof (payload));
   GNUNET_TUN_initialize_ipv4_header (&ip,
                                     IPPROTO_UDP,
@@ -56,7 +56,7 @@ test_udp (size_t pll,
                                      pll);
   if (crc != ntohs (udp.crc))
   {
-    fprintf (stderr, "Got CRC: %u, wanted: %u\n", 
+    fprintf (stderr, "Got CRC: %u, wanted: %u\n",
             ntohs (udp.crc),
             crc);
     ret = 1;
@@ -69,5 +69,6 @@ int main (int argc,
   test_udp (4, 3, 22439);
   test_udp (4, 1, 23467);
   test_udp (7, 17, 6516);
+  test_udp (12451, 251, 42771);
   return ret;
 }