34#ifndef GNUNET_VPN_SERVICE_H
35#define GNUNET_VPN_SERVICE_H
static struct GNUNET_CONFIGURATION_Handle * cfg
Our configuration.
static char * address
GNS address for this phone.
struct GNUNET_VPN_Handle * GNUNET_VPN_connect(const struct GNUNET_CONFIGURATION_Handle *cfg)
Connect to the VPN service.
struct GNUNET_VPN_RedirectionRequest * GNUNET_VPN_redirect_to_peer(struct GNUNET_VPN_Handle *vh, int result_af, uint8_t protocol, const struct GNUNET_PeerIdentity *peer, const struct GNUNET_HashCode *serv, struct GNUNET_TIME_Absolute expiration_time, GNUNET_VPN_AllocationCallback cb, void *cb_cls)
Tell the VPN that a forwarding to a particular peer offering a particular service is requested.
struct GNUNET_VPN_RedirectionRequest * GNUNET_VPN_redirect_to_ip(struct GNUNET_VPN_Handle *vh, int result_af, int addr_af, const void *addr, struct GNUNET_TIME_Absolute expiration_time, GNUNET_VPN_AllocationCallback cb, void *cb_cls)
Tell the VPN that forwarding to the Internet via some exit node is requested.
void GNUNET_VPN_cancel_request(struct GNUNET_VPN_RedirectionRequest *rr)
Cancel redirection request with the service.
void(* GNUNET_VPN_AllocationCallback)(void *cls, int af, const void *address)
Callback invoked from the VPN service once a redirection is available.
void GNUNET_VPN_disconnect(struct GNUNET_VPN_Handle *vh)
Disconnect from the VPN service.
The identity of the host (wraps the signing key of the peer).
Time for absolute times used by GNUnet, in microseconds.
Opaque redirection request handle.
const void * addr
Target IP address for the redirection, or NULL for redirection to service.
GNUNET_VPN_AllocationCallback cb
Function to call with the designated IP address.
void * cb_cls
Closure for cb.
struct GNUNET_VPN_Handle * vh
Pointer to the VPN struct.
struct GNUNET_PeerIdentity peer
For service redirection, identity of the peer offering the service.
uint8_t protocol
For service redirection, IPPROT_UDP or IPPROTO_TCP.
struct GNUNET_TIME_Absolute expiration_time
At what time should the created service mapping expire?
int addr_af
Address family of addr.
int result_af
Desired address family for the result.
struct GNUNET_HashCode serv
For service redirection, service descriptor.