<div dir="ltr">Thanks Tony, that's very helpful.<div><br></div><div>Charlie</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 20, 2018 at 4:44 PM, Tony Finch <span dir="ltr"><<a href="mailto:dot@dotat.at" target="_blank">dot@dotat.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Charles Hubbard <<a href="mailto:charles.hubbard@edgeintelligence.com">charles.hubbard@<wbr>edgeintelligence.com</a>> wrote:<br>
><br>
> I noticed that the TTL is defined as a signed int32<br>
> <a href="https://www.ietf.org/rfc/rfc1035.txt" rel="noreferrer" target="_blank">https://www.ietf.org/rfc/<wbr>rfc1035.txt</a><br>
> but as an unsigned int32 by ldns.<br>
><br>
> Is this a bug?<br>
<br>
</span>RFC 2181 says it is a bug in RFC 1035 :-)<br>
<br>
<a href="https://tools.ietf.org/html/rfc2181#section-8" rel="noreferrer" target="_blank">https://tools.ietf.org/html/<wbr>rfc2181#section-8</a><br>
<br>
   The definition of values appropriate to the TTL field in STD 13 is<br>
   not as clear as it could be, with respect to how many significant<br>
   bits exist, and whether the value is signed or unsigned.  It is<br>
   hereby specified that a TTL value is an unsigned number, with a<br>
   minimum value of 0, and a maximum value of 2147483647.  That is, a<br>
   maximum of 2^31 - 1.  When transmitted, this value shall be encoded<br>
   in the less significant 31 bits of the 32 bit TTL field, with the<br>
   most significant, or sign, bit set to zero.<br>
<br>
   Implementations should treat TTL values received with the most<br>
   significant bit set as if the entire value received was zero.<br>
<span class="HOEnZb"><font color="#888888"><br>
Tony.<br>
-- <br>
f.anthony.n.finch  <<a href="mailto:dot@dotat.at">dot@dotat.at</a>>  <a href="http://dotat.at/" rel="noreferrer" target="_blank">http://dotat.at/</a><br>
Rockall, Malin: West, veering northwest, 5 to 7, increasing gale 8 at times.<br>
Rough or very rough, occasionally moderate in Malin. Squally showers. Moderate<br>
or good.<br>
</font></span></blockquote></div><br></div>