Re: [chrony-users] Reference ID |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Reference ID
- From: Bryan Christianson <bryan@xxxxxxxxxxxxx>
- Date: Sat, 28 May 2016 10:00:29 +1200
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpcorp.com; s=a0-2; h=Feedback-ID:X-Smtpcorp-Track:To:Message-Id:Date: From:Subject; bh=evzIr8WklITn401XOPM8NbAfBdkmq1GErp+zp9BBHdA=; b=jkPDEBIKVPxW wk/Xorl5B9LOVC3TbMUGPa6S2jFNZPyrKEX/011bXXN/a7qF/NB1xt/q2jici8BtXXsCB+6QgkzJu ihJq4AJ+hV51OpmqJn3oC41f9dJXBolvVwEnfDsm4iEGgdxW48Vszk4awnQFuLF01f8doMnT8Mnlk Qmumnz4KKCMTpnmroXFFtZUYxVY5i+xPRX1wuEgu6rDTPKvEDapMf98FuzQGclA1HwnIeSpNtTPCw IQKh0z2yEuwFYT0u2GdcelkFzp8uuJkeBVUsf3GDTTZbYTEZXcqJjvtdS8wtnsF30QFhWsSnTe7WT eI4C8goTGE3Q5Ylw3AyNgQ==;
- Feedback-id: 149811m:149811acx33YQ:149811ssoPlYJNP7:SMTPCORP
> On 28/05/2016, at 9:56 AM, Bill Unruh <unruh@xxxxxxxxxxxxxx> wrote:
>
> On Sat, 28 May 2016, Bryan Christianson wrote:
>
>> I recently installed an IPv6 network on my lan. When crony syncs to a server using IPv6 it extracts some bits from the IPv6 address of the server and then displays them in the Reference ID as an IPv4 address which bears no relationship to any host on my lan. I have seen similar issues with the translation of a reference clock ID to a pseudo IP address.
>>
>> I’m wondering if in these cases it might night be better for chrony to use an IP address from one of the reserved IPv4 address ranges rather than synthesising what may well be a real IP belonging to some unrelated network.
>
> This has been argued in the past. The refid is 4 bytes, so it cannot fit in
> the whole IPv6 address. And it really is not worth expanding the size of the
> refid. For refclocks it is a four character name (translate the bytes to
> ascii-- eg PPS0, SHM3...). I am not sure what the algorithm is for ipv6 (last
> 4 bytes in the addreess.) I really do not think it is worth Lichvar's time to
> rewrite the refid to be 12 bytes say, with all the potential for hidden bugs
> introduced by change. It is not supposed to be an address. It is supposed to
> be just a unique id to differentiate the various sources.
Sure - I understand not wanting to change the length. That’s why I suggested using an address from one of the IPv4 reserved ranges rather than presenting some random collection of 4 bytes as an IP address.
Bryan Christianson
bryan@xxxxxxxxxxxxx
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.