sockaddr_storage

Hal Murray hmurray at megapathdsl.net
Fri Jan 27 22:16:21 UTC 2017


esr at thyrsus.com said:
>> Are there any places left in the code that are storing addresses in
>> packed-4-octets or ints?
> These are areas I will have to investigate.  

I think the storage is all sockaddr_u

I think all the printout goes through socktoa in libntp/socktoa.c

The input side is 2 types.  The first is numeric host addresses. The second 
is IPv4 and IPv6 variants of DNS name lookup.  They come from the command 
line and server and pool lines in ntp.conf.  There may be others that I'm 
overlooking.

I will punt any DNS changes until after your work in this area.  (or get back 
to you when I'm ready)  The thread stuff is scattered wider than I had 
anticipated.  I'll have to poke around a bit before I actually start changing 
anything.

---------

There are various comments about ntpd or ntpdig.  I assume the ntpdig part 
can be cleaned up.

If ntpdig is no longer around, is there any reason for libntp?


-- 
These are my opinions.  I hate spam.





More information about the devel mailing list