diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-02-27 15:24:26 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-02-27 15:24:26 +0000 |
commit | 1b4e1f7577f04263bb959874c5ddc1ef1a9f1769 (patch) | |
tree | 6473912c77b32b92a0f19254776526353febb654 /src/transport/test_transport_api_limited_sockets.c | |
parent | 1ba0b6ccf604b30da51c7feba659b19d955e8b72 (diff) | |
download | gnunet-1b4e1f7577f04263bb959874c5ddc1ef1a9f1769.tar.gz gnunet-1b4e1f7577f04263bb959874c5ddc1ef1a9f1769.zip |
- removing old nat server code
Diffstat (limited to 'src/transport/test_transport_api_limited_sockets.c')
-rw-r--r-- | src/transport/test_transport_api_limited_sockets.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/transport/test_transport_api_limited_sockets.c b/src/transport/test_transport_api_limited_sockets.c index 015c28c16..8b8cdc07a 100644 --- a/src/transport/test_transport_api_limited_sockets.c +++ b/src/transport/test_transport_api_limited_sockets.c | |||
@@ -304,7 +304,6 @@ int | |||
304 | main (int argc, char *argv[]) | 304 | main (int argc, char *argv[]) |
305 | { | 305 | { |
306 | int ret = 0; | 306 | int ret = 0; |
307 | int nat_res; | ||
308 | 307 | ||
309 | test_plugin = NULL; | 308 | test_plugin = NULL; |
310 | 309 | ||
@@ -321,25 +320,6 @@ main (int argc, char *argv[]) | |||
321 | #endif | 320 | #endif |
322 | NULL); | 321 | NULL); |
323 | 322 | ||
324 | if ((test_plugin != NULL) && | ||
325 | ((strcmp (test_plugin, "tcp_nat") == 0) || | ||
326 | (strcmp (test_plugin, "udp_nat") == 0))) | ||
327 | { | ||
328 | nat_res = GNUNET_OS_check_helper_binary ("gnunet-nat-server"); | ||
329 | if (GNUNET_NO == nat_res) | ||
330 | { | ||
331 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Cannot run NAT test: `%s' %s \n", | ||
332 | "gnunet-nat-server", "SUID not set"); | ||
333 | return 0; | ||
334 | } | ||
335 | if (GNUNET_SYSERR == nat_res) | ||
336 | { | ||
337 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Cannot run NAT test: `%s' %s \n", | ||
338 | "gnunet-nat-server", "file not found"); | ||
339 | return 0; | ||
340 | } | ||
341 | } | ||
342 | |||
343 | #if !HAVE_SETRLIMIT | 323 | #if !HAVE_SETRLIMIT |
344 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Cannot run test on this system\n"); | 324 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Cannot run test on this system\n"); |
345 | 325 | ||