]> git.ipfire.org Git - thirdparty/bind9.git/commit
dns_journal_iter_init() can now return the size of the delta
authorEvan Hunt <each@isc.org>
Sat, 22 Feb 2020 01:05:04 +0000 (17:05 -0800)
committerEvan Hunt <each@isc.org>
Fri, 6 Mar 2020 01:20:16 +0000 (17:20 -0800)
commit52a31a988321ef3cb5a9911bd6e18fdb94efad33
treec9c502329e8d67703379b95cba733782f4771eaa
parentaeef4719e9148f9456c81b153c23dc1a12290398
dns_journal_iter_init() can now return the size of the delta

the call initailizing a journal iterator can now optionally return
to the caller the size in bytes of an IXFR message (not including
DNS header overhead, signatures etc) containing the differences from
the beginning to the ending serial number.

this is calculated by scanning the journal transaction headers to
calculate the transfer size. since journal file records contain a length
field that is not included in IXFR messages, we subtract out the length
of those fields from the overall transaction length.

this necessitated adding an "RR count" field to the journal transaction
header, so we know how many length fields to subract. NOTE: this will
make existing journal files stop working!
lib/dns/include/dns/journal.h
lib/dns/journal.c
lib/dns/zone.c
lib/ns/xfrout.c