diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-11-30 07:31:09 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-11-30 07:31:09 +0100 |
commit | 1b4333f3a6a4f76aa76fc3abc21e8476ea0a92e3 (patch) | |
tree | 86bbecfcd30d250ab5a123c793595f8ff6ff33b1 /src/nat/nat_api.c | |
parent | 27068700bceca89cd940816a7b5cd03933d3cc0b (diff) | |
download | gnunet-1b4333f3a6a4f76aa76fc3abc21e8476ea0a92e3.tar.gz gnunet-1b4333f3a6a4f76aa76fc3abc21e8476ea0a92e3.zip |
towards moving STUN logic into new NAT service
Diffstat (limited to 'src/nat/nat_api.c')
-rw-r--r-- | src/nat/nat_api.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nat/nat_api.c b/src/nat/nat_api.c index 421befab3..4c324376b 100644 --- a/src/nat/nat_api.c +++ b/src/nat/nat_api.c | |||
@@ -544,15 +544,15 @@ test_stun_packet (const void *data, | |||
544 | * Handle an incoming STUN message. This function is useful as | 544 | * Handle an incoming STUN message. This function is useful as |
545 | * some GNUnet service may be listening on a UDP port and might | 545 | * some GNUnet service may be listening on a UDP port and might |
546 | * thus receive STUN messages while trying to receive other data. | 546 | * thus receive STUN messages while trying to receive other data. |
547 | * In this case, this function can be used to act as a proper | 547 | * In this case, this function can be used to process replies |
548 | * STUN server (if desired). | 548 | * to STUN requests. |
549 | * | 549 | * |
550 | * The function does some basic sanity checks on packet size and | 550 | * The function does some basic sanity checks on packet size and |
551 | * content, try to extract a bit of information, and possibly replies | 551 | * content, try to extract a bit of information. |
552 | * if this is an actual STUN message. | ||
553 | * | 552 | * |
554 | * At the moment this only processes BIND requests, and returns the | 553 | * At the moment this only processes BIND requests, and returns the |
555 | * externally visible address of the request. | 554 | * externally visible address of the request to the rest of the |
555 | * NAT logic. | ||
556 | * | 556 | * |
557 | * @param nh handle to the NAT service | 557 | * @param nh handle to the NAT service |
558 | * @param sender_addr address from which we got @a data | 558 | * @param sender_addr address from which we got @a data |