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:
317d91e
)
no in_addr_t on W32
author
Christian Grothoff
<christian@grothoff.org>
Sat, 5 Nov 2011 14:40:13 +0000
(14:40 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Sat, 5 Nov 2011 14:40:13 +0000
(14:40 +0000)
src/nat/nat.c
patch
|
blob
|
history
diff --git
a/src/nat/nat.c
b/src/nat/nat.c
index 802b241e4b97f02f8a07957834eefee7baefb671..0a1f4c4b5fe47f2a370a0f60930bac6ef34bda71 100644
(file)
--- a/
src/nat/nat.c
+++ b/
src/nat/nat.c
@@
-649,7
+649,7
@@
process_interfaces (void *cls, const char *name, int isDefault,
ip = &s4->sin_addr;
/* Check if address is in 127.0.0.0/8 */
- uint32_t address = ntohl ((
in_addr_t)
(s4->sin_addr.s_addr));
+ uint32_t address = ntohl ((
uint32_t)
(s4->sin_addr.s_addr));
uint32_t value = (address & 0xFF000000) ^ 0x7F000000;
if ((h->return_localaddress == GNUNET_NO) && (value == 0))