migrate secretsharing to new service API
[oweals/gnunet.git] / src / nat-auto / gnunet-service-nat-auto.c
index f4e1b09e48dda1250aa76c489d5f9b892c74e8b4..ae570c351a4df6b18c46333948e4aa531e0cbb6c 100644 (file)
@@ -27,6 +27,7 @@
  * - merge client handle and autoconfig context
  * - implement "more" autoconfig:
  *   + re-work gnunet-nat-server & integrate!
+ *   + integrate "legacy" code
  *   + test manually punched NAT (how?)
  */
 #include "platform.h"
@@ -57,7 +58,7 @@ struct ClientHandle
    * Kept in a DLL.
    */
   struct ClientHandle *next;
-  
+
   /**
    * Kept in a DLL.
    */
@@ -65,7 +66,7 @@ struct ClientHandle
 
   /**
    * Underlying handle for this client with the service.
-   */ 
+   */
   struct GNUNET_SERVICE_Client *client;
 
   /**
@@ -97,12 +98,12 @@ struct AutoconfigContext
 
   /**
    * Configuration we are creating.
-   */ 
+   */
   struct GNUNET_CONFIGURATION_Handle *c;
 
   /**
    * Original configuration (for diffing).
-   */ 
+   */
   struct GNUNET_CONFIGURATION_Handle *orig;
 
   /**
@@ -133,7 +134,7 @@ struct AutoconfigContext
  * Head of client DLL.
  */
 static struct ClientHandle *ch_head;
-  
+
 /**
  * Tail of client DLL.
  */
@@ -208,7 +209,7 @@ conclude_autoconfig_request (void *cls)
   size_t c_size;
   char *buf;
   struct GNUNET_CONFIGURATION_Handle *diff;
-  
+
   ac->timeout_task = NULL;
   terminate_ac_activities (ac);
 
@@ -330,7 +331,7 @@ handle_autoconfig_request (void *cls,
                                    &conclude_autoconfig_request,
                                    ac);
   ac->enable_upnpc = GNUNET_SYSERR; /* undecided */
-  
+
   /* Probe for upnpc */
   if (GNUNET_SYSERR ==
       GNUNET_OS_check_helper_binary ("upnpc",
@@ -348,7 +349,7 @@ handle_autoconfig_request (void *cls,
   }
   update_enable_upnpc_option (ac);
 
-  /* Finally, check if we are already done */  
+  /* Finally, check if we are already done */
   check_autoconfig_finished (ac);
 }
 
@@ -450,7 +451,7 @@ client_disconnect_cb (void *cls,
  * Define "main" method using service macro.
  */
 GNUNET_SERVICE_MAIN
-("nat",
+("nat-auto",
  GNUNET_SERVICE_OPTION_NONE,
  &run,
  &client_connect_cb,