aboutsummaryrefslogtreecommitdiff
path: root/src/vpn/gnunet-vpn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vpn/gnunet-vpn.c')
-rw-r--r--src/vpn/gnunet-vpn.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vpn/gnunet-vpn.c b/src/vpn/gnunet-vpn.c
index b4d6824d9..5a35a0df5 100644
--- a/src/vpn/gnunet-vpn.c
+++ b/src/vpn/gnunet-vpn.c
@@ -122,7 +122,7 @@ do_disconnect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
122 * will match 'result_af' from the request 122 * will match 'result_af' from the request
123 * @param address IP address (struct in_addr or struct in_addr6, depending on 'af') 123 * @param address IP address (struct in_addr or struct in_addr6, depending on 'af')
124 * that the VPN allocated for the redirection; 124 * that the VPN allocated for the redirection;
125 * traffic to this IP will now be redirected to the 125 * traffic to this IP will now be redirected to the
126 * specified target peer; NULL on error 126 * specified target peer; NULL on error
127 */ 127 */
128static void 128static void
@@ -167,7 +167,7 @@ run (void *cls, char *const *args, const char *cfgfile,
167{ 167{
168 int dst_af; 168 int dst_af;
169 int req_af; 169 int req_af;
170 struct GNUNET_PeerIdentity peer; 170 struct GNUNET_PeerIdentity peer;
171 struct GNUNET_HashCode sd; 171 struct GNUNET_HashCode sd;
172 const void *addr; 172 const void *addr;
173 struct in_addr v4; 173 struct in_addr v4;
@@ -194,7 +194,7 @@ run (void *cls, char *const *args, const char *cfgfile,
194 } 194 }
195 if (ipv6) 195 if (ipv6)
196 req_af = AF_INET6; 196 req_af = AF_INET6;
197 197
198 if (NULL == target_ip) 198 if (NULL == target_ip)
199 { 199 {
200 if (NULL == service_name) 200 if (NULL == service_name)
@@ -233,7 +233,7 @@ run (void *cls, char *const *args, const char *cfgfile,
233 FPRINTF (stderr, _("`%s' is not a valid peer identifier.\n"), 233 FPRINTF (stderr, _("`%s' is not a valid peer identifier.\n"),
234 peer_id); 234 peer_id);
235 goto error; 235 goto error;
236 } 236 }
237 GNUNET_CRYPTO_hash (service_name, 237 GNUNET_CRYPTO_hash (service_name,
238 strlen (service_name), 238 strlen (service_name),
239 &sd); 239 &sd);
@@ -265,7 +265,7 @@ run (void *cls, char *const *args, const char *cfgfile,
265 { 265 {
266 dst_af = AF_INET6; 266 dst_af = AF_INET6;
267 addr = &v6; 267 addr = &v6;
268 } 268 }
269 request = GNUNET_VPN_redirect_to_ip (handle, 269 request = GNUNET_VPN_redirect_to_ip (handle,
270 req_af, 270 req_af,
271 dst_af, 271 dst_af,