diff options
author | Nathan S. Evans <evans@in.tum.de> | 2011-01-12 16:41:54 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2011-01-12 16:41:54 +0000 |
commit | 4704ec77ff485e876ddbde73a7df755d061465eb (patch) | |
tree | c2eed7346292b83f6561273c9b9862d3d278f5e2 /src/nat | |
parent | 02bec4889c79f4edcb1ce216c7ad52c4b663de32 (diff) | |
download | gnunet-4704ec77ff485e876ddbde73a7df755d061465eb.tar.gz gnunet-4704ec77ff485e876ddbde73a7df755d061465eb.zip |
make really loud unable to communicate with peerinfo messages go away
Diffstat (limited to 'src/nat')
-rw-r--r-- | src/nat/upnp-discover.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nat/upnp-discover.c b/src/nat/upnp-discover.c index 654be490e..2e609d790 100644 --- a/src/nat/upnp-discover.c +++ b/src/nat/upnp-discover.c | |||
@@ -22,7 +22,7 @@ | |||
22 | * Code in this file is originally based on the miniupnp library. | 22 | * Code in this file is originally based on the miniupnp library. |
23 | * Copyright (c) 2005-2009, Thomas BERNARD. All rights reserved. | 23 | * Copyright (c) 2005-2009, Thomas BERNARD. All rights reserved. |
24 | * | 24 | * |
25 | * Original licence: | 25 | * Original license: |
26 | * | 26 | * |
27 | * Redistribution and use in source and binary forms, with or without | 27 | * Redistribution and use in source and binary forms, with or without |
28 | * modification, are permitted provided that the following conditions are met: | 28 | * modification, are permitted provided that the following conditions are met: |
@@ -70,7 +70,7 @@ | |||
70 | #define DESCRIPTION_BUFSIZE 2048 | 70 | #define DESCRIPTION_BUFSIZE 2048 |
71 | #define CURL_EASY_SETOPT(c, a, b) do { ret = curl_easy_setopt(c, a, b); if (ret != CURLE_OK) GNUNET_log(GNUNET_ERROR_TYPE_WARNING, _("%s failed at %s:%d: `%s'\n"), "curl_easy_setopt", __FILE__, __LINE__, curl_easy_strerror(ret)); } while (0) | 71 | #define CURL_EASY_SETOPT(c, a, b) do { ret = curl_easy_setopt(c, a, b); if (ret != CURLE_OK) GNUNET_log(GNUNET_ERROR_TYPE_WARNING, _("%s failed at %s:%d: `%s'\n"), "curl_easy_setopt", __FILE__, __LINE__, curl_easy_strerror(ret)); } while (0) |
72 | #define PRINT_SOCKET_ERROR(a) GNUNET_log_from(GNUNET_ERROR_TYPE_WARNING, "UPnP", _("%s failed at %s:%d: '%s'\n"), a, __FILE__, __LINE__, strerror (errno)); | 72 | #define PRINT_SOCKET_ERROR(a) GNUNET_log_from(GNUNET_ERROR_TYPE_WARNING, "UPnP", _("%s failed at %s:%d: '%s'\n"), a, __FILE__, __LINE__, strerror (errno)); |
73 | 73 | #define PRINT_SOCKET_ERROR_STR(a, b) GNUNET_log_from(GNUNET_ERROR_TYPE_WARNING, "UPnP", _("%s failed at %s:%d: '%s' on `%s'\n"), a, __FILE__, __LINE__, strerror (errno), b); | |
74 | 74 | ||
75 | /** | 75 | /** |
76 | * Callback function called when download is finished. | 76 | * Callback function called when download is finished. |
@@ -1204,7 +1204,7 @@ UPNP_discover_ (const char *multicastif, | |||
1204 | if_index = 0; | 1204 | if_index = 0; |
1205 | #endif | 1205 | #endif |
1206 | if (!if_index) | 1206 | if (!if_index) |
1207 | PRINT_SOCKET_ERROR ("if_nametoindex"); | 1207 | PRINT_SOCKET_ERROR_STR ("if_nametoindex", multicastif); |
1208 | 1208 | ||
1209 | if (GNUNET_NETWORK_socket_setsockopt | 1209 | if (GNUNET_NETWORK_socket_setsockopt |
1210 | (sudp, IPPROTO_IPV6, IPV6_MULTICAST_IF, &if_index, | 1210 | (sudp, IPPROTO_IPV6, IPV6_MULTICAST_IF, &if_index, |