aboutsummaryrefslogtreecommitdiff
path: root/src/nat/nat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nat/nat.h')
-rw-r--r--src/nat/nat.h48
1 files changed, 4 insertions, 44 deletions
diff --git a/src/nat/nat.h b/src/nat/nat.h
index af418c7c2..d34900bd1 100644
--- a/src/nat/nat.h
+++ b/src/nat/nat.h
@@ -29,6 +29,7 @@
29#include "gnunet_util_lib.h" 29#include "gnunet_util_lib.h"
30 30
31 31
32
32GNUNET_NETWORK_STRUCT_BEGIN 33GNUNET_NETWORK_STRUCT_BEGIN
33 34
34/** 35/**
@@ -111,10 +112,9 @@ struct GNUNET_NAT_RegisterMessage
111 112
112 /** 113 /**
113 * Number of bytes in the string that follow which 114 * Number of bytes in the string that follow which
114 * specify the hostname and port of a manually punched 115 * specifies a section name in the configuration.
115 * hole for this client.
116 */ 116 */
117 uint16_t hole_external_len GNUNET_PACKED; 117 uint16_t str_len GNUNET_PACKED;
118 118
119 /** 119 /**
120 * Number of addresses that this service is bound to that follow. 120 * Number of addresses that this service is bound to that follow.
@@ -126,8 +126,7 @@ struct GNUNET_NAT_RegisterMessage
126 /* Followed by @e num_addrs addresses of type 'struct 126 /* Followed by @e num_addrs addresses of type 'struct
127 sockaddr' */ 127 sockaddr' */
128 128
129 /* Followed by @e hole_external_len bytes giving a hostname 129 /* Followed by @e str_len section name to use for options */
130 and port */
131 130
132}; 131};
133 132
@@ -225,45 +224,6 @@ struct GNUNET_NAT_AddressChangeNotificationMessage
225}; 224};
226 225
227 226
228/**
229 * Client requesting automatic configuration.
230 */
231struct GNUNET_NAT_AutoconfigRequestMessage
232{
233 /**
234 * Header with type #GNUNET_MESSAGE_TYPE_NAT_REQUEST_AUTO_CFG
235 */
236 struct GNUNET_MessageHeader header;
237
238 /* Followed by configuration (diff, serialized, compressed) */
239
240};
241
242
243/**
244 * Service responding with proposed configuration.
245 */
246struct GNUNET_NAT_AutoconfigResultMessage
247{
248 /**
249 * Header with type #GNUNET_MESSAGE_TYPE_NAT_AUTO_CFG_RESULT
250 */
251 struct GNUNET_MessageHeader header;
252
253 /**
254 * An `enum GNUNET_NAT_StatusCode` in NBO.
255 */
256 int32_t status_code GNUNET_PACKED;
257
258 /**
259 * An `enum GNUNET_NAT_Type` in NBO.
260 */
261 int32_t type GNUNET_PACKED;
262
263 /* Followed by configuration (diff, serialized, compressed) */
264};
265
266
267GNUNET_NETWORK_STRUCT_END 227GNUNET_NETWORK_STRUCT_END
268 228
269#endif 229#endif