summaryrefslogtreecommitdiff
path: root/src/nat/nat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nat/nat.h')
-rw-r--r--src/nat/nat.h21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/nat/nat.h b/src/nat/nat.h
index 62377435a..aac8db64c 100644
--- a/src/nat/nat.h
+++ b/src/nat/nat.h
@@ -36,7 +36,8 @@ GNUNET_NETWORK_STRUCT_BEGIN
36 * Request to test NAT traversal, sent to the gnunet-nat-server 36 * Request to test NAT traversal, sent to the gnunet-nat-server
37 * (not the service!). 37 * (not the service!).
38 */ 38 */
39struct GNUNET_NAT_TestMessage { 39struct GNUNET_NAT_TestMessage
40{
40 /** 41 /**
41 * Header with type #GNUNET_MESSAGE_TYPE_NAT_TEST 42 * Header with type #GNUNET_MESSAGE_TYPE_NAT_TEST
42 */ 43 */
@@ -68,7 +69,8 @@ struct GNUNET_NAT_TestMessage {
68 * Flags specifying the events this client would be 69 * Flags specifying the events this client would be
69 * interested in being told about. 70 * interested in being told about.
70 */ 71 */
71enum GNUNET_NAT_RegisterFlags { 72enum GNUNET_NAT_RegisterFlags
73{
72 /** 74 /**
73 * This client does not want any notifications. 75 * This client does not want any notifications.
74 */ 76 */
@@ -90,7 +92,8 @@ enum GNUNET_NAT_RegisterFlags {
90/** 92/**
91 * Message sent by a client to register with its addresses. 93 * Message sent by a client to register with its addresses.
92 */ 94 */
93struct GNUNET_NAT_RegisterMessage { 95struct GNUNET_NAT_RegisterMessage
96{
94 /** 97 /**
95 * Header with type #GNUNET_MESSAGE_TYPE_NAT_REGISTER 98 * Header with type #GNUNET_MESSAGE_TYPE_NAT_REGISTER
96 */ 99 */
@@ -129,7 +132,8 @@ struct GNUNET_NAT_RegisterMessage {
129/** 132/**
130 * Client telling the service to (possibly) handle a STUN message. 133 * Client telling the service to (possibly) handle a STUN message.
131 */ 134 */
132struct GNUNET_NAT_HandleStunMessage { 135struct GNUNET_NAT_HandleStunMessage
136{
133 /** 137 /**
134 * Header with type #GNUNET_MESSAGE_TYPE_NAT_HANDLE_STUN 138 * Header with type #GNUNET_MESSAGE_TYPE_NAT_HANDLE_STUN
135 */ 139 */
@@ -154,7 +158,8 @@ struct GNUNET_NAT_HandleStunMessage {
154/** 158/**
155 * Client asking the service to initiate connection reversal. 159 * Client asking the service to initiate connection reversal.
156 */ 160 */
157struct GNUNET_NAT_RequestConnectionReversalMessage { 161struct GNUNET_NAT_RequestConnectionReversalMessage
162{
158 /** 163 /**
159 * Header with type #GNUNET_MESSAGE_TYPE_NAT_REQUEST_CONNECTION_REVERSAL 164 * Header with type #GNUNET_MESSAGE_TYPE_NAT_REQUEST_CONNECTION_REVERSAL
160 */ 165 */
@@ -179,7 +184,8 @@ struct GNUNET_NAT_RequestConnectionReversalMessage {
179/** 184/**
180 * Service telling a client that connection reversal was requested. 185 * Service telling a client that connection reversal was requested.
181 */ 186 */
182struct GNUNET_NAT_ConnectionReversalRequestedMessage { 187struct GNUNET_NAT_ConnectionReversalRequestedMessage
188{
183 /** 189 /**
184 * Header with type #GNUNET_MESSAGE_TYPE_NAT_CONNECTION_REVERSAL_REQUESTED 190 * Header with type #GNUNET_MESSAGE_TYPE_NAT_CONNECTION_REVERSAL_REQUESTED
185 */ 191 */
@@ -193,7 +199,8 @@ struct GNUNET_NAT_ConnectionReversalRequestedMessage {
193 * Service notifying the client about changes in the set of 199 * Service notifying the client about changes in the set of
194 * addresses it has. 200 * addresses it has.
195 */ 201 */
196struct GNUNET_NAT_AddressChangeNotificationMessage { 202struct GNUNET_NAT_AddressChangeNotificationMessage
203{
197 /** 204 /**
198 * Header with type #GNUNET_MESSAGE_TYPE_NAT_ADDRESS_CHANGE 205 * Header with type #GNUNET_MESSAGE_TYPE_NAT_ADDRESS_CHANGE
199 */ 206 */