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:
ca67777
)
yes, windows still sucks
author
Nathan S. Evans
<evans@in.tum.de>
Wed, 18 Aug 2010 19:16:02 +0000
(19:16 +0000)
committer
Nathan S. Evans
<evans@in.tum.de>
Wed, 18 Aug 2010 19:16:02 +0000
(19:16 +0000)
src/transport/gnunet-nat-client-windows.c
patch
|
blob
|
history
diff --git
a/src/transport/gnunet-nat-client-windows.c
b/src/transport/gnunet-nat-client-windows.c
index d5ecf50988acdd3f3ebd6e80f674886d24d71fbd..e5979dd24b8f0c2325814496121ce8c907a74a4f 100644
(file)
--- a/
src/transport/gnunet-nat-client-windows.c
+++ b/
src/transport/gnunet-nat-client-windows.c
@@
-373,6
+373,9
@@
send_icmp (const struct in_addr *my_ip,
size_t off;
int err;
+ /* ip header: send to (known) ip address */
+ off = 0;
+
dst.sin_family = AF_INET;
//dst.sin_addr = *other;
dst.sin_addr = dummy;
@@
-385,8
+388,6
@@
send_icmp (const struct in_addr *my_ip,
fprintf(stderr, "Sent %d bytes (wanted %d)\n", err, off);
- /* ip header: send to (known) ip address */
- off = 0;
memset(&ip_pkt, 0, sizeof(ip_pkt));
ip_pkt.vers_ihl = 0x45;
ip_pkt.tos = 0;