Commit aba2b290 authored by Daniel Salzman's avatar Daniel Salzman

xfr: fix message counters

parent 80695aed
......@@ -332,9 +332,11 @@ static int axfr_answer_packet(knot_pkt_t *pkt, struct xfr_proc *proc)
assert(pkt != NULL);
assert(proc != NULL);
++proc->npkts;
/* Update counters. */
proc->npkts += 1;
proc->nbytes += pkt->size;
// Init zone creator
/* Init zone creator. */
zcreator_t zc = {.z = proc->contents, .master = false, .ret = KNOT_EOK };
const knot_pktsection_t *answer = knot_pkt_section(pkt, KNOT_ANSWER);
......
......@@ -524,6 +524,7 @@ static bool out_of_zone(const knot_rrset_t *rr, struct ixfr_proc *proc)
static int process_ixfrin_packet(knot_pkt_t *pkt, struct answer_data *adata)
{
struct ixfr_proc *ixfr = (struct ixfr_proc *)adata->ext;
// Update counters.
ixfr->proc.npkts += 1;
ixfr->proc.nbytes += pkt->size;
......
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