diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-06 20:55:28 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-06 20:55:28 +0000 |
commit | 61c39c60565b386e0e12ea669556b030e8cd7180 (patch) | |
tree | 59109aeab8297bdc996faca8c4e38ec7426c36cf /src/include/gnunet_dnsparser_lib.h | |
parent | 780eb09dd8040ecf8649d40ddf8314464e0fc48e (diff) | |
download | gnunet-61c39c60565b386e0e12ea669556b030e8cd7180.tar.gz gnunet-61c39c60565b386e0e12ea669556b030e8cd7180.zip |
-remove trailing whitespace
Diffstat (limited to 'src/include/gnunet_dnsparser_lib.h')
-rw-r--r-- | src/include/gnunet_dnsparser_lib.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/include/gnunet_dnsparser_lib.h b/src/include/gnunet_dnsparser_lib.h index c4b4546c8..68b6597ff 100644 --- a/src/include/gnunet_dnsparser_lib.h +++ b/src/include/gnunet_dnsparser_lib.h | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file include/gnunet_dnsparser_lib.h | 22 | * @file include/gnunet_dnsparser_lib.h |
23 | * @brief API for helper library to parse DNS packets. | 23 | * @brief API for helper library to parse DNS packets. |
24 | * @author Philipp Toelke | 24 | * @author Philipp Toelke |
25 | * @author Christian Grothoff | 25 | * @author Christian Grothoff |
26 | */ | 26 | */ |
@@ -64,7 +64,7 @@ struct GNUNET_DNSPARSER_Query | |||
64 | 64 | ||
65 | /** | 65 | /** |
66 | * Name of the record that the query is for (0-terminated). | 66 | * Name of the record that the query is for (0-terminated). |
67 | * In UTF-8 format. The library will convert from and to DNS-IDNA | 67 | * In UTF-8 format. The library will convert from and to DNS-IDNA |
68 | * as necessary. Use 'GNUNET_DNSPARSER_check_label' to test if an | 68 | * as necessary. Use 'GNUNET_DNSPARSER_check_label' to test if an |
69 | * individual label is well-formed. If a given name is not well-formed, | 69 | * individual label is well-formed. If a given name is not well-formed, |
70 | * creating the DNS packet will fail. | 70 | * creating the DNS packet will fail. |
@@ -89,7 +89,7 @@ struct GNUNET_DNSPARSER_Query | |||
89 | */ | 89 | */ |
90 | struct GNUNET_DNSPARSER_MxRecord | 90 | struct GNUNET_DNSPARSER_MxRecord |
91 | { | 91 | { |
92 | 92 | ||
93 | /** | 93 | /** |
94 | * Preference for this entry (lower value is higher preference). | 94 | * Preference for this entry (lower value is higher preference). |
95 | */ | 95 | */ |
@@ -97,7 +97,7 @@ struct GNUNET_DNSPARSER_MxRecord | |||
97 | 97 | ||
98 | /** | 98 | /** |
99 | * Name of the mail server. | 99 | * Name of the mail server. |
100 | * In UTF-8 format. The library will convert from and to DNS-IDNA | 100 | * In UTF-8 format. The library will convert from and to DNS-IDNA |
101 | * as necessary. Use 'GNUNET_DNSPARSER_check_label' to test if an | 101 | * as necessary. Use 'GNUNET_DNSPARSER_check_label' to test if an |
102 | * individual label is well-formed. If a given name is not well-formed, | 102 | * individual label is well-formed. If a given name is not well-formed, |
103 | * creating the DNS packet will fail. | 103 | * creating the DNS packet will fail. |
@@ -120,11 +120,11 @@ struct GNUNET_DNSPARSER_MxRecord | |||
120 | */ | 120 | */ |
121 | struct GNUNET_DNSPARSER_SrvRecord | 121 | struct GNUNET_DNSPARSER_SrvRecord |
122 | { | 122 | { |
123 | 123 | ||
124 | /** | 124 | /** |
125 | * Service name without the underscore (!). Note that RFC 6335 clarifies the | 125 | * Service name without the underscore (!). Note that RFC 6335 clarifies the |
126 | * set of legal characters for service names. | 126 | * set of legal characters for service names. |
127 | * In UTF-8 format. The library will convert from and to DNS-IDNA | 127 | * In UTF-8 format. The library will convert from and to DNS-IDNA |
128 | * as necessary. Use 'GNUNET_DNSPARSER_check_label' to test if an | 128 | * as necessary. Use 'GNUNET_DNSPARSER_check_label' to test if an |
129 | * individual label is well-formed. If a given name is not well-formed, | 129 | * individual label is well-formed. If a given name is not well-formed, |
130 | * creating the DNS packet will fail. | 130 | * creating the DNS packet will fail. |
@@ -139,7 +139,7 @@ struct GNUNET_DNSPARSER_SrvRecord | |||
139 | 139 | ||
140 | /** | 140 | /** |
141 | * Domain name for which the record is valid | 141 | * Domain name for which the record is valid |
142 | * In UTF-8 format. The library will convert from and to DNS-IDNA | 142 | * In UTF-8 format. The library will convert from and to DNS-IDNA |
143 | * as necessary. Use 'GNUNET_DNSPARSER_check_label' to test if an | 143 | * as necessary. Use 'GNUNET_DNSPARSER_check_label' to test if an |
144 | * individual label is well-formed. If a given name is not well-formed, | 144 | * individual label is well-formed. If a given name is not well-formed, |
145 | * creating the DNS packet will fail. | 145 | * creating the DNS packet will fail. |
@@ -148,7 +148,7 @@ struct GNUNET_DNSPARSER_SrvRecord | |||
148 | 148 | ||
149 | /** | 149 | /** |
150 | * Hostname offering the service. | 150 | * Hostname offering the service. |
151 | * In UTF-8 format. The library will convert from and to DNS-IDNA | 151 | * In UTF-8 format. The library will convert from and to DNS-IDNA |
152 | * as necessary. Use 'GNUNET_DNSPARSER_check_label' to test if an | 152 | * as necessary. Use 'GNUNET_DNSPARSER_check_label' to test if an |
153 | * individual label is well-formed. If a given name is not well-formed, | 153 | * individual label is well-formed. If a given name is not well-formed, |
154 | * creating the DNS packet will fail. | 154 | * creating the DNS packet will fail. |
@@ -176,17 +176,17 @@ struct GNUNET_DNSPARSER_SrvRecord | |||
176 | 176 | ||
177 | }; | 177 | }; |
178 | 178 | ||
179 | 179 | ||
180 | /** | 180 | /** |
181 | * Information from SOA records (RFC 1035). | 181 | * Information from SOA records (RFC 1035). |
182 | */ | 182 | */ |
183 | struct GNUNET_DNSPARSER_SoaRecord | 183 | struct GNUNET_DNSPARSER_SoaRecord |
184 | { | 184 | { |
185 | 185 | ||
186 | /** | 186 | /** |
187 | * The domainname of the name server that was the | 187 | * The domainname of the name server that was the |
188 | * original or primary source of data for this zone. | 188 | * original or primary source of data for this zone. |
189 | * In UTF-8 format. The library will convert from and to DNS-IDNA | 189 | * In UTF-8 format. The library will convert from and to DNS-IDNA |
190 | * as necessary. Use #GNUNET_DNSPARSER_check_label to test if an | 190 | * as necessary. Use #GNUNET_DNSPARSER_check_label to test if an |
191 | * individual label is well-formed. If a given name is not well-formed, | 191 | * individual label is well-formed. If a given name is not well-formed, |
192 | * creating the DNS packet will fail. | 192 | * creating the DNS packet will fail. |
@@ -196,7 +196,7 @@ struct GNUNET_DNSPARSER_SoaRecord | |||
196 | /** | 196 | /** |
197 | * A domainname which specifies the mailbox of the | 197 | * A domainname which specifies the mailbox of the |
198 | * person responsible for this zone. | 198 | * person responsible for this zone. |
199 | * In UTF-8 format. The library will convert from and to DNS-IDNA | 199 | * In UTF-8 format. The library will convert from and to DNS-IDNA |
200 | * as necessary. Use 'GNUNET_DNSPARSER_check_label' to test if an | 200 | * as necessary. Use 'GNUNET_DNSPARSER_check_label' to test if an |
201 | * individual label is well-formed. If a given name is not well-formed, | 201 | * individual label is well-formed. If a given name is not well-formed, |
202 | * creating the DNS packet will fail. | 202 | * creating the DNS packet will fail. |
@@ -204,7 +204,7 @@ struct GNUNET_DNSPARSER_SoaRecord | |||
204 | char *rname; | 204 | char *rname; |
205 | 205 | ||
206 | /** | 206 | /** |
207 | * The version number of the original copy of the zone. | 207 | * The version number of the original copy of the zone. |
208 | */ | 208 | */ |
209 | uint32_t serial; | 209 | uint32_t serial; |
210 | 210 | ||
@@ -230,7 +230,7 @@ struct GNUNET_DNSPARSER_SoaRecord | |||
230 | * from this zone. | 230 | * from this zone. |
231 | */ | 231 | */ |
232 | uint32_t minimum_ttl; | 232 | uint32_t minimum_ttl; |
233 | 233 | ||
234 | }; | 234 | }; |
235 | 235 | ||
236 | 236 | ||
@@ -260,7 +260,7 @@ struct GNUNET_DNSPARSER_Record | |||
260 | 260 | ||
261 | /** | 261 | /** |
262 | * Name of the record that the query is for (0-terminated). | 262 | * Name of the record that the query is for (0-terminated). |
263 | * In UTF-8 format. The library will convert from and to DNS-IDNA | 263 | * In UTF-8 format. The library will convert from and to DNS-IDNA |
264 | * as necessary. Use #GNUNET_DNSPARSER_check_label to test if an | 264 | * as necessary. Use #GNUNET_DNSPARSER_check_label to test if an |
265 | * individual label is well-formed. If a given name is not well-formed, | 265 | * individual label is well-formed. If a given name is not well-formed, |
266 | * creating the DNS packet will fail. | 266 | * creating the DNS packet will fail. |
@@ -270,23 +270,23 @@ struct GNUNET_DNSPARSER_Record | |||
270 | /** | 270 | /** |
271 | * Payload of the record (which one of these is valid depends on the 'type'). | 271 | * Payload of the record (which one of these is valid depends on the 'type'). |
272 | */ | 272 | */ |
273 | union | 273 | union |
274 | { | 274 | { |
275 | 275 | ||
276 | /** | 276 | /** |
277 | * For NS, CNAME and PTR records, this is the uncompressed 0-terminated hostname. | 277 | * For NS, CNAME and PTR records, this is the uncompressed 0-terminated hostname. |
278 | * In UTF-8 format. The library will convert from and to DNS-IDNA | 278 | * In UTF-8 format. The library will convert from and to DNS-IDNA |
279 | * as necessary. Use #GNUNET_DNSPARSER_check_label to test if an | 279 | * as necessary. Use #GNUNET_DNSPARSER_check_label to test if an |
280 | * individual label is well-formed. If a given name is not well-formed, | 280 | * individual label is well-formed. If a given name is not well-formed, |
281 | * creating the DNS packet will fail. | 281 | * creating the DNS packet will fail. |
282 | */ | 282 | */ |
283 | char *hostname; | 283 | char *hostname; |
284 | 284 | ||
285 | /** | 285 | /** |
286 | * SOA data for SOA records. | 286 | * SOA data for SOA records. |
287 | */ | 287 | */ |
288 | struct GNUNET_DNSPARSER_SoaRecord *soa; | 288 | struct GNUNET_DNSPARSER_SoaRecord *soa; |
289 | 289 | ||
290 | /** | 290 | /** |
291 | * MX data for MX records. | 291 | * MX data for MX records. |
292 | */ | 292 | */ |
@@ -370,7 +370,7 @@ struct GNUNET_DNSPARSER_Packet | |||
370 | 370 | ||
371 | /** | 371 | /** |
372 | * Bitfield of DNS flags. | 372 | * Bitfield of DNS flags. |
373 | */ | 373 | */ |
374 | struct GNUNET_TUN_DnsFlags flags; | 374 | struct GNUNET_TUN_DnsFlags flags; |
375 | 375 | ||
376 | /** | 376 | /** |
@@ -411,7 +411,7 @@ GNUNET_DNSPARSER_check_name (const char *name); | |||
411 | * processing and manipulation. | 411 | * processing and manipulation. |
412 | * | 412 | * |
413 | * @param udp_payload wire-format of the DNS packet | 413 | * @param udp_payload wire-format of the DNS packet |
414 | * @param udp_payload_length number of bytes in @a udp_payload | 414 | * @param udp_payload_length number of bytes in @a udp_payload |
415 | * @return NULL on error, otherwise the parsed packet | 415 | * @return NULL on error, otherwise the parsed packet |
416 | */ | 416 | */ |
417 | struct GNUNET_DNSPARSER_Packet * | 417 | struct GNUNET_DNSPARSER_Packet * |
@@ -431,7 +431,7 @@ GNUNET_DNSPARSER_free_packet (struct GNUNET_DNSPARSER_Packet *p); | |||
431 | /** | 431 | /** |
432 | * Given a DNS packet @a p, generate the corresponding UDP payload. | 432 | * Given a DNS packet @a p, generate the corresponding UDP payload. |
433 | * Note that we do not attempt to pack the strings with pointers | 433 | * Note that we do not attempt to pack the strings with pointers |
434 | * as this would complicate the code and this is about being | 434 | * as this would complicate the code and this is about being |
435 | * simple and secure, not fast, fancy and broken like bind. | 435 | * simple and secure, not fast, fancy and broken like bind. |
436 | * | 436 | * |
437 | * @param p packet to pack | 437 | * @param p packet to pack |
@@ -645,7 +645,7 @@ GNUNET_DNSPARSER_parse_srv (const char *r_name, | |||
645 | 645 | ||
646 | /** | 646 | /** |
647 | * Free the given DNS record. | 647 | * Free the given DNS record. |
648 | * | 648 | * |
649 | * @param r record to free | 649 | * @param r record to free |
650 | */ | 650 | */ |
651 | void | 651 | void |