aboutsummaryrefslogtreecommitdiff
path: root/src/tun/test_tun.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tun/test_tun.c')
-rw-r--r--src/tun/test_tun.c9
1 files 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,
47 pll + sizeof (udp), 47 pll + sizeof (udp),
48 &src, 48 &src,
49 &dst); 49 &dst);
50 udp.source_port = htons (4242);
51 udp.destination_port = htons (4242);
52 udp.len = htons (pll);
50 GNUNET_TUN_calculate_udp4_checksum (&ip, 53 GNUNET_TUN_calculate_udp4_checksum (&ip,
51 &udp, 54 &udp,
52 payload, 55 payload,
@@ -63,8 +66,8 @@ test_udp (size_t pll,
63int main (int argc, 66int main (int argc,
64 char **argv) 67 char **argv)
65{ 68{
66 test_udp (4, 3, 30799); 69 test_udp (4, 3, 22439);
67 test_udp (4, 1, 31827); 70 test_udp (4, 1, 23467);
68 test_udp (7, 17, 14879); 71 test_udp (7, 17, 6516);
69 return ret; 72 return ret;
70} 73}