diff options
Diffstat (limited to 'src/nat/nat_mini.c')
-rw-r--r-- | src/nat/nat_mini.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nat/nat_mini.c b/src/nat/nat_mini.c index 1f5a83d2d..52a4e86b0 100644 --- a/src/nat/nat_mini.c +++ b/src/nat/nat_mini.c | |||
@@ -361,12 +361,12 @@ process_refresh_output (void *cls, const char *line) | |||
361 | } | 361 | } |
362 | /* | 362 | /* |
363 | * we're looking for output of the form: | 363 | * we're looking for output of the form: |
364 | * | 364 | * |
365 | * "0 TCP 3000->192.168.2.150:3000 'libminiupnpc' ''" | 365 | * "0 TCP 3000->192.168.2.150:3000 'libminiupnpc' ''" |
366 | * "1 UDP 3001->192.168.2.150:3001 'libminiupnpc' ''" | 366 | * "1 UDP 3001->192.168.2.150:3001 'libminiupnpc' ''" |
367 | * | 367 | * |
368 | * the pattern we look for is: | 368 | * the pattern we look for is: |
369 | * | 369 | * |
370 | * "%s TCP PORT->STRING:OURPORT *" or | 370 | * "%s TCP PORT->STRING:OURPORT *" or |
371 | * "%s UDP PORT->STRING:OURPORT *" | 371 | * "%s UDP PORT->STRING:OURPORT *" |
372 | */ | 372 | */ |
@@ -439,7 +439,7 @@ process_map_output (void *cls, const char *line) | |||
439 | } | 439 | } |
440 | /* | 440 | /* |
441 | * The upnpc output we're after looks like this: | 441 | * The upnpc output we're after looks like this: |
442 | * | 442 | * |
443 | * "external 87.123.42.204:3000 TCP is redirected to internal 192.168.2.150:3000" | 443 | * "external 87.123.42.204:3000 TCP is redirected to internal 192.168.2.150:3000" |
444 | */ | 444 | */ |
445 | if ((NULL == (ipaddr = strstr (line, " "))) || | 445 | if ((NULL == (ipaddr = strstr (line, " "))) || |
@@ -475,7 +475,7 @@ process_map_output (void *cls, const char *line) | |||
475 | * general-purpose 'GNUNET_NAT_register' code). However, it can be | 475 | * general-purpose 'GNUNET_NAT_register' code). However, it can be |
476 | * used if specifically UPnP-based NAT traversal is to be used or | 476 | * used if specifically UPnP-based NAT traversal is to be used or |
477 | * tested. | 477 | * tested. |
478 | * | 478 | * |
479 | * @param port port to map | 479 | * @param port port to map |
480 | * @param is_tcp GNUNET_YES to map TCP, GNUNET_NO for UDP | 480 | * @param is_tcp GNUNET_YES to map TCP, GNUNET_NO for UDP |
481 | * @param ac function to call with mapping result | 481 | * @param ac function to call with mapping result |
@@ -539,7 +539,7 @@ process_unmap_output (void *cls, const char *line) | |||
539 | * this function will give 'upnpc' 1s to remove tha mapping, | 539 | * this function will give 'upnpc' 1s to remove tha mapping, |
540 | * so while this function is non-blocking, a task will be | 540 | * so while this function is non-blocking, a task will be |
541 | * left with the scheduler for up to 1s past this call. | 541 | * left with the scheduler for up to 1s past this call. |
542 | * | 542 | * |
543 | * @param mini the handle | 543 | * @param mini the handle |
544 | */ | 544 | */ |
545 | void | 545 | void |