projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5db95e1
)
-initialize udp header...
author
Christian Grothoff
<christian@grothoff.org>
Wed, 22 Feb 2012 10:41:04 +0000
(10:41 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Wed, 22 Feb 2012 10:41:04 +0000
(10:41 +0000)
src/tun/test_tun.c
patch
|
blob
|
history
diff --git
a/src/tun/test_tun.c
b/src/tun/test_tun.c
index 91173c628506c3888af38349529894c4f1149b32..5b124a52ca61f204ae943c38a10bf16867fb7194 100644
(file)
--- 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,
3079
9);
- test_udp (4, 1,
3182
7);
- test_udp (7, 17,
14879
);
+ test_udp (4, 3,
2243
9);
+ test_udp (4, 1,
2346
7);
+ test_udp (7, 17,
6516
);
return ret;
}