[Dnsmasq-discuss] DNSMASQ Cache
John Gilmour
John.Gilmour at alliedtelesis.co.nz
Mon Jun 13 07:16:28 UTC 2022
Hello,
First time user so please bear with me.
I have some quite specific in-house code that relies on the "cache->ttd" value. I have noticed that the function "cache_reload" in "src/cache.c" defines the following variable:
struct crec lrec
Further down in this function it makes non-terminal records for all locally-defined RRs. It may be more of a question but why are the "ttd", "uid" and "ns_id" fields not initialized before the various calls to "make_non_terminals(&lrec)". When I check the value of the "cache->ttd" in this function it's clearly just going to be random.
Is this just an oversight or is deliberately not set?
Best regards,
John.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20220613/c095fb49/attachment.htm>
More information about the Dnsmasq-discuss
mailing list