From 901f34840b0cd3dc197828d642b7b5e882e8fc00 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 21 Dec 2010 20:53:58 +1100 Subject: s4-dns: set dwSerial and dwFlags we are waiting on full docs on these, but this is better than zero Pair-Programmed-With: Andrew Bartlett Autobuild-User: Andrew Tridgell Autobuild-Date: Tue Dec 21 12:05:51 CET 2010 on sn-devel-104 --- source4/dns_server/dlz_bind9.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source4') diff --git a/source4/dns_server/dlz_bind9.c b/source4/dns_server/dlz_bind9.c index 1b522632aa..83790c8da0 100644 --- a/source4/dns_server/dlz_bind9.c +++ b/source4/dns_server/dlz_bind9.c @@ -38,6 +38,7 @@ struct dlz_bind9_data { struct tevent_context *ev_ctx; struct loadparm_context *lp; int *transaction_token; + uint32_t soa_serial; /* helper functions from the dlz_dlopen driver */ void (*log)(int level, const char *fmt, ...); @@ -162,6 +163,8 @@ static bool b9_format(struct dlz_bind9_data *state, return false; } + state->soa_serial = rec->data.soa.serial; + *data = talloc_asprintf(mem_ctx, "%s %s %u %u %u %u %u", mname, rec->data.soa.rname, @@ -1187,6 +1190,10 @@ _PUBLIC_ isc_result_t dlz_addrdataset(const char *name, const char *rdatastr, vo return ISC_R_NOMEMORY; } + /* we're waiting on docs for this field */ + rec->dwFlags = 0x0000f005; + rec->dwSerial = state->soa_serial; + if (!b9_parse(state, rdatastr, rec)) { state->log(ISC_LOG_INFO, "samba_dlz: failed to parse rdataset '%s'", rdatastr); talloc_free(rec); -- cgit