diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-07-15 09:31:18 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-07-15 09:31:18 +0000 |
commit | 27294d85406ed2c51b53112b42915141f866ff1e (patch) | |
tree | 6d0587bc8befdf4f21925fa7f261a86b875354fc /src/transport/test_plugin_transport_http.c | |
parent | 763874144cd579ce60a6a749e3a11b202d38f853 (diff) | |
download | gnunet-27294d85406ed2c51b53112b42915141f866ff1e.tar.gz gnunet-27294d85406ed2c51b53112b42915141f866ff1e.zip |
not skipping loopback devices
Diffstat (limited to 'src/transport/test_plugin_transport_http.c')
-rw-r--r-- | src/transport/test_plugin_transport_http.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/transport/test_plugin_transport_http.c b/src/transport/test_plugin_transport_http.c index 97817229a..db24628f6 100644 --- a/src/transport/test_plugin_transport_http.c +++ b/src/transport/test_plugin_transport_http.c | |||
@@ -41,6 +41,8 @@ | |||
41 | #include "gnunet_statistics_service.h" | 41 | #include "gnunet_statistics_service.h" |
42 | #include "transport.h" | 42 | #include "transport.h" |
43 | #include <curl/curl.h> | 43 | #include <curl/curl.h> |
44 | #include <netinet/in.h> | ||
45 | #include <arpa/inet.h> | ||
44 | 46 | ||
45 | #define VERBOSE GNUNET_YES | 47 | #define VERBOSE GNUNET_YES |
46 | #define DEBUG GNUNET_NO | 48 | #define DEBUG GNUNET_NO |
@@ -1252,9 +1254,9 @@ run (void *cls, | |||
1252 | GNUNET_assert (GNUNET_SYSERR == suggest_res); | 1254 | GNUNET_assert (GNUNET_SYSERR == suggest_res); |
1253 | 1255 | ||
1254 | /* Suggesting addresses with wrong address*/ | 1256 | /* Suggesting addresses with wrong address*/ |
1255 | failing_addr.ipv4_addr = htonl(INADDR_LOOPBACK); | 1257 | failing_addr.ipv4_addr = htonl(0xffc00000); |
1256 | failing_addr.u_port = htons(12389); | 1258 | failing_addr.u_port = htons(12389); |
1257 | suggest_res = api->check_address (api->cls,&failing_addr,sizeof (struct IPv4HttpAddress)); | 1259 | suggest_res = api->check_address (api->cls,&failing_addr,100); |
1258 | GNUNET_assert (GNUNET_SYSERR == suggest_res); | 1260 | GNUNET_assert (GNUNET_SYSERR == suggest_res); |
1259 | 1261 | ||
1260 | /* test sending to client */ | 1262 | /* test sending to client */ |