GNUnet  0.10.x
Data Fields
GNUNET_VPN_RedirectionRequest Struct Reference

Opaque redirection request handle. More...

Collaboration diagram for GNUNET_VPN_RedirectionRequest:
[legend]

Data Fields

struct GNUNET_VPN_RedirectionRequestnext
 Element in DLL. More...
 
struct GNUNET_VPN_RedirectionRequestprev
 Element in DLL. More...
 
struct GNUNET_VPN_Handlevh
 Pointer to the VPN struct. More...
 
const void * addr
 Target IP address for the redirection, or NULL for redirection to service. More...
 
GNUNET_VPN_AllocationCallback cb
 Function to call with the designated IP address. More...
 
void * cb_cls
 Closure for cb. More...
 
struct GNUNET_PeerIdentity peer
 For service redirection, identity of the peer offering the service. More...
 
struct GNUNET_HashCode serv
 For service redirection, service descriptor. More...
 
struct GNUNET_TIME_Absolute expiration_time
 At what time should the created service mapping expire? More...
 
uint64_t request_id
 non-zero if this request has been sent to the service. More...
 
int result_af
 Desired address family for the result. More...
 
int addr_af
 Address family of addr. More...
 
uint8_t protocol
 For service redirection, IPPROT_UDP or IPPROTO_TCP. More...
 

Detailed Description

Opaque redirection request handle.

Definition at line 77 of file vpn_api.c.

Field Documentation

◆ next

struct GNUNET_VPN_RedirectionRequest* GNUNET_VPN_RedirectionRequest::next

Element in DLL.

Definition at line 82 of file vpn_api.c.

Referenced by connect_task(), handle_use_ip(), and reconnect().

◆ prev

struct GNUNET_VPN_RedirectionRequest* GNUNET_VPN_RedirectionRequest::prev

Element in DLL.

Definition at line 87 of file vpn_api.c.

◆ vh

struct GNUNET_VPN_Handle* GNUNET_VPN_RedirectionRequest::vh

Pointer to the VPN struct.

Definition at line 92 of file vpn_api.c.

Referenced by GNUNET_VPN_cancel_request(), GNUNET_VPN_redirect_to_ip(), GNUNET_VPN_redirect_to_peer(), and send_request().

◆ addr

const void* GNUNET_VPN_RedirectionRequest::addr

Target IP address for the redirection, or NULL for redirection to service.

Allocated after this struct.

Definition at line 98 of file vpn_api.c.

Referenced by GNUNET_VPN_redirect_to_ip(), and send_request().

◆ cb

GNUNET_VPN_AllocationCallback GNUNET_VPN_RedirectionRequest::cb

Function to call with the designated IP address.

Definition at line 103 of file vpn_api.c.

Referenced by GNUNET_VPN_redirect_to_ip(), GNUNET_VPN_redirect_to_peer(), and handle_use_ip().

◆ cb_cls

void* GNUNET_VPN_RedirectionRequest::cb_cls

Closure for cb.

Definition at line 108 of file vpn_api.c.

Referenced by GNUNET_VPN_redirect_to_ip(), GNUNET_VPN_redirect_to_peer(), and handle_use_ip().

◆ peer

struct GNUNET_PeerIdentity GNUNET_VPN_RedirectionRequest::peer

For service redirection, identity of the peer offering the service.

Definition at line 113 of file vpn_api.c.

Referenced by GNUNET_VPN_redirect_to_peer(), and send_request().

◆ serv

struct GNUNET_HashCode GNUNET_VPN_RedirectionRequest::serv

For service redirection, service descriptor.

Definition at line 118 of file vpn_api.c.

Referenced by GNUNET_VPN_redirect_to_peer(), and send_request().

◆ expiration_time

struct GNUNET_TIME_Absolute GNUNET_VPN_RedirectionRequest::expiration_time

At what time should the created service mapping expire?

Definition at line 123 of file vpn_api.c.

Referenced by GNUNET_VPN_redirect_to_ip(), GNUNET_VPN_redirect_to_peer(), and send_request().

◆ request_id

uint64_t GNUNET_VPN_RedirectionRequest::request_id

non-zero if this request has been sent to the service.

Definition at line 128 of file vpn_api.c.

Referenced by handle_use_ip(), reconnect(), and send_request().

◆ result_af

int GNUNET_VPN_RedirectionRequest::result_af

Desired address family for the result.

Definition at line 133 of file vpn_api.c.

Referenced by GNUNET_VPN_redirect_to_ip(), GNUNET_VPN_redirect_to_peer(), and send_request().

◆ addr_af

int GNUNET_VPN_RedirectionRequest::addr_af

Address family of addr.

AF_INET or AF_INET6.

Definition at line 138 of file vpn_api.c.

Referenced by GNUNET_VPN_redirect_to_ip(), and send_request().

◆ protocol

uint8_t GNUNET_VPN_RedirectionRequest::protocol

For service redirection, IPPROT_UDP or IPPROTO_TCP.

Definition at line 143 of file vpn_api.c.

Referenced by GNUNET_VPN_redirect_to_peer(), and send_request().


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