aboutsummaryrefslogtreecommitdiff
path: root/src/nat/nat_mini.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-07-08 15:53:42 +0000
committerChristian Grothoff <christian@grothoff.org>2011-07-08 15:53:42 +0000
commit492ab66080366e7b5508768784bc7beaa7270fc9 (patch)
tree51c1af538090b4e710b7bc16c7b459d7a5274379 /src/nat/nat_mini.c
parent25a6082f9f63a999b5ce35c7fe55908988c2486a (diff)
downloadgnunet-492ab66080366e7b5508768784bc7beaa7270fc9.tar.gz
gnunet-492ab66080366e7b5508768784bc7beaa7270fc9.zip
endian
Diffstat (limited to 'src/nat/nat_mini.c')
-rw-r--r--src/nat/nat_mini.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nat/nat_mini.c b/src/nat/nat_mini.c
index 38dcfcd1f..be8f63f66 100644
--- a/src/nat/nat_mini.c
+++ b/src/nat/nat_mini.c
@@ -450,6 +450,8 @@ process_unmap_output (void *cls,
450 450
451 if (NULL == line) 451 if (NULL == line)
452 { 452 {
453 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
454 "UPnP unmap done\n");
453 GNUNET_OS_command_stop (mini->unmap_cmd); 455 GNUNET_OS_command_stop (mini->unmap_cmd);
454 mini->unmap_cmd = NULL; 456 mini->unmap_cmd = NULL;
455 GNUNET_free (mini); 457 GNUNET_free (mini);
@@ -500,7 +502,10 @@ GNUNET_NAT_mini_map_stop (struct GNUNET_NAT_MiniHandle *mini)
500 often are the same, but it might... */ 502 often are the same, but it might... */
501 GNUNET_snprintf (pstr, sizeof (pstr), 503 GNUNET_snprintf (pstr, sizeof (pstr),
502 "%u", 504 "%u",
503 (unsigned int) mini->current_addr.sin_port); 505 (unsigned int) ntohs (mini->current_addr.sin_port));
506 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
507 "Unmapping port %u\n",
508 ntohs (mini->current_addr.sin_port));
504 mini->unmap_cmd = GNUNET_OS_command_run (&process_unmap_output, 509 mini->unmap_cmd = GNUNET_OS_command_run (&process_unmap_output,
505 mini, 510 mini,
506 UNMAP_TIMEOUT, 511 UNMAP_TIMEOUT,