<div dir="ltr"><div>I like the idea of removing more IPv4 specific code.</div><div><br></div><div>If we do, can we still get arrival timestamp from the kernel?</div><div><br></div><div>How do standard display functions display v6 mapped v4 addresses?   How do we want them displayed?</div><div><br></div><div>Are there any places left in the code that are storing addresses in packed-4-octets or ints?</div><div><br></div><div>..m</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jan 27, 2017 at 12:16 PM Gary E. Miller <<a href="mailto:gem@rellim.com">gem@rellim.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yo Eric!<br class="gmail_msg">
<br class="gmail_msg">
On Fri, 27 Jan 2017 15:01:19 -0500<br class="gmail_msg">
"Eric S. Raymond" <<a href="mailto:esr@thyrsus.com" class="gmail_msg" target="_blank">esr@thyrsus.com</a>> wrote:<br class="gmail_msg">
<br class="gmail_msg">
> Gary E. Miller <<a href="mailto:gem@rellim.com" class="gmail_msg" target="_blank">gem@rellim.com</a>>:<br class="gmail_msg">
> > Yes, but NTP does not have to.  NTP can just open an IPv6 socket and<br class="gmail_msg">
> > shove all IPv6 and IPv4 in through that socket.  Apache does this,<br class="gmail_msg">
> > sendmail does this, nginx does this, postfix does this.  Very<br class="gmail_msg">
> > standard and very easy.<br class="gmail_msg">
><br class="gmail_msg">
> That's interesting.  Does this mean we could throw out all<br class="gmail_msg">
> IPV4-specific code and use IPV6 logic everywhere?<br class="gmail_msg">
<br class="gmail_msg">
Yes.<br class="gmail_msg">
<br class="gmail_msg">
> I didn't think an IPv6 accept() would take incoming IPv4 connections<br class="gmail_msg">
<br class="gmail_msg">
Yes.<br class="gmail_msg">
<br class="gmail_msg">
> - is there a way to make it take both?<br class="gmail_msg">
<br class="gmail_msg">
It does by default, if you only open an IPv6 socket.<br class="gmail_msg">
<br class="gmail_msg">
Look at 'man 7 ipv6'<br class="gmail_msg">
<br class="gmail_msg">
Or here: <a href="http://man7.org/linux/man-pages/man7/ipv6.7.html" rel="noreferrer" class="gmail_msg" target="_blank">http://man7.org/linux/man-pages/man7/ipv6.7.html</a><br class="gmail_msg">
<br class="gmail_msg">
    "IPv4 connections can be handled with the v6 API by using the<br class="gmail_msg">
    v4-mapped-on-v6 address type; thus a program needs to support<br class="gmail_msg">
    only this API type to support both protocols.  This is handled<br class="gmail_msg">
    transparently by the address handling functions in the C library."<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
RGDS<br class="gmail_msg">
GARY<br class="gmail_msg">
---------------------------------------------------------------------------<br class="gmail_msg">
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703<br class="gmail_msg">
        <a href="mailto:gem@rellim.com" class="gmail_msg" target="_blank">gem@rellim.com</a>  Tel:<a href="tel:(541)%20382-8588" value="+15413828588" class="gmail_msg" target="_blank">+1 541 382 8588</a><br class="gmail_msg">
<br class="gmail_msg">
            Veritas liberabit vos. -- Quid est veritas?<br class="gmail_msg">
    "If you can’t measure it, you can’t improve it." - Lord Kelvin<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
devel mailing list<br class="gmail_msg">
<a href="mailto:devel@ntpsec.org" class="gmail_msg" target="_blank">devel@ntpsec.org</a><br class="gmail_msg">
<a href="http://lists.ntpsec.org/mailman/listinfo/devel" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.ntpsec.org/mailman/listinfo/devel</a></blockquote></div>