[ntp:bugs] [Bug 3667] New: decodenetnum fails with numeric port

bugzilla-daemon at ntp.org bugzilla-daemon at ntp.org
Thu May 7 02:10:59 UTC 2020


https://bugs.ntp.org/show_bug.cgi?id=3667

             Bug #: 3667
           Summary: decodenetnum fails with numeric port
           Product: ntp
           Version: 4.2.8
          Platform: Sun
        OS/Version: Solaris
            Status: CONFIRMED
          Severity: normal
          Priority: P5
         Component: ntpd
        AssignedTo: stenn at ntp.org
        ReportedBy: brian.utterback at oracle.com
                CC: bugs at ntp.org
    Classification: Unclassified


The fix for bug 3531 breaks the decodenetnum test (and possible decodenetnum
itself) on Solaris. 

When a port number is given to getaddrinfo on Solaris and AI_NUMERICSERV is set
in the hints, either ai_socktype or ai_proto must also be given. RFC 3493 says
that if AI_NUMERICSERV is given in the hints then no resolver can be used to 
look up the service. That means that there is no way for getaddrinfo to decide 
what is the proper output. 

Prior to the recent change the service "ntp" was hardcoded in decodenetnum. I
don't know if it was purposefully recoded to that other services could be
specified or if it is planned to be used with other protocols than UDP in the
future.

-- 
Configure bugmail: https://bugs.ntp.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the bugs-announce mailing list