diff options
author | ng0 <ng0@n0.is> | 2019-09-08 12:33:09 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-09-08 12:33:09 +0000 |
commit | d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb (patch) | |
tree | 9efd18ea7d425652085ed0bd5e8e45604bc5f6b9 /src/nat/nat.h | |
parent | a0fce305c565c0937d917a92712f15e9c5736260 (diff) | |
download | gnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.tar.gz gnunet-d41ed82a4ea0cc8e1674b6d5d2c49fd6462610bb.zip |
uncrustify as demanded.
Diffstat (limited to 'src/nat/nat.h')
-rw-r--r-- | src/nat/nat.h | 34 |
1 files changed, 11 insertions, 23 deletions
diff --git a/src/nat/nat.h b/src/nat/nat.h index 86de3c2f6..62377435a 100644 --- a/src/nat/nat.h +++ b/src/nat/nat.h | |||
@@ -11,12 +11,12 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file src/nat/nat.h | 22 | * @file src/nat/nat.h |
@@ -36,8 +36,7 @@ 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 | */ |
39 | struct GNUNET_NAT_TestMessage | 39 | struct GNUNET_NAT_TestMessage { |
40 | { | ||
41 | /** | 40 | /** |
42 | * Header with type #GNUNET_MESSAGE_TYPE_NAT_TEST | 41 | * Header with type #GNUNET_MESSAGE_TYPE_NAT_TEST |
43 | */ | 42 | */ |
@@ -62,7 +61,6 @@ struct GNUNET_NAT_TestMessage | |||
62 | * #GNUNET_YES for TCP, #GNUNET_NO for UDP. | 61 | * #GNUNET_YES for TCP, #GNUNET_NO for UDP. |
63 | */ | 62 | */ |
64 | int32_t is_tcp; | 63 | int32_t is_tcp; |
65 | |||
66 | }; | 64 | }; |
67 | 65 | ||
68 | 66 | ||
@@ -70,8 +68,7 @@ struct GNUNET_NAT_TestMessage | |||
70 | * Flags specifying the events this client would be | 68 | * Flags specifying the events this client would be |
71 | * interested in being told about. | 69 | * interested in being told about. |
72 | */ | 70 | */ |
73 | enum GNUNET_NAT_RegisterFlags | 71 | enum GNUNET_NAT_RegisterFlags { |
74 | { | ||
75 | /** | 72 | /** |
76 | * This client does not want any notifications. | 73 | * This client does not want any notifications. |
77 | */ | 74 | */ |
@@ -93,8 +90,7 @@ enum GNUNET_NAT_RegisterFlags | |||
93 | /** | 90 | /** |
94 | * Message sent by a client to register with its addresses. | 91 | * Message sent by a client to register with its addresses. |
95 | */ | 92 | */ |
96 | struct GNUNET_NAT_RegisterMessage | 93 | struct GNUNET_NAT_RegisterMessage { |
97 | { | ||
98 | /** | 94 | /** |
99 | * Header with type #GNUNET_MESSAGE_TYPE_NAT_REGISTER | 95 | * Header with type #GNUNET_MESSAGE_TYPE_NAT_REGISTER |
100 | */ | 96 | */ |
@@ -127,15 +123,13 @@ struct GNUNET_NAT_RegisterMessage | |||
127 | sockaddr' */ | 123 | sockaddr' */ |
128 | 124 | ||
129 | /* Followed by @e str_len section name to use for options */ | 125 | /* Followed by @e str_len section name to use for options */ |
130 | |||
131 | }; | 126 | }; |
132 | 127 | ||
133 | 128 | ||
134 | /** | 129 | /** |
135 | * Client telling the service to (possibly) handle a STUN message. | 130 | * Client telling the service to (possibly) handle a STUN message. |
136 | */ | 131 | */ |
137 | struct GNUNET_NAT_HandleStunMessage | 132 | struct GNUNET_NAT_HandleStunMessage { |
138 | { | ||
139 | /** | 133 | /** |
140 | * Header with type #GNUNET_MESSAGE_TYPE_NAT_HANDLE_STUN | 134 | * Header with type #GNUNET_MESSAGE_TYPE_NAT_HANDLE_STUN |
141 | */ | 135 | */ |
@@ -160,8 +154,7 @@ struct GNUNET_NAT_HandleStunMessage | |||
160 | /** | 154 | /** |
161 | * Client asking the service to initiate connection reversal. | 155 | * Client asking the service to initiate connection reversal. |
162 | */ | 156 | */ |
163 | struct GNUNET_NAT_RequestConnectionReversalMessage | 157 | struct GNUNET_NAT_RequestConnectionReversalMessage { |
164 | { | ||
165 | /** | 158 | /** |
166 | * Header with type #GNUNET_MESSAGE_TYPE_NAT_REQUEST_CONNECTION_REVERSAL | 159 | * Header with type #GNUNET_MESSAGE_TYPE_NAT_REQUEST_CONNECTION_REVERSAL |
167 | */ | 160 | */ |
@@ -180,31 +173,27 @@ struct GNUNET_NAT_RequestConnectionReversalMessage | |||
180 | /* followed by a `struct sockaddr` of @e local_addr_size bytes */ | 173 | /* followed by a `struct sockaddr` of @e local_addr_size bytes */ |
181 | 174 | ||
182 | /* followed by a `struct sockaddr` of @e remote_addr_size bytes */ | 175 | /* followed by a `struct sockaddr` of @e remote_addr_size bytes */ |
183 | |||
184 | }; | 176 | }; |
185 | 177 | ||
186 | 178 | ||
187 | /** | 179 | /** |
188 | * Service telling a client that connection reversal was requested. | 180 | * Service telling a client that connection reversal was requested. |
189 | */ | 181 | */ |
190 | struct GNUNET_NAT_ConnectionReversalRequestedMessage | 182 | struct GNUNET_NAT_ConnectionReversalRequestedMessage { |
191 | { | ||
192 | /** | 183 | /** |
193 | * Header with type #GNUNET_MESSAGE_TYPE_NAT_CONNECTION_REVERSAL_REQUESTED | 184 | * Header with type #GNUNET_MESSAGE_TYPE_NAT_CONNECTION_REVERSAL_REQUESTED |
194 | */ | 185 | */ |
195 | struct GNUNET_MessageHeader header; | 186 | struct GNUNET_MessageHeader header; |
196 | 187 | ||
197 | /* followed by a `struct sockaddr_in` */ | 188 | /* followed by a `struct sockaddr_in` */ |
198 | |||
199 | }; | 189 | }; |
200 | 190 | ||
201 | 191 | ||
202 | /** | 192 | /** |
203 | * Service notifying the client about changes in the set of | 193 | * Service notifying the client about changes in the set of |
204 | * addresses it has. | 194 | * addresses it has. |
205 | */ | 195 | */ |
206 | struct GNUNET_NAT_AddressChangeNotificationMessage | 196 | struct GNUNET_NAT_AddressChangeNotificationMessage { |
207 | { | ||
208 | /** | 197 | /** |
209 | * Header with type #GNUNET_MESSAGE_TYPE_NAT_ADDRESS_CHANGE | 198 | * Header with type #GNUNET_MESSAGE_TYPE_NAT_ADDRESS_CHANGE |
210 | */ | 199 | */ |
@@ -212,7 +201,7 @@ struct GNUNET_NAT_AddressChangeNotificationMessage | |||
212 | 201 | ||
213 | /** | 202 | /** |
214 | * #GNUNET_YES to add, #GNUNET_NO to remove the address from the list. | 203 | * #GNUNET_YES to add, #GNUNET_NO to remove the address from the list. |
215 | */ | 204 | */ |
216 | int32_t add_remove GNUNET_PACKED; | 205 | int32_t add_remove GNUNET_PACKED; |
217 | 206 | ||
218 | /** | 207 | /** |
@@ -220,7 +209,6 @@ struct GNUNET_NAT_AddressChangeNotificationMessage | |||
220 | */ | 209 | */ |
221 | uint32_t addr_class GNUNET_PACKED; | 210 | uint32_t addr_class GNUNET_PACKED; |
222 | /* followed by a `struct sockaddr` */ | 211 | /* followed by a `struct sockaddr` */ |
223 | |||
224 | }; | 212 | }; |
225 | 213 | ||
226 | 214 | ||