diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-06 21:57:50 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-06 21:57:50 +0000 |
commit | 7918527acf021ad8753ead08334d6a6ac71084c4 (patch) | |
tree | 5157211fc30fce830fd9b1e96e7f83681b351b70 /src/include/gnunet_tun_lib.h | |
parent | 6332c8ffbc8f63a8006a3283b95f3e3abae1e8db (diff) | |
download | gnunet-7918527acf021ad8753ead08334d6a6ac71084c4.tar.gz gnunet-7918527acf021ad8753ead08334d6a6ac71084c4.zip |
-adding CERT record support to dnsparser
Diffstat (limited to 'src/include/gnunet_tun_lib.h')
-rw-r--r-- | src/include/gnunet_tun_lib.h | 38 |
1 files changed, 34 insertions, 4 deletions
diff --git a/src/include/gnunet_tun_lib.h b/src/include/gnunet_tun_lib.h index efadc4d14..87b60a479 100644 --- a/src/include/gnunet_tun_lib.h +++ b/src/include/gnunet_tun_lib.h | |||
@@ -530,6 +530,31 @@ struct GNUNET_TUN_DnsSrvRecord | |||
530 | 530 | ||
531 | 531 | ||
532 | /** | 532 | /** |
533 | * Payload of DNS CERT record. | ||
534 | */ | ||
535 | struct GNUNET_TUN_DnsCertRecord | ||
536 | { | ||
537 | |||
538 | /** | ||
539 | * Certificate type | ||
540 | */ | ||
541 | uint16_t cert_type; | ||
542 | |||
543 | /** | ||
544 | * Certificate KeyTag | ||
545 | */ | ||
546 | uint16_t cert_tag; | ||
547 | |||
548 | /** | ||
549 | * Algorithm | ||
550 | */ | ||
551 | uint8_t algorithm; | ||
552 | |||
553 | /* Followed by the certificate */ | ||
554 | }; | ||
555 | |||
556 | |||
557 | /** | ||
533 | * Payload of DNSSEC TLSA record. | 558 | * Payload of DNSSEC TLSA record. |
534 | * http://datatracker.ietf.org/doc/draft-ietf-dane-protocol/ | 559 | * http://datatracker.ietf.org/doc/draft-ietf-dane-protocol/ |
535 | */ | 560 | */ |
@@ -594,6 +619,7 @@ struct GNUNET_TUN_GnsVpnRecord | |||
594 | /* followed by the servicename */ | 619 | /* followed by the servicename */ |
595 | }; | 620 | }; |
596 | 621 | ||
622 | |||
597 | /** | 623 | /** |
598 | * DNS query prefix. | 624 | * DNS query prefix. |
599 | */ | 625 | */ |
@@ -658,16 +684,19 @@ struct GNUNET_TUN_DnsRecordLine | |||
658 | /** | 684 | /** |
659 | * ICMP header. | 685 | * ICMP header. |
660 | */ | 686 | */ |
661 | struct GNUNET_TUN_IcmpHeader { | 687 | struct GNUNET_TUN_IcmpHeader |
688 | { | ||
662 | uint8_t type; | 689 | uint8_t type; |
663 | uint8_t code; | 690 | uint8_t code; |
664 | uint16_t crc GNUNET_PACKED; | 691 | uint16_t crc GNUNET_PACKED; |
665 | 692 | ||
666 | union { | 693 | union |
694 | { | ||
667 | /** | 695 | /** |
668 | * ICMP Echo (request/reply) | 696 | * ICMP Echo (request/reply) |
669 | */ | 697 | */ |
670 | struct { | 698 | struct |
699 | { | ||
671 | uint16_t identifier GNUNET_PACKED; | 700 | uint16_t identifier GNUNET_PACKED; |
672 | uint16_t sequence_number GNUNET_PACKED; | 701 | uint16_t sequence_number GNUNET_PACKED; |
673 | } echo; | 702 | } echo; |
@@ -675,7 +704,8 @@ struct GNUNET_TUN_IcmpHeader { | |||
675 | /** | 704 | /** |
676 | * ICMP Destination Unreachable (RFC 1191) | 705 | * ICMP Destination Unreachable (RFC 1191) |
677 | */ | 706 | */ |
678 | struct ih_pmtu { | 707 | struct ih_pmtu |
708 | { | ||
679 | uint16_t empty GNUNET_PACKED; | 709 | uint16_t empty GNUNET_PACKED; |
680 | uint16_t next_hop_mtu GNUNET_PACKED; | 710 | uint16_t next_hop_mtu GNUNET_PACKED; |
681 | /* followed by original IP header + first 8 bytes of original IP datagram */ | 711 | /* followed by original IP header + first 8 bytes of original IP datagram */ |