Commit dea4f6c5 authored by Lubos Slovak's avatar Lubos Slovak

Added axfr-in API (not implemented yet).

refs #800
parent cf403c59
......@@ -146,6 +146,8 @@ src/knot/server/udp-handler.c
src/knot/server/udp-handler.h
src/knot/server/zones.c
src/knot/server/zones.h
src/knot/server/axfr-in.c
src/knot/server/axfr-in.h
src/knot/ctl/process.c
src/knot/ctl/process.h
src/knot/conf/cf-lex.l
......
......@@ -213,6 +213,8 @@ libknot_la_SOURCES = \
knot/server/xfr-handler.h \
knot/server/dthreads.h \
knot/server/zones.h \
knot/server/axfr-in.h \
knot/server/axfr-in.c \
knot/server/server.h
libknot_la_LIBADD = @LIBOBJS@
......
#include "knot/server/axfr-in.h"
/*----------------------------------------------------------------------------*/
int axfrin_create_soa_query(const dnslib_dname_t *zone_name, uint8_t *buffer,
size_t *size)
{
return KNOT_ERROR;
}
/*----------------------------------------------------------------------------*/
int axfrin_transfer_needed(const dnslib_zone_t *zone,
const dnslib_packet_t *soa_response)
{
return KNOT_ERROR;
}
/*----------------------------------------------------------------------------*/
int axfrin_create_axfr_query(const dnslib_dname_t *zone_name, uint8_t *buffer,
size_t *size)
{
return KNOT_ERROR;
}
/*!
* \file axfr-in.h
*
* \author Lubos Slovak <lubos.slovak@nic.cz>
*
* \brief AXFR client API.
*
* \addtogroup query_processing
* @{
*/
#ifndef _KNOT_AXFR_IN_H_
#define _KNOT_AXFR_IN_H_
#include <stdint.h>
#include <string.h>
#include "dnslib/dname.h"
#include "dnslib/zone.h"
#include "dnslib/packet.h"
int axfrin_create_soa_query(const dnslib_dname_t *zone_name, uint8_t *buffer,
size_t *size);
int axfrin_transfer_needed(const dnslib_zone_t *zone,
const dnslib_packet_t *soa_response);
int axfrin_create_axfr_query(const dnslib_dname_t *zone_name, uint8_t *buffer,
size_t *size);
#endif
/*! @} */
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