[AFS3-std] DNS SRV Resource Records for AFS
Russ Allbery
rra@stanford.edu
Mon, 05 Oct 2009 13:54:54 -0700
Jeffrey Altman <jaltman@secure-endpoints.com> writes:
> Derrick Brashear wrote:
>> Actually, it's not.
>>
>> ttl = (p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3];
>> p += 4; /* Skip the TTL */
>>
>> ...
>> if (!minttl || ttl < minttl)
>> minttl = ttl;
>> ...
>> acellInfo->timeout = minttl ? (time(0) + minttl) : 0;
> Even better. There is nothing to say or fix. :-)
Wow, I'm surprised.
I do think that it would be worthwhile to mention this explicitly in the
draft, just because I didn't think of it and therefore other implementors
might not. I'll try to come up with some language for that.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>