Skip to content
Snippets Groups Projects
Commit 1a851929 authored by Lubos Slovak's avatar Lubos Slovak
Browse files

Added dname_parse_from_wire() API.

- Not implemented yet.
- Will be used to parse dnames from packet.

refs #816
parent 0c8ca51c
Branches
Tags
No related merge requests found
......@@ -430,6 +430,16 @@ dnslib_dname_t *dnslib_dname_new_from_wire(const uint8_t *name, uint size,
/*----------------------------------------------------------------------------*/
dnslib_dname_t *dnslib_dname_parse_from_wire(const uint8_t *name,
unsigned int max_size,
struct dnslib_node *node)
{
/*! @todo Implement! */
return NULL;
}
/*----------------------------------------------------------------------------*/
int dnslib_dname_from_wire(const uint8_t *name, uint size,
struct dnslib_node *node, dnslib_dname_t *target)
{
......
......@@ -91,6 +91,10 @@ dnslib_dname_t *dnslib_dname_new_from_wire(const uint8_t *name,
unsigned int size,
struct dnslib_node *node);
dnslib_dname_t *dnslib_dname_parse_from_wire(const uint8_t *name,
unsigned int max_size,
struct dnslib_node *node);
/*!
* \brief Initializes domain name by the name given in wire format.
*
......
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