diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-08-22 14:50:04 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-08-22 14:50:04 +0000 |
commit | 6ee9d185c22d09d0e7e9da44522b33b03c5fa30b (patch) | |
tree | 898c1d392c3a8b871117570a1590aa6edea1bcd4 /src/exit/exit.h | |
parent | 7b0c53a6b28bb3cedd44cb5dd396329f62aeab90 (diff) | |
download | gnunet-6ee9d185c22d09d0e7e9da44522b33b03c5fa30b.tar.gz gnunet-6ee9d185c22d09d0e7e9da44522b33b03c5fa30b.zip |
fix exit CADET port binding for services, remove redundant service/port descriptor transmission from packets
Diffstat (limited to 'src/exit/exit.h')
-rw-r--r-- | src/exit/exit.h | 33 |
1 files changed, 9 insertions, 24 deletions
diff --git a/src/exit/exit.h b/src/exit/exit.h index 7b803f0cd..530d92125 100644 --- a/src/exit/exit.h +++ b/src/exit/exit.h | |||
@@ -37,7 +37,7 @@ GNUNET_NETWORK_STRUCT_BEGIN | |||
37 | struct GNUNET_EXIT_TcpServiceStartMessage | 37 | struct GNUNET_EXIT_TcpServiceStartMessage |
38 | { | 38 | { |
39 | /** | 39 | /** |
40 | * Type is GNUNET_MESSAGE_TYPE_VPN_TCP_TO_SERVICE_START | 40 | * Type is #GNUNET_MESSAGE_TYPE_VPN_TCP_TO_SERVICE_START |
41 | */ | 41 | */ |
42 | struct GNUNET_MessageHeader header; | 42 | struct GNUNET_MessageHeader header; |
43 | 43 | ||
@@ -47,11 +47,6 @@ struct GNUNET_EXIT_TcpServiceStartMessage | |||
47 | uint32_t reserved GNUNET_PACKED; | 47 | uint32_t reserved GNUNET_PACKED; |
48 | 48 | ||
49 | /** | 49 | /** |
50 | * Identification for the desired service. | ||
51 | */ | ||
52 | struct GNUNET_HashCode service_descriptor; | ||
53 | |||
54 | /** | ||
55 | * Skeleton of the TCP header to send. Port numbers are to | 50 | * Skeleton of the TCP header to send. Port numbers are to |
56 | * be replaced and the checksum may be updated as necessary. | 51 | * be replaced and the checksum may be updated as necessary. |
57 | */ | 52 | */ |
@@ -68,7 +63,7 @@ struct GNUNET_EXIT_TcpServiceStartMessage | |||
68 | struct GNUNET_EXIT_TcpInternetStartMessage | 63 | struct GNUNET_EXIT_TcpInternetStartMessage |
69 | { | 64 | { |
70 | /** | 65 | /** |
71 | * Type is GNUNET_MESSAGE_TYPE_VPN_TCP_TO_INTERNET_START | 66 | * Type is #GNUNET_MESSAGE_TYPE_VPN_TCP_TO_INTERNET_START |
72 | */ | 67 | */ |
73 | struct GNUNET_MessageHeader header; | 68 | struct GNUNET_MessageHeader header; |
74 | 69 | ||
@@ -99,7 +94,7 @@ struct GNUNET_EXIT_TcpInternetStartMessage | |||
99 | struct GNUNET_EXIT_TcpDataMessage | 94 | struct GNUNET_EXIT_TcpDataMessage |
100 | { | 95 | { |
101 | /** | 96 | /** |
102 | * Type is GNUNET_MESSAGE_TYPE_VPN_TCP_DATA | 97 | * Type is #GNUNET_MESSAGE_TYPE_VPN_TCP_DATA |
103 | */ | 98 | */ |
104 | struct GNUNET_MessageHeader header; | 99 | struct GNUNET_MessageHeader header; |
105 | 100 | ||
@@ -125,7 +120,7 @@ struct GNUNET_EXIT_TcpDataMessage | |||
125 | struct GNUNET_EXIT_UdpServiceMessage | 120 | struct GNUNET_EXIT_UdpServiceMessage |
126 | { | 121 | { |
127 | /** | 122 | /** |
128 | * Type is GNUNET_MESSAGE_TYPE_VPN_UDP_TO_SERVICE | 123 | * Type is #GNUNET_MESSAGE_TYPE_VPN_UDP_TO_SERVICE |
129 | */ | 124 | */ |
130 | struct GNUNET_MessageHeader header; | 125 | struct GNUNET_MessageHeader header; |
131 | 126 | ||
@@ -139,11 +134,6 @@ struct GNUNET_EXIT_UdpServiceMessage | |||
139 | */ | 134 | */ |
140 | uint16_t destination_port GNUNET_PACKED; | 135 | uint16_t destination_port GNUNET_PACKED; |
141 | 136 | ||
142 | /** | ||
143 | * Identification for the desired service. | ||
144 | */ | ||
145 | struct GNUNET_HashCode service_descriptor; | ||
146 | |||
147 | /* followed by UDP payload */ | 137 | /* followed by UDP payload */ |
148 | }; | 138 | }; |
149 | 139 | ||
@@ -155,7 +145,7 @@ struct GNUNET_EXIT_UdpServiceMessage | |||
155 | struct GNUNET_EXIT_UdpInternetMessage | 145 | struct GNUNET_EXIT_UdpInternetMessage |
156 | { | 146 | { |
157 | /** | 147 | /** |
158 | * Type is GNUNET_MESSAGE_TYPE_VPN_UDP_TO_INTERNET | 148 | * Type is #GNUNET_MESSAGE_TYPE_VPN_UDP_TO_INTERNET |
159 | */ | 149 | */ |
160 | struct GNUNET_MessageHeader header; | 150 | struct GNUNET_MessageHeader header; |
161 | 151 | ||
@@ -188,7 +178,7 @@ struct GNUNET_EXIT_UdpInternetMessage | |||
188 | struct GNUNET_EXIT_UdpReplyMessage | 178 | struct GNUNET_EXIT_UdpReplyMessage |
189 | { | 179 | { |
190 | /** | 180 | /** |
191 | * Type is GNUNET_MESSAGE_TYPE_VPN_UDP_REPLY | 181 | * Type is #GNUNET_MESSAGE_TYPE_VPN_UDP_REPLY |
192 | */ | 182 | */ |
193 | struct GNUNET_MessageHeader header; | 183 | struct GNUNET_MessageHeader header; |
194 | 184 | ||
@@ -215,7 +205,7 @@ struct GNUNET_EXIT_UdpReplyMessage | |||
215 | struct GNUNET_EXIT_IcmpServiceMessage | 205 | struct GNUNET_EXIT_IcmpServiceMessage |
216 | { | 206 | { |
217 | /** | 207 | /** |
218 | * Type is GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_SERVICE | 208 | * Type is #GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_SERVICE |
219 | */ | 209 | */ |
220 | struct GNUNET_MessageHeader header; | 210 | struct GNUNET_MessageHeader header; |
221 | 211 | ||
@@ -228,11 +218,6 @@ struct GNUNET_EXIT_IcmpServiceMessage | |||
228 | int32_t af GNUNET_PACKED; | 218 | int32_t af GNUNET_PACKED; |
229 | 219 | ||
230 | /** | 220 | /** |
231 | * Identification for the desired service. | ||
232 | */ | ||
233 | struct GNUNET_HashCode service_descriptor; | ||
234 | |||
235 | /** | ||
236 | * ICMP header to use. | 221 | * ICMP header to use. |
237 | */ | 222 | */ |
238 | struct GNUNET_TUN_IcmpHeader icmp_header; | 223 | struct GNUNET_TUN_IcmpHeader icmp_header; |
@@ -251,7 +236,7 @@ struct GNUNET_EXIT_IcmpServiceMessage | |||
251 | struct GNUNET_EXIT_IcmpInternetMessage | 236 | struct GNUNET_EXIT_IcmpInternetMessage |
252 | { | 237 | { |
253 | /** | 238 | /** |
254 | * Type is GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_INTERNET | 239 | * Type is #GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_INTERNET |
255 | */ | 240 | */ |
256 | struct GNUNET_MessageHeader header; | 241 | struct GNUNET_MessageHeader header; |
257 | 242 | ||
@@ -286,7 +271,7 @@ struct GNUNET_EXIT_IcmpInternetMessage | |||
286 | struct GNUNET_EXIT_IcmpToVPNMessage | 271 | struct GNUNET_EXIT_IcmpToVPNMessage |
287 | { | 272 | { |
288 | /** | 273 | /** |
289 | * Type is GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_VPN | 274 | * Type is #GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_VPN |
290 | */ | 275 | */ |
291 | struct GNUNET_MessageHeader header; | 276 | struct GNUNET_MessageHeader header; |
292 | 277 | ||