diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-09-02 14:44:42 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-09-02 14:44:42 +0000 |
commit | e1fda8a5d8674328afa61cc50842fdbd2a7044ba (patch) | |
tree | b36e7c638c5b0cb94a693376419959f12d84b84c /src/nat | |
parent | 012cb16a93acbfca1119966d5b4679b99e5c9125 (diff) | |
download | gnunet-e1fda8a5d8674328afa61cc50842fdbd2a7044ba.tar.gz gnunet-e1fda8a5d8674328afa61cc50842fdbd2a7044ba.zip |
doxygen
Diffstat (limited to 'src/nat')
-rw-r--r-- | src/nat/gnunet-nat-server.c | 8 | ||||
-rw-r--r-- | src/nat/nat.c | 16 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/nat/gnunet-nat-server.c b/src/nat/gnunet-nat-server.c index 5e2390f35..bb637235d 100644 --- a/src/nat/gnunet-nat-server.c +++ b/src/nat/gnunet-nat-server.c | |||
@@ -94,7 +94,7 @@ struct TcpContext | |||
94 | * Task called by the scheduler once we can do the TCP send | 94 | * Task called by the scheduler once we can do the TCP send |
95 | * (or once we failed to connect...). | 95 | * (or once we failed to connect...). |
96 | * | 96 | * |
97 | * @param ctx the 'struct TcpContext' | 97 | * @param cls the 'struct TcpContext' |
98 | * @param tc scheduler context | 98 | * @param tc scheduler context |
99 | */ | 99 | */ |
100 | static void | 100 | static void |
@@ -123,7 +123,7 @@ tcp_send (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
123 | * Try to send 'data' to the | 123 | * Try to send 'data' to the |
124 | * IP 'dst_ipv4' at port 'dport' via TCP. | 124 | * IP 'dst_ipv4' at port 'dport' via TCP. |
125 | * | 125 | * |
126 | * @param dst_ivp4 target IP | 126 | * @param dst_ipv4 target IP |
127 | * @param dport target port | 127 | * @param dport target port |
128 | * @param data data to send | 128 | * @param data data to send |
129 | */ | 129 | */ |
@@ -170,7 +170,7 @@ try_send_tcp (uint32_t dst_ipv4, uint16_t dport, uint16_t data) | |||
170 | * Try to send 'data' to the | 170 | * Try to send 'data' to the |
171 | * IP 'dst_ipv4' at port 'dport' via UDP. | 171 | * IP 'dst_ipv4' at port 'dport' via UDP. |
172 | * | 172 | * |
173 | * @param dst_ivp4 target IP | 173 | * @param dst_ipv4 target IP |
174 | * @param dport target port | 174 | * @param dport target port |
175 | * @param data data to send | 175 | * @param data data to send |
176 | */ | 176 | */ |
@@ -238,7 +238,7 @@ test (void *cls, struct GNUNET_SERVER_Client *client, | |||
238 | /** | 238 | /** |
239 | * Task run during shutdown. | 239 | * Task run during shutdown. |
240 | * | 240 | * |
241 | * @param ctx unused | 241 | * @param cls unused |
242 | * @param tc scheduler context | 242 | * @param tc scheduler context |
243 | */ | 243 | */ |
244 | static void | 244 | static void |
diff --git a/src/nat/nat.c b/src/nat/nat.c index 891613fea..925838496 100644 --- a/src/nat/nat.c +++ b/src/nat/nat.c | |||
@@ -369,7 +369,7 @@ start_gnunet_nat_server (struct GNUNET_NAT_Handle *h); | |||
369 | * Remove all addresses from the list of 'local' addresses | 369 | * Remove all addresses from the list of 'local' addresses |
370 | * that originated from the given source. | 370 | * that originated from the given source. |
371 | * | 371 | * |
372 | * @param plugin the plugin | 372 | * @param h handle to NAT |
373 | * @param src source that identifies addresses to remove | 373 | * @param src source that identifies addresses to remove |
374 | */ | 374 | */ |
375 | static void | 375 | static void |
@@ -398,7 +398,7 @@ remove_from_address_list_by_source (struct GNUNET_NAT_Handle *h, | |||
398 | * Add the given address to the list of 'local' addresses, thereby | 398 | * Add the given address to the list of 'local' addresses, thereby |
399 | * making it a 'legal' address for this peer to have. | 399 | * making it a 'legal' address for this peer to have. |
400 | * | 400 | * |
401 | * @param plugin the plugin | 401 | * @param h handle to NAT |
402 | * @param src where did the local address originate from? | 402 | * @param src where did the local address originate from? |
403 | * @param arg the address, some 'struct sockaddr' | 403 | * @param arg the address, some 'struct sockaddr' |
404 | * @param arg_size number of bytes in arg | 404 | * @param arg_size number of bytes in arg |
@@ -432,7 +432,7 @@ add_to_address_list_as_is (struct GNUNET_NAT_Handle *h, | |||
432 | * port number in the process to the advertised port and possibly | 432 | * port number in the process to the advertised port and possibly |
433 | * also to zero (if we have the gnunet-helper-nat-server). | 433 | * also to zero (if we have the gnunet-helper-nat-server). |
434 | * | 434 | * |
435 | * @param plugin the plugin | 435 | * @param h handle to NAT |
436 | * @param src where did the local address originate from? | 436 | * @param src where did the local address originate from? |
437 | * @param arg the address, some 'struct sockaddr' | 437 | * @param arg the address, some 'struct sockaddr' |
438 | * @param arg_size number of bytes in arg | 438 | * @param arg_size number of bytes in arg |
@@ -483,10 +483,10 @@ add_to_address_list (struct GNUNET_NAT_Handle *h, enum LocalAddressSource src, | |||
483 | * Add the given IP address to the list of 'local' addresses, thereby | 483 | * Add the given IP address to the list of 'local' addresses, thereby |
484 | * making it a 'legal' address for this peer to have. | 484 | * making it a 'legal' address for this peer to have. |
485 | * | 485 | * |
486 | * @param plugin the plugin | 486 | * @param h handle to NAT |
487 | * @param src where did the local address originate from? | 487 | * @param src where did the local address originate from? |
488 | * @param arg the address, some 'struct in_addr' or 'struct in6_addr' | 488 | * @param addr the address, some 'struct in_addr' or 'struct in6_addr' |
489 | * @param arg_size number of bytes in arg | 489 | * @param addrlen number of bytes in addr |
490 | */ | 490 | */ |
491 | static void | 491 | static void |
492 | add_ip_to_address_list (struct GNUNET_NAT_Handle *h, | 492 | add_ip_to_address_list (struct GNUNET_NAT_Handle *h, |
@@ -1035,8 +1035,8 @@ add_from_bind (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
1035 | * @param adv_port advertised port (port we are either bound to or that our OS | 1035 | * @param adv_port advertised port (port we are either bound to or that our OS |
1036 | * locally performs redirection from to our bound port). | 1036 | * locally performs redirection from to our bound port). |
1037 | * @param num_addrs number of addresses in 'addrs' | 1037 | * @param num_addrs number of addresses in 'addrs' |
1038 | * @param addr the local address packets should be redirected to | 1038 | * @param addrs the local addresses packets should be redirected to |
1039 | * @param addrlen actual lenght of the address | 1039 | * @param addrlens actual lengths of the addresses |
1040 | * @param address_callback function to call everytime the public IP address changes | 1040 | * @param address_callback function to call everytime the public IP address changes |
1041 | * @param reversal_callback function to call if someone wants connection reversal from us | 1041 | * @param reversal_callback function to call if someone wants connection reversal from us |
1042 | * @param callback_cls closure for callbacks | 1042 | * @param callback_cls closure for callbacks |