diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-07 19:26:53 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-07 19:26:53 +0000 |
commit | 6610dea80399451f4eae448c001bf8e425d6e5ab (patch) | |
tree | 25fd0840f3226defde9d5c017512ff91daa4b71a /src/vpn/vpn_api.c | |
parent | 4c6f5a7ae36bbed02ecd1ae78ecff44e93c0970b (diff) | |
download | gnunet-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.c | 15 |
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 | */ |
209 | struct GNUNET_VPN_RedirectionRequest * | 215 | struct GNUNET_VPN_RedirectionRequest * |
210 | GNUNET_VPN_redirect_to_ip (struct GNUNET_VPN_Handle *rh, | 216 | GNUNET_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, |