diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-04 14:00:32 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-04 14:00:32 +0000 |
commit | 83b19539f4d322b43683f5838b72e9ec2c8e6073 (patch) | |
tree | d0ab9329fcbefe360d9d14e2ace21a6b3396dfe9 /src/nat/nat.c | |
parent | 28a2eb43281a1f08a67954f07beb9af3a9bc9a35 (diff) | |
download | gnunet-83b19539f4d322b43683f5838b72e9ec2c8e6073.tar.gz gnunet-83b19539f4d322b43683f5838b72e9ec2c8e6073.zip |
curly wars / auto-indentation
Diffstat (limited to 'src/nat/nat.c')
-rw-r--r-- | src/nat/nat.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nat/nat.c b/src/nat/nat.c index 2040451d5..802b241e4 100644 --- a/src/nat/nat.c +++ b/src/nat/nat.c | |||
@@ -649,8 +649,9 @@ process_interfaces (void *cls, const char *name, int isDefault, | |||
649 | ip = &s4->sin_addr; | 649 | ip = &s4->sin_addr; |
650 | 650 | ||
651 | /* Check if address is in 127.0.0.0/8 */ | 651 | /* Check if address is in 127.0.0.0/8 */ |
652 | uint32_t address = ntohl((in_addr_t)(s4->sin_addr.s_addr)); | 652 | uint32_t address = ntohl ((in_addr_t) (s4->sin_addr.s_addr)); |
653 | uint32_t value = (address & 0xFF000000) ^ 0x7F000000; | 653 | uint32_t value = (address & 0xFF000000) ^ 0x7F000000; |
654 | |||
654 | if ((h->return_localaddress == GNUNET_NO) && (value == 0)) | 655 | if ((h->return_localaddress == GNUNET_NO) && (value == 0)) |
655 | { | 656 | { |
656 | return GNUNET_OK; | 657 | return GNUNET_OK; |
@@ -1139,7 +1140,8 @@ GNUNET_NAT_register (const struct GNUNET_CONFIGURATION_Handle *cfg, int is_tcp, | |||
1139 | h->use_localaddresses = | 1140 | h->use_localaddresses = |
1140 | GNUNET_CONFIGURATION_get_value_yesno (cfg, "nat", "USE_LOCALADDR"); | 1141 | GNUNET_CONFIGURATION_get_value_yesno (cfg, "nat", "USE_LOCALADDR"); |
1141 | h->return_localaddress = | 1142 | h->return_localaddress = |
1142 | GNUNET_CONFIGURATION_get_value_yesno (cfg, "nat", "RETURN_LOCAL_ADDRESSES"); | 1143 | GNUNET_CONFIGURATION_get_value_yesno (cfg, "nat", |
1144 | "RETURN_LOCAL_ADDRESSES"); | ||
1143 | 1145 | ||
1144 | h->use_hostname = | 1146 | h->use_hostname = |
1145 | GNUNET_CONFIGURATION_get_value_yesno (cfg, "nat", "USE_HOSTNAME"); | 1147 | GNUNET_CONFIGURATION_get_value_yesno (cfg, "nat", "USE_HOSTNAME"); |