GNUnet 0.21.2
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 76 of file vpn_api.c.

Field Documentation

◆ next

struct GNUNET_VPN_RedirectionRequest* GNUNET_VPN_RedirectionRequest::next

Element in DLL.

Definition at line 81 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 86 of file vpn_api.c.

◆ vh

struct GNUNET_VPN_Handle* GNUNET_VPN_RedirectionRequest::vh

◆ 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 97 of file vpn_api.c.

Referenced by GNUNET_VPN_redirect_to_ip(), handle_request(), send_request(), and send_response().

◆ cb

GNUNET_VPN_AllocationCallback GNUNET_VPN_RedirectionRequest::cb

Function to call with the designated IP address.

Definition at line 102 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 107 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 112 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 117 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 122 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 127 of file vpn_api.c.

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

◆ result_af

int GNUNET_VPN_RedirectionRequest::result_af

Desired address family for the result.

Definition at line 132 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 137 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 142 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: