aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_tun_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-06 20:55:28 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-06 20:55:28 +0000
commit61c39c60565b386e0e12ea669556b030e8cd7180 (patch)
tree59109aeab8297bdc996faca8c4e38ec7426c36cf /src/include/gnunet_tun_lib.h
parent780eb09dd8040ecf8649d40ddf8314464e0fc48e (diff)
downloadgnunet-61c39c60565b386e0e12ea669556b030e8cd7180.tar.gz
gnunet-61c39c60565b386e0e12ea669556b030e8cd7180.zip
-remove trailing whitespace
Diffstat (limited to 'src/include/gnunet_tun_lib.h')
-rw-r--r--src/include/gnunet_tun_lib.h98
1 files changed, 49 insertions, 49 deletions
diff --git a/src/include/gnunet_tun_lib.h b/src/include/gnunet_tun_lib.h
index ff24cb542..17cec8d12 100644
--- a/src/include/gnunet_tun_lib.h
+++ b/src/include/gnunet_tun_lib.h
@@ -62,12 +62,12 @@ GNUNET_NETWORK_STRUCT_BEGIN
62 62
63/** 63/**
64 * Header from Linux TUN interface. 64 * Header from Linux TUN interface.
65 */ 65 */
66struct GNUNET_TUN_Layer2PacketHeader 66struct GNUNET_TUN_Layer2PacketHeader
67{ 67{
68 /** 68 /**
69 * Some flags (unused). 69 * Some flags (unused).
70 */ 70 */
71 uint16_t flags GNUNET_PACKED; 71 uint16_t flags GNUNET_PACKED;
72 72
73 /** 73 /**
@@ -97,7 +97,7 @@ struct GNUNET_TUN_IPv4Header
97 * Length of the packet, including this header. 97 * Length of the packet, including this header.
98 */ 98 */
99 uint16_t total_length GNUNET_PACKED; 99 uint16_t total_length GNUNET_PACKED;
100 100
101 /** 101 /**
102 * Unique random ID for matching up fragments. 102 * Unique random ID for matching up fragments.
103 */ 103 */
@@ -124,12 +124,12 @@ struct GNUNET_TUN_IPv4Header
124 124
125 /** 125 /**
126 * Origin of the packet. 126 * Origin of the packet.
127 */ 127 */
128 struct in_addr source_address GNUNET_PACKED; 128 struct in_addr source_address GNUNET_PACKED;
129 129
130 /** 130 /**
131 * Destination of the packet. 131 * Destination of the packet.
132 */ 132 */
133 struct in_addr destination_address GNUNET_PACKED; 133 struct in_addr destination_address GNUNET_PACKED;
134} GNUNET_GCC_STRUCT_LAYOUT; 134} GNUNET_GCC_STRUCT_LAYOUT;
135 135
@@ -168,12 +168,12 @@ struct GNUNET_TUN_IPv6Header
168 168
169 /** 169 /**
170 * Origin of the packet. 170 * Origin of the packet.
171 */ 171 */
172 struct in6_addr source_address GNUNET_PACKED; 172 struct in6_addr source_address GNUNET_PACKED;
173 173
174 /** 174 /**
175 * Destination of the packet. 175 * Destination of the packet.
176 */ 176 */
177 struct in6_addr destination_address GNUNET_PACKED; 177 struct in6_addr destination_address GNUNET_PACKED;
178} GNUNET_GCC_STRUCT_LAYOUT; 178} GNUNET_GCC_STRUCT_LAYOUT;
179 179
@@ -222,7 +222,7 @@ struct GNUNET_TUN_TcpHeader
222 unsigned int reserved : 4 GNUNET_PACKED; 222 unsigned int reserved : 4 GNUNET_PACKED;
223#else 223#else
224 #error byteorder undefined 224 #error byteorder undefined
225#endif 225#endif
226 226
227 /** 227 /**
228 * Flags (SYN, FIN, ACK, etc.) 228 * Flags (SYN, FIN, ACK, etc.)
@@ -316,108 +316,108 @@ struct GNUNET_TUN_DnsFlags
316 /** 316 /**
317 * Set to 1 if recursion is desired (client -> server) 317 * Set to 1 if recursion is desired (client -> server)
318 */ 318 */
319 unsigned int recursion_desired : 1 GNUNET_PACKED; 319 unsigned int recursion_desired : 1 GNUNET_PACKED;
320 320
321 /** 321 /**
322 * Set to 1 if message is truncated 322 * Set to 1 if message is truncated
323 */ 323 */
324 unsigned int message_truncated : 1 GNUNET_PACKED; 324 unsigned int message_truncated : 1 GNUNET_PACKED;
325 325
326 /** 326 /**
327 * Set to 1 if this is an authoritative answer 327 * Set to 1 if this is an authoritative answer
328 */ 328 */
329 unsigned int authoritative_answer : 1 GNUNET_PACKED; 329 unsigned int authoritative_answer : 1 GNUNET_PACKED;
330 330
331 /** 331 /**
332 * See GNUNET_TUN_DNS_OPCODE_ defines. 332 * See GNUNET_TUN_DNS_OPCODE_ defines.
333 */ 333 */
334 unsigned int opcode : 4 GNUNET_PACKED; 334 unsigned int opcode : 4 GNUNET_PACKED;
335 335
336 /** 336 /**
337 * query:0, response:1 337 * query:0, response:1
338 */ 338 */
339 unsigned int query_or_response : 1 GNUNET_PACKED; 339 unsigned int query_or_response : 1 GNUNET_PACKED;
340 340
341 /** 341 /**
342 * See GNUNET_TUN_DNS_RETURN_CODE_ defines. 342 * See GNUNET_TUN_DNS_RETURN_CODE_ defines.
343 */ 343 */
344 unsigned int return_code : 4 GNUNET_PACKED; 344 unsigned int return_code : 4 GNUNET_PACKED;
345 345
346 /** 346 /**
347 * See RFC 4035. 347 * See RFC 4035.
348 */ 348 */
349 unsigned int checking_disabled : 1 GNUNET_PACKED; 349 unsigned int checking_disabled : 1 GNUNET_PACKED;
350 350
351 /** 351 /**
352 * Response has been cryptographically verified, RFC 4035. 352 * Response has been cryptographically verified, RFC 4035.
353 */ 353 */
354 unsigned int authenticated_data : 1 GNUNET_PACKED; 354 unsigned int authenticated_data : 1 GNUNET_PACKED;
355 355
356 /** 356 /**
357 * Always zero. 357 * Always zero.
358 */ 358 */
359 unsigned int zero : 1 GNUNET_PACKED; 359 unsigned int zero : 1 GNUNET_PACKED;
360 360
361 /** 361 /**
362 * Set to 1 if recursion is available (server -> client) 362 * Set to 1 if recursion is available (server -> client)
363 */ 363 */
364 unsigned int recursion_available : 1 GNUNET_PACKED; 364 unsigned int recursion_available : 1 GNUNET_PACKED;
365#elif __BYTE_ORDER == __BIG_ENDIAN 365#elif __BYTE_ORDER == __BIG_ENDIAN
366 366
367 /** 367 /**
368 * query:0, response:1 368 * query:0, response:1
369 */ 369 */
370 unsigned int query_or_response : 1 GNUNET_PACKED; 370 unsigned int query_or_response : 1 GNUNET_PACKED;
371 371
372 /** 372 /**
373 * See GNUNET_TUN_DNS_OPCODE_ defines. 373 * See GNUNET_TUN_DNS_OPCODE_ defines.
374 */ 374 */
375 unsigned int opcode : 4 GNUNET_PACKED; 375 unsigned int opcode : 4 GNUNET_PACKED;
376 376
377 /** 377 /**
378 * Set to 1 if this is an authoritative answer 378 * Set to 1 if this is an authoritative answer
379 */ 379 */
380 unsigned int authoritative_answer : 1 GNUNET_PACKED; 380 unsigned int authoritative_answer : 1 GNUNET_PACKED;
381 381
382 /** 382 /**
383 * Set to 1 if message is truncated 383 * Set to 1 if message is truncated
384 */ 384 */
385 unsigned int message_truncated : 1 GNUNET_PACKED; 385 unsigned int message_truncated : 1 GNUNET_PACKED;
386 386
387 /** 387 /**
388 * Set to 1 if recursion is desired (client -> server) 388 * Set to 1 if recursion is desired (client -> server)
389 */ 389 */
390 unsigned int recursion_desired : 1 GNUNET_PACKED; 390 unsigned int recursion_desired : 1 GNUNET_PACKED;
391
391 392
392
393 /** 393 /**
394 * Set to 1 if recursion is available (server -> client) 394 * Set to 1 if recursion is available (server -> client)
395 */ 395 */
396 unsigned int recursion_available : 1 GNUNET_PACKED; 396 unsigned int recursion_available : 1 GNUNET_PACKED;
397 397
398 /** 398 /**
399 * Always zero. 399 * Always zero.
400 */ 400 */
401 unsigned int zero : 1 GNUNET_PACKED; 401 unsigned int zero : 1 GNUNET_PACKED;
402 402
403 /** 403 /**
404 * Response has been cryptographically verified, RFC 4035. 404 * Response has been cryptographically verified, RFC 4035.
405 */ 405 */
406 unsigned int authenticated_data : 1 GNUNET_PACKED; 406 unsigned int authenticated_data : 1 GNUNET_PACKED;
407 407
408 /** 408 /**
409 * See RFC 4035. 409 * See RFC 4035.
410 */ 410 */
411 unsigned int checking_disabled : 1 GNUNET_PACKED; 411 unsigned int checking_disabled : 1 GNUNET_PACKED;
412 412
413 /** 413 /**
414 * See GNUNET_TUN_DNS_RETURN_CODE_ defines. 414 * See GNUNET_TUN_DNS_RETURN_CODE_ defines.
415 */ 415 */
416 unsigned int return_code : 4 GNUNET_PACKED; 416 unsigned int return_code : 4 GNUNET_PACKED;
417#else 417#else
418 #error byteorder undefined 418 #error byteorder undefined
419#endif 419#endif
420 420
421} GNUNET_GCC_STRUCT_LAYOUT; 421} GNUNET_GCC_STRUCT_LAYOUT;
422 422
423 423
@@ -468,18 +468,18 @@ struct GNUNET_TUN_DnsSoaRecord
468 * The version number of the original copy of the zone. (NBO) 468 * The version number of the original copy of the zone. (NBO)
469 */ 469 */
470 uint32_t serial GNUNET_PACKED; 470 uint32_t serial GNUNET_PACKED;
471 471
472 /** 472 /**
473 * Time interval before the zone should be refreshed. (NBO) 473 * Time interval before the zone should be refreshed. (NBO)
474 */ 474 */
475 uint32_t refresh GNUNET_PACKED; 475 uint32_t refresh GNUNET_PACKED;
476 476
477 /** 477 /**
478 * Time interval that should elapse before a failed refresh should 478 * Time interval that should elapse before a failed refresh should
479 * be retried. (NBO) 479 * be retried. (NBO)
480 */ 480 */
481 uint32_t retry GNUNET_PACKED; 481 uint32_t retry GNUNET_PACKED;
482 482
483 /** 483 /**
484 * Time value that specifies the upper limit on the time interval 484 * Time value that specifies the upper limit on the time interval
485 * that can elapse before the zone is no longer authoritative. (NBO) 485 * that can elapse before the zone is no longer authoritative. (NBO)
@@ -654,12 +654,12 @@ struct GNUNET_TUN_DnsRecordLine
654 */ 654 */
655struct GNUNET_TUN_IcmpHeader { 655struct GNUNET_TUN_IcmpHeader {
656 uint8_t type; 656 uint8_t type;
657 uint8_t code; 657 uint8_t code;
658 uint16_t crc GNUNET_PACKED; 658 uint16_t crc GNUNET_PACKED;
659 659
660 union { 660 union {
661 /** 661 /**
662 * ICMP Echo (request/reply) 662 * ICMP Echo (request/reply)
663 */ 663 */
664 struct { 664 struct {
665 uint16_t identifier GNUNET_PACKED; 665 uint16_t identifier GNUNET_PACKED;
@@ -667,7 +667,7 @@ struct GNUNET_TUN_IcmpHeader {
667 } echo; 667 } echo;
668 668
669 /** 669 /**
670 * ICMP Destination Unreachable (RFC 1191) 670 * ICMP Destination Unreachable (RFC 1191)
671 */ 671 */
672 struct ih_pmtu { 672 struct ih_pmtu {
673 uint16_t empty GNUNET_PACKED; 673 uint16_t empty GNUNET_PACKED;
@@ -676,7 +676,7 @@ struct GNUNET_TUN_IcmpHeader {
676 } destination_unreachable; 676 } destination_unreachable;
677 677
678 /** 678 /**
679 * ICMP Redirect 679 * ICMP Redirect
680 */ 680 */
681 struct in_addr redirect_gateway_address GNUNET_PACKED; 681 struct in_addr redirect_gateway_address GNUNET_PACKED;
682 682