aboutsummaryrefslogtreecommitdiff
path: root/src/dns
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-01-04 10:42:58 +0000
committerChristian Grothoff <christian@grothoff.org>2012-01-04 10:42:58 +0000
commit3d7d5697cbc20ded49886a450937512b317f4d83 (patch)
tree3f62083a543c084c7bc7f1afe3388d16ac8c93ac /src/dns
parente7e48851ecbaad0a42d234c19ac2cc428e98f764 (diff)
downloadgnunet-3d7d5697cbc20ded49886a450937512b317f4d83.tar.gz
gnunet-3d7d5697cbc20ded49886a450937512b317f4d83.zip
-dns parser basics
Diffstat (limited to 'src/dns')
-rw-r--r--src/dns/dnsparser.c5
1 files changed, 3 insertions, 2 deletions
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 @@
22 * @file dns/dnsparser.c 22 * @file dns/dnsparser.c
23 * @brief helper library to parse DNS packets. 23 * @brief helper library to parse DNS packets.
24 * @author Philipp Toelke 24 * @author Philipp Toelke
25 * @author Christian Grothoff
25 */ 26 */
26
27#include "platform.h" 27#include "platform.h"
28#include "gnunet_util_lib.h"
28#include "gnunet_dnsparser_lib.h" 29#include "gnunet_dnsparser_lib.h"
29 30
30 31
@@ -33,7 +34,7 @@ GNUNET_NETWORK_STRUCT_BEGIN
33struct dns_header 34struct dns_header
34{ 35{
35 uint16_t id GNUNET_PACKED; 36 uint16_t id GNUNET_PACKED;
36 struct GNUNET_DNSPARSER_Flags flags GNUNET_PACKED; 37 struct GNUNET_DNSPARSER_Flags flags;
37 uint16_t query_count GNUNET_PACKED; // number of questions 38 uint16_t query_count GNUNET_PACKED; // number of questions
38 uint16_t answer_rcount GNUNET_PACKED; // number of answers 39 uint16_t answer_rcount GNUNET_PACKED; // number of answers
39 uint16_t authority_rcount GNUNET_PACKED; // number of authority-records 40 uint16_t authority_rcount GNUNET_PACKED; // number of authority-records