From: Christian Grothoff Date: Wed, 4 Jan 2012 10:42:58 +0000 (+0000) Subject: -dns parser basics X-Git-Tag: initial-import-from-subversion-38251~15437 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3d7d5697cbc20ded49886a450937512b317f4d83;p=oweals%2Fgnunet.git -dns parser basics --- diff --git a/src/dns/dnsparser.c b/src/dns/dnsparser.c index 53c571edd..8e2818fd8 100644 --- a/src/dns/dnsparser.c +++ b/src/dns/dnsparser.c @@ -22,9 +22,10 @@ * @file dns/dnsparser.c * @brief helper library to parse DNS packets. * @author Philipp Toelke + * @author Christian Grothoff */ - #include "platform.h" +#include "gnunet_util_lib.h" #include "gnunet_dnsparser_lib.h" @@ -33,7 +34,7 @@ GNUNET_NETWORK_STRUCT_BEGIN struct dns_header { uint16_t id GNUNET_PACKED; - struct GNUNET_DNSPARSER_Flags flags GNUNET_PACKED; + struct GNUNET_DNSPARSER_Flags flags; uint16_t query_count GNUNET_PACKED; // number of questions uint16_t answer_rcount GNUNET_PACKED; // number of answers uint16_t authority_rcount GNUNET_PACKED; // number of authority-records diff --git a/src/include/gnunet_dnsparser_lib.h b/src/include/gnunet_dnsparser_lib.h index 0fd74b7cf..ef2ec389f 100644 --- a/src/include/gnunet_dnsparser_lib.h +++ b/src/include/gnunet_dnsparser_lib.h @@ -22,6 +22,7 @@ * @file include/gnunet_dnsparse_lib.h * @brief API for helper library to parse DNS packets. * @author Philipp Toelke + * @author Christian Grothoff */ #ifndef GNUNET_DNSPARSER_LIB_H #define GNUNET_DNSPARSER_LIB_H