aboutsummaryrefslogtreecommitdiff
path: root/src/vpn/vpn_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-07 19:26:53 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-07 19:26:53 +0000
commit6610dea80399451f4eae448c001bf8e425d6e5ab (patch)
tree25fd0840f3226defde9d5c017512ff91daa4b71a /src/vpn/vpn_api.c
parent4c6f5a7ae36bbed02ecd1ae78ecff44e93c0970b (diff)
downloadgnunet-6610dea80399451f4eae448c001bf8e425d6e5ab.tar.gz
gnunet-6610dea80399451f4eae448c001bf8e425d6e5ab.zip
-defining IPC messages for VPN
Diffstat (limited to 'src/vpn/vpn_api.c')
-rw-r--r--src/vpn/vpn_api.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/vpn/vpn_api.c b/src/vpn/vpn_api.c
index 5c351a190..b6fab37bf 100644
--- a/src/vpn/vpn_api.c
+++ b/src/vpn/vpn_api.c
@@ -107,9 +107,14 @@ struct GNUNET_VPN_RedirectionRequest
107 struct GNUNET_TIME_Absolute expiration_time; 107 struct GNUNET_TIME_Absolute expiration_time;
108 108
109 /** 109 /**
110 * AF_INET or AF_INET6. 110 * Desired address family for the result.
111 */ 111 */
112 int af; 112 int result_af;
113
114 /**
115 * Address family of 'addr'. AF_INET or AF_INET6.
116 */
117 int addr_af;
113 118
114 /** 119 /**
115 * GNUNET_YES if we are to call the callback only after successful 120 * GNUNET_YES if we are to call the callback only after successful
@@ -192,7 +197,8 @@ GNUNET_VPN_redirect_to_peer (struct GNUNET_VPN_Handle *rh,
192 * limitations, the longest inactive mappings will be destroyed. 197 * limitations, the longest inactive mappings will be destroyed.
193 * 198 *
194 * @param vh VPN handle 199 * @param vh VPN handle
195 * @param af address family, AF_INET or AF_INET6 200 * @param result_af desired address family for the returned allocation
201 * @param addr_af address family for 'addr', AF_INET or AF_INET6
196 * @param addr destination IP address on the Internet; destination 202 * @param addr destination IP address on the Internet; destination
197 * port is to be taken from the VPN packet itself 203 * port is to be taken from the VPN packet itself
198 * @param nac GNUNET_YES to notify via callback only after completion of 204 * @param nac GNUNET_YES to notify via callback only after completion of
@@ -208,7 +214,8 @@ GNUNET_VPN_redirect_to_peer (struct GNUNET_VPN_Handle *rh,
208 */ 214 */
209struct GNUNET_VPN_RedirectionRequest * 215struct GNUNET_VPN_RedirectionRequest *
210GNUNET_VPN_redirect_to_ip (struct GNUNET_VPN_Handle *rh, 216GNUNET_VPN_redirect_to_ip (struct GNUNET_VPN_Handle *rh,
211 int af, 217 int result_af,
218 int addr_af,
212 const void *addr, 219 const void *addr,
213 int nac, 220 int nac,
214 struct GNUNET_TIME_Absolute expiration_time, 221 struct GNUNET_TIME_Absolute expiration_time,