From: Christian Grothoff Date: Wed, 22 Feb 2012 10:41:04 +0000 (+0000) Subject: -initialize udp header... X-Git-Tag: initial-import-from-subversion-38251~14745 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7f402e3e7e02b863706dbec396cdbed2ef008116;p=oweals%2Fgnunet.git -initialize udp header... --- 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; }