#include "platform.h"
#include "gnunet_nat_service.h"
#include "gnunet_nat_auto_service.h"
#include "nat-auto.h"
Go to the source code of this file.
Data Structures | |
struct | GNUNET_NAT_AUTO_AutoHandle |
Handle to auto-configuration in progress. More... | |
Functions | |
const char * | GNUNET_NAT_AUTO_status2string (enum GNUNET_NAT_StatusCode err) |
Converts enum GNUNET_NAT_StatusCode to string. More... | |
static int | check_auto_result (void *cls, const struct GNUNET_NAT_AUTO_AutoconfigResultMessage *res) |
Check result from autoconfiguration attempt. More... | |
static void | handle_auto_result (void *cls, const struct GNUNET_NAT_AUTO_AutoconfigResultMessage *res) |
Handle result from autoconfiguration attempt. More... | |
static void | ah_error_handler (void *cls, enum GNUNET_MQ_Error error) |
Handle queue errors by reporting autoconfiguration failure. More... | |
struct GNUNET_NAT_AUTO_AutoHandle * | GNUNET_NAT_AUTO_autoconfig_start (const struct GNUNET_CONFIGURATION_Handle *cfg, GNUNET_NAT_AUTO_AutoResultCallback cb, void *cb_cls) |
Start auto-configuration routine. More... | |
void | GNUNET_NAT_AUTO_autoconfig_cancel (struct GNUNET_NAT_AUTO_AutoHandle *ah) |
Abort autoconfiguration. More... | |
Routines for NAT auto configuration.
Definition in file nat_auto_api.c.
|
static |
Check result from autoconfiguration attempt.
cls | the struct GNUNET_NAT_AUTO_AutoHandle |
res | the result |
Definition at line 144 of file nat_auto_api.c.
References GNUNET_OK.
|
static |
Handle result from autoconfiguration attempt.
cls | the struct GNUNET_NAT_AUTO_AutoHandle |
res | the result |
Definition at line 158 of file nat_auto_api.c.
References ah, GNUNET_NAT_AUTO_AutoHandle::arc, GNUNET_NAT_AUTO_AutoHandle::arc_cls, cfg, GNUNET_break, GNUNET_CONFIGURATION_create(), GNUNET_CONFIGURATION_deserialize(), GNUNET_CONFIGURATION_destroy(), GNUNET_NAT_AUTO_autoconfig_cancel(), GNUNET_NAT_ERROR_IPC_FAILURE, GNUNET_OK, GNUNET_OS_project_data_gnunet(), res, status, and type.
|
static |
Handle queue errors by reporting autoconfiguration failure.
cls | the struct GNUNET_NAT_AUTO_AutoHandle * |
error | details about the error |
Definition at line 200 of file nat_auto_api.c.
References ah, GNUNET_NAT_AUTO_AutoHandle::arc, GNUNET_NAT_AUTO_AutoHandle::arc_cls, GNUNET_NAT_AUTO_autoconfig_cancel(), GNUNET_NAT_ERROR_IPC_FAILURE, and GNUNET_NAT_TYPE_UNKNOWN.
Referenced by GNUNET_NAT_AUTO_autoconfig_start().