Commit 4e5f919c authored by Marek Vavrusa's avatar Marek Vavrusa

dname refactoring - _wire_size -> realsize.

parent 078e53aa
......@@ -51,7 +51,7 @@ knot_dname_t *knot_dname_parse(const uint8_t *pkt, size_t *pos, size_t maxpos)
return NULL;
/* Calculate decompressed length. */
int decompressed_len = knot_dname_wire_size(name, pkt);
int decompressed_len = knot_dname_realsize(name, pkt);
if (decompressed_len < parsed)
return NULL;
......@@ -324,7 +324,7 @@ int knot_dname_size(const knot_dname_t *name)
/*----------------------------------------------------------------------------*/
int knot_dname_wire_size(const knot_dname_t *name, const uint8_t *pkt)
int knot_dname_realsize(const knot_dname_t *name, const uint8_t *pkt)
{
return knot_dname_prefixlen(name, KNOT_DNAME_MAXLABELS, pkt);
}
......
......@@ -162,7 +162,7 @@ int knot_dname_size(const knot_dname_t *name);
* \retval size of the domain name
* \retval KNOT_ERROR
*/
int knot_dname_wire_size(const knot_dname_t *name, const uint8_t *pkt);
int knot_dname_realsize(const knot_dname_t *name, const uint8_t *pkt);
/*!
* \brief Checks if one domain name is a subdomain of other.
......@@ -294,7 +294,7 @@ int knot_dname_prefixlen(const uint8_t *name, unsigned nlabels, const uint8_t *p
int knot_dname_labels(const uint8_t *name, const uint8_t *pkt);
/*!
* \brief Align name end-to-end and return common number of suffix labels.
* \brief Align name end-to-end and return number of common suffix labels.
*/
int knot_dname_align(const uint8_t **d1, uint8_t d1_labels,
const uint8_t **d2, uint8_t d2_labels,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment