diff options
author | Philipp Tölke <toelke@in.tum.de> | 2010-10-05 18:20:20 +0000 |
---|---|---|
committer | Philipp Tölke <toelke@in.tum.de> | 2010-10-05 18:20:20 +0000 |
commit | 852b4f4ff636f3005b03be5e2195a00dd0d1b7e9 (patch) | |
tree | f92b6c510fd0356c22d557fea56de709d97c3e0f /src/vpn/gnunet-vpn-packet.h | |
parent | bd4b7b43485ed8cf1817f41cd8793885a3a5b5c5 (diff) | |
download | gnunet-852b4f4ff636f3005b03be5e2195a00dd0d1b7e9.tar.gz gnunet-852b4f4ff636f3005b03be5e2195a00dd0d1b7e9.zip |
parse a complete dns-packet-struct to another struct so as to completly have
it in memory
Diffstat (limited to 'src/vpn/gnunet-vpn-packet.h')
-rw-r--r-- | src/vpn/gnunet-vpn-packet.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/vpn/gnunet-vpn-packet.h b/src/vpn/gnunet-vpn-packet.h index 0659215cb..61f274e95 100644 --- a/src/vpn/gnunet-vpn-packet.h +++ b/src/vpn/gnunet-vpn-packet.h | |||
@@ -92,20 +92,22 @@ struct dns_pkt { | |||
92 | 92 | ||
93 | struct dns_pkt_parsed { | 93 | struct dns_pkt_parsed { |
94 | struct dns_static s; | 94 | struct dns_static s; |
95 | struct dns_query* queries; | 95 | struct dns_query** queries; |
96 | struct dns_record* answers; | 96 | struct dns_record** answers; |
97 | struct dns_record* nameservers; | 97 | struct dns_record** nameservers; |
98 | struct dns_record* additional; | 98 | struct dns_record** additional; |
99 | }; | 99 | }; |
100 | 100 | ||
101 | struct dns_query { | 101 | struct dns_query { |
102 | unsigned char* name; | 102 | unsigned char* name; |
103 | unsigned char namelen; | ||
103 | unsigned short qtype; | 104 | unsigned short qtype; |
104 | unsigned short qclass; | 105 | unsigned short qclass; |
105 | }; | 106 | }; |
106 | 107 | ||
107 | struct dns_record { | 108 | struct dns_record { |
108 | unsigned char* name; | 109 | unsigned char* name; |
110 | unsigned char namelen; | ||
109 | unsigned short type; | 111 | unsigned short type; |
110 | unsigned short class; | 112 | unsigned short class; |
111 | unsigned int ttl; | 113 | unsigned int ttl; |