summaryrefslogtreecommitdiff
path: root/ldns/wire2host.h
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2017-02-03 13:01:00 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2017-02-03 13:01:00 +0000
commitc6342fe2e90510d8d2296423f2ca92818a7b3d18 (patch)
tree0cc9064980c804a7bf5cc6d96c9249950c7e56a9 /ldns/wire2host.h
parent65be028f32ed37dce84f6328d4a7172132c8c224 (diff)
Notes
Diffstat (limited to 'ldns/wire2host.h')
-rw-r--r--ldns/wire2host.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/ldns/wire2host.h b/ldns/wire2host.h
index 53155b30668e..6a7999c31d72 100644
--- a/ldns/wire2host.h
+++ b/ldns/wire2host.h
@@ -99,9 +99,6 @@ extern "C" {
/* Counter of the question section */
#define LDNS_QDCOUNT_OFF 4
-/*
-#define QDCOUNT(wirebuf) (ntohs(*(uint16_t *)(wirebuf+QDCOUNT_OFF)))
-*/
#define LDNS_QDCOUNT(wirebuf) (ldns_read_uint16(wirebuf+LDNS_QDCOUNT_OFF))
/* Counter of the answer section */
@@ -129,7 +126,7 @@ extern "C" {
ldns_status ldns_wire2pkt(ldns_pkt **packet, const uint8_t *data, size_t len);
/**
- * converts the data on the uint8_t bytearray (in wire format) to a DNS packet.
+ * converts the data in the ldns_buffer (in wire format) to a DNS packet.
* This function will initialize and allocate memory space for the packet
* structure.
*
@@ -137,7 +134,7 @@ ldns_status ldns_wire2pkt(ldns_pkt **packet, const uint8_t *data, size_t len);
* \param[in] buffer the buffer with the data
* \return LDNS_STATUS_OK if everything succeeds, error otherwise
*/
-ldns_status ldns_buffer2pkt_wire(ldns_pkt **packet, ldns_buffer *buffer);
+ldns_status ldns_buffer2pkt_wire(ldns_pkt **packet, const ldns_buffer *buffer);
/**
* converts the data on the uint8_t bytearray (in wire format) to a DNS