From 7f402e3e7e02b863706dbec396cdbed2ef008116 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 22 Feb 2012 10:41:04 +0000 Subject: [PATCH] -initialize udp header... --- src/tun/test_tun.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/tun/test_tun.c b/src/tun/test_tun.c index 91173c628..5b124a52c 100644 --- a/src/tun/test_tun.c +++ b/src/tun/test_tun.c @@ -47,6 +47,9 @@ test_udp (size_t pll, pll + sizeof (udp), &src, &dst); + udp.source_port = htons (4242); + udp.destination_port = htons (4242); + udp.len = htons (pll); GNUNET_TUN_calculate_udp4_checksum (&ip, &udp, payload, @@ -63,8 +66,8 @@ test_udp (size_t pll, int main (int argc, char **argv) { - test_udp (4, 3, 30799); - test_udp (4, 1, 31827); - test_udp (7, 17, 14879); + test_udp (4, 3, 22439); + test_udp (4, 1, 23467); + test_udp (7, 17, 6516); return ret; } -- 2.25.1