[ntp:hackers] The ntp-dev bugs resolved

Danny Mayer mayer at ntp.isc.org
Wed Sep 19 03:48:13 UTC 2007


David L. Mills wrote:
> Guys,
> 
> Hero Brian found the Sun bug, so now ntpd is safe in Solaris.
> 
> The crypto bug has been resolved. The crypto_setup() is not called if 
> the crypto command is not present.
> 
> The restrict bug is fixed I think. It turned out to be more awesome than 
> I thought and I might need some advice. Turns out there are three (at 
> least) address families, AF_INET, AF_INET6 and AF_UNSPEC assumed in 
> ntp_config.c. At line 136 the default family was specified as AF_UNSPEC. 
> At line 1242 the default family was used for the later hack_restrict() 
> call, but in ntp_restric.c that family was not understood and the flag 
> for the default restrict entry was not set. Everywhere else in 
> ntp_config.c the family is specific.
> 
> I don't knkow what is intended with the AF_UNSPEC family; I assume it 
> applies to both IPv4 and IPv6 with the particular family selected by 
> address format or DNS record. So, I suspect my hotpatch changing the 
> AF_UNSPEC to AF_IP will nuke IPv6 default. A wise word from my friends 
> could fix that.
> 

AF_UNSPEC indicates to the resolver that it should return IPv6 addresse
and IPv4 addreses while AF_INET means only return IPv4 addresses and
AF_INET6 means return only IPv addresses.

Danny

> As far as I know, there are no remaining serious bugs in this puppy and 
> it should be safe for prime time.
> 
> Dave
> _______________________________________________
> hackers mailing list
> hackers at lists.ntp.org
> https://lists.ntp.org/mailman/listinfo/hackers
> 



More information about the hackers mailing list