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 
43 
48 
53 
58 
63 
69 
70  /* followed by destination address ('struct in_addr' or 'struct in6_addr') */
71 };
72 
73 
84 
89 
94 
98  int32_t protocol GNUNET_PACKED;
99 
104 
108  struct GNUNET_PeerIdentity target;
109 
113  struct GNUNET_HashCode service_descriptor;
114 
120 };
121 
122 
132 
138 
143 
144  /* followed by destination address ('struct in_addr' or 'struct in6_addr') */
145 };
146 
148 
149 
150 #endif
Response from the VPN service to a VPN client informing about the IP that was assigned for the reques...
Definition: vpn.h:127
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:47
int32_t result_af
Address family desired for the result (AF_INET or AF_INET6 or AF_UNSPEC, in nbo)
Definition: vpn.h:57
A 512-bit hashcode.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_VPN_CLIENT_REDIRECT_TO_IP.
Definition: vpn.h:42
#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:62
struct GNUNET_TIME_AbsoluteNBO expiration_time
How long should the redirection be maintained at most?
Definition: vpn.h:52
Header for all communications.
uint64_t request_id
Unique ID to match a future response to this request.
Definition: vpn.h:68
Message send by the VPN client to the VPN service requesting the setup of a redirection from some IP ...
Definition: vpn.h:79