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

Response implementation.

- Added a lot of missing static functions (copied from old
  response API).
- Fixed some bugs.
- Implemented response_init_from_query().

refs #812 @1:00
parent cf856f26
Branches
Tags
No related merge requests found
This diff is collapsed.
......@@ -36,13 +36,16 @@ static const short DNSLIB_MAX_RESPONSE_SIZE = 512;
* stores pointer to the query packet structure in the response packet
* structure.
*
* \warning Never free the query packet structure after calling this function,
* it will be freed when the response structure is freed.
*
* \param response Packet structure representing the response.
* \param query Packet structure representing the query.
*
* \retval DNSLIB_EOK
*/
int dnslib_packet_response_from_query(dnslib_packet_t *response,
dnslib_packet_t *query);
int dnslib_response_init_from_query(dnslib_packet_t *response,
dnslib_packet_t *query);
/*!
* \brief Sets the OPT RR of the response.
......
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