aboutsummaryrefslogtreecommitdiff
path: root/src/nat/nat.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-29 10:19:43 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-29 10:19:43 +0000
commitcddbdf5b928c68ab71b40c950b9f01ea68a9fbdb (patch)
treeb704e00a3af618b2cd174a7f89514eaebd82a1cf /src/nat/nat.c
parentbb4fc4f4007988874f910d4de5492f9629301641 (diff)
downloadgnunet-cddbdf5b928c68ab71b40c950b9f01ea68a9fbdb.tar.gz
gnunet-cddbdf5b928c68ab71b40c950b9f01ea68a9fbdb.zip
run indent twice, it alternates between two 'canonical' forms, also run whitespace remover
Diffstat (limited to 'src/nat/nat.c')
-rw-r--r--src/nat/nat.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/nat/nat.c b/src/nat/nat.c
index a037e3b20..891613fea 100644
--- a/src/nat/nat.c
+++ b/src/nat/nat.c
@@ -57,7 +57,7 @@
57 57
58/** 58/**
59 * Where did the given local address originate from? 59 * Where did the given local address originate from?
60 * To be used for debugging as well as in the future 60 * To be used for debugging as well as in the future
61 * to remove all addresses from a certain source when 61 * to remove all addresses from a certain source when
62 * we reevaluate the source. 62 * we reevaluate the source.
63 */ 63 */
@@ -368,7 +368,7 @@ start_gnunet_nat_server (struct GNUNET_NAT_Handle *h);
368/** 368/**
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 plugin the plugin
373 * @param src source that identifies addresses to remove 373 * @param src source that identifies addresses to remove
374 */ 374 */
@@ -396,8 +396,8 @@ remove_from_address_list_by_source (struct GNUNET_NAT_Handle *h,
396 396
397/** 397/**
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 plugin the plugin
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'
@@ -431,7 +431,7 @@ add_to_address_list_as_is (struct GNUNET_NAT_Handle *h,
431 * making it a 'legal' address for this peer to have. Set the 431 * making it a 'legal' address for this peer to have. Set the
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 plugin the plugin
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'
@@ -481,8 +481,8 @@ add_to_address_list (struct GNUNET_NAT_Handle *h, enum LocalAddressSource src,
481 481
482/** 482/**
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 plugin the plugin
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 arg the address, some 'struct in_addr' or 'struct in6_addr'
@@ -1040,7 +1040,7 @@ add_from_bind (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
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
1043 * @return NULL on error, otherwise handle that can be used to unregister 1043 * @return NULL on error, otherwise handle that can be used to unregister
1044 */ 1044 */
1045struct GNUNET_NAT_Handle * 1045struct GNUNET_NAT_Handle *
1046GNUNET_NAT_register (const struct GNUNET_CONFIGURATION_Handle *cfg, int is_tcp, 1046GNUNET_NAT_register (const struct GNUNET_CONFIGURATION_Handle *cfg, int is_tcp,