GNUnet  0.10.x
vpn.h
Go to the documentation of this file.
1 /*
2  This file is part of GNUnet.
3  Copyright (C) 2012 Christian Grothoff
4 
5  GNUnet is free software: you can redistribute it and/or modify it
6  under the terms of the GNU Affero General Public License as published
7  by the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  GNUnet is distributed in the hope that it will be useful, but
11  WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Affero General Public License for more details.
14 
15  You should have received a copy of the GNU Affero General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 
18  SPDX-License-Identifier: AGPL3.0-or-later
19 */
20 
26 #ifndef VPN_H
27 #define VPN_H
28 
29 #include "gnunet_util_lib.h"
30 
32 
39 {
44 
49 
54 
59 
64 
70 
71  /* followed by destination address ('struct in_addr' or 'struct in6_addr') */
72 
73 };
74 
75 
82 {
87 
92 
97 
101  int32_t protocol GNUNET_PACKED;
102 
107 
111  struct GNUNET_PeerIdentity target;
112 
116  struct GNUNET_HashCode service_descriptor;
117 
123 
124 };
125 
126 
132 {
133 
138 
144 
149 
150  /* followed by destination address ('struct in_addr' or 'struct in6_addr') */
151 
152 };
153 
155 
156 
157 #endif
Response from the VPN service to a VPN client informing about the IP that was assigned for the reques...
Definition: vpn.h:131
Time for absolute time used by GNUnet, in microseconds and in network byte order. ...
Message send by the VPN client to the VPN service requesting the setup of a redirection from some IP ...
Definition: vpn.h:38
#define GNUNET_NETWORK_STRUCT_BEGIN
Define as empty, GNUNET_PACKED should suffice, but this won&#39;t work on W32.
uint32_t reserved
Always zero.
Definition: vpn.h:48
int32_t result_af
Address family desired for the result (AF_INET or AF_INET6 or AF_UNSPEC, in nbo)
Definition: vpn.h:58
A 512-bit hashcode.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_VPN_CLIENT_REDIRECT_TO_IP.
Definition: vpn.h:43
#define GNUNET_NETWORK_STRUCT_END
Define as empty, GNUNET_PACKED should suffice, but this won&#39;t work on W32;.
The identity of the host (wraps the signing key of the peer).
#define GNUNET_PACKED
gcc-ism to get packed structs.
int32_t addr_af
Address family used for the destination address (AF_INET or AF_INET6, in nbo)
Definition: vpn.h:63
struct GNUNET_TIME_AbsoluteNBO expiration_time
How long should the redirection be maintained at most?
Definition: vpn.h:53
Header for all communications.
uint64_t request_id
Unique ID to match a future response to this request.
Definition: vpn.h:69
Message send by the VPN client to the VPN service requesting the setup of a redirection from some IP ...
Definition: vpn.h:81