diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-02-22 10:41:04 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-02-22 10:41:04 +0000 |
commit | 7f402e3e7e02b863706dbec396cdbed2ef008116 (patch) | |
tree | 14e5c344df365ef48e81fc044322d26eeb70db71 /src/tun | |
parent | 5db95e117a3b51fcbbec805e67052b66939efcbd (diff) | |
download | gnunet-7f402e3e7e02b863706dbec396cdbed2ef008116.tar.gz gnunet-7f402e3e7e02b863706dbec396cdbed2ef008116.zip |
-initialize udp header...
Diffstat (limited to 'src/tun')
-rw-r--r-- | src/tun/test_tun.c | 9 |
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, | |||
63 | int main (int argc, | 66 | int 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 | } |