GNUnet  0.11.x
Data Fields
GNUNET_NAT_AutoHandle Struct Reference

Handle to auto-configuration in progress. More...

Collaboration diagram for GNUNET_NAT_AutoHandle:
[legend]

Data Fields

struct GNUNET_NAT_Testtst
 Handle to the active NAT test. More...
 
GNUNET_NAT_AutoResultCallback fin_cb
 Function to call when done. More...
 
void * fin_cb_cls
 Closure for fin_cb. More...
 
struct GNUNET_NAT_ExternalHandleeh
 Handle for active 'GNUNET_NAT_mini_get_external_ipv4'-operation. More...
 
struct GNUNET_CONFIGURATION_Handlecfg
 Current configuration (with updates from previous phases) More...
 
struct GNUNET_CONFIGURATION_Handleinitial_cfg
 Original configuration (used to calculate differences) More...
 
struct GNUNET_SCHEDULER_Tasktask
 Task identifier for the timeout. More...
 
struct GNUNET_MQ_Handlemq
 Message queue to the gnunet-nat-server. More...
 
enum AutoPhase phase
 Where are we in the test? More...
 
enum GNUNET_NAT_Type type
 Situation of the NAT. More...
 
int have_v6
 Do we have IPv6? More...
 
int upnp_set_external_address
 UPnP already set the external ip address ? More...
 
int connected_back
 Did the external server connected back ? More...
 
char * stun_ip
 Address detected by STUN. More...
 
unsigned int stun_port
 
int internal_ip_is_public
 Internal IP is the same as the public one ? More...
 
enum GNUNET_NAT_StatusCode ret
 Error code for better debugging and user feedback. More...
 

Detailed Description

Handle to auto-configuration in progress.

Definition at line 99 of file gnunet-service-nat-auto_legacy.c.

Field Documentation

◆ tst

struct GNUNET_NAT_Test* GNUNET_NAT_AutoHandle::tst

Handle to the active NAT test.

Definition at line 104 of file gnunet-service-nat-auto_legacy.c.

Referenced by GNUNET_NAT_autoconfig_cancel(), result_callback(), and reversal_test().

◆ fin_cb

GNUNET_NAT_AutoResultCallback GNUNET_NAT_AutoHandle::fin_cb

Function to call when done.

Definition at line 109 of file gnunet-service-nat-auto_legacy.c.

Referenced by GNUNET_NAT_autoconfig_start(), and next_phase().

◆ fin_cb_cls

void* GNUNET_NAT_AutoHandle::fin_cb_cls

Closure for fin_cb.

Definition at line 114 of file gnunet-service-nat-auto_legacy.c.

Referenced by GNUNET_NAT_autoconfig_start(), and next_phase().

◆ eh

struct GNUNET_NAT_ExternalHandle* GNUNET_NAT_AutoHandle::eh

Handle for active 'GNUNET_NAT_mini_get_external_ipv4'-operation.

Definition at line 119 of file gnunet-service-nat-auto_legacy.c.

Referenced by GNUNET_NAT_autoconfig_cancel(), set_external_ipv4(), and test_external_ip().

◆ cfg

struct GNUNET_CONFIGURATION_Handle* GNUNET_NAT_AutoHandle::cfg

◆ initial_cfg

struct GNUNET_CONFIGURATION_Handle* GNUNET_NAT_AutoHandle::initial_cfg

Original configuration (used to calculate differences)

Definition at line 129 of file gnunet-service-nat-auto_legacy.c.

Referenced by GNUNET_NAT_autoconfig_cancel(), GNUNET_NAT_autoconfig_start(), and next_phase().

◆ task

struct GNUNET_SCHEDULER_Task* GNUNET_NAT_AutoHandle::task

Task identifier for the timeout.

Definition at line 134 of file gnunet-service-nat-auto_legacy.c.

Referenced by GNUNET_NAT_autoconfig_cancel(), reversal_test(), and test_icmp_server().

◆ mq

struct GNUNET_MQ_Handle* GNUNET_NAT_AutoHandle::mq

Message queue to the gnunet-nat-server.

Definition at line 139 of file gnunet-service-nat-auto_legacy.c.

Referenced by GNUNET_NAT_autoconfig_cancel(), mq_error_handler(), and test_nat_punched().

◆ phase

enum AutoPhase GNUNET_NAT_AutoHandle::phase

Where are we in the test?

Definition at line 144 of file gnunet-service-nat-auto_legacy.c.

Referenced by do_udp_read(), and next_phase().

◆ type

enum GNUNET_NAT_Type GNUNET_NAT_AutoHandle::type

Situation of the NAT.

Definition at line 149 of file gnunet-service-nat-auto_legacy.c.

Referenced by next_phase().

◆ have_v6

int GNUNET_NAT_AutoHandle::have_v6

Do we have IPv6?

Definition at line 154 of file gnunet-service-nat-auto_legacy.c.

Referenced by process_if(), and test_local_ip().

◆ upnp_set_external_address

int GNUNET_NAT_AutoHandle::upnp_set_external_address

UPnP already set the external ip address ?

Definition at line 159 of file gnunet-service-nat-auto_legacy.c.

Referenced by set_external_ipv4().

◆ connected_back

int GNUNET_NAT_AutoHandle::connected_back

Did the external server connected back ?

Definition at line 164 of file gnunet-service-nat-auto_legacy.c.

Referenced by do_udp_read(), and next_phase().

◆ stun_ip

char* GNUNET_NAT_AutoHandle::stun_ip

Address detected by STUN.

Definition at line 169 of file gnunet-service-nat-auto_legacy.c.

Referenced by next_phase(), process_if(), process_stun_reply(), and test_nat_punched().

◆ stun_port

unsigned int GNUNET_NAT_AutoHandle::stun_port

◆ internal_ip_is_public

int GNUNET_NAT_AutoHandle::internal_ip_is_public

Internal IP is the same as the public one ?

Definition at line 176 of file gnunet-service-nat-auto_legacy.c.

Referenced by next_phase(), and process_if().

◆ ret

enum GNUNET_NAT_StatusCode GNUNET_NAT_AutoHandle::ret

Error code for better debugging and user feedback.

Definition at line 181 of file gnunet-service-nat-auto_legacy.c.

Referenced by GNUNET_NAT_autoconfig_start(), next_phase(), process_if(), result_callback(), set_external_ipv4(), test_external_ip(), test_local_ip(), and test_upnpc().


The documentation for this struct was generated from the following file: