[ntp:bugs] [Bug 1915] New: vxWorks ntpdate port needs to clear sys_servers in clear_globals()

bugzilla-daemon at ntp.org bugzilla-daemon at ntp.org
Fri May 6 13:28:08 UTC 2011


http://bugs.ntp.org/show_bug.cgi?id=1915

           Summary: vxWorks ntpdate port needs to clear sys_servers in
                    clear_globals()
           Product: ntp
           Version: 4.2.7
          Platform: PC
        OS/Version: other
            Status: NEW
          Severity: major
          Priority: P5
         Component: - other
        AssignedTo: stenn at ntp.org
        ReportedBy: aavang at alcatel-lucent.com
                CC: bugs at ntp.org
   Estimated Hours: 0.0


The ntpdate command accumulates a list of servers in sys_servers that it is
going to interact with.  During repeated invocations of ntpdate, in vxworks,
old entries are left and new entries are added to this list, causing it to
grow.  It also causes responses to later ntpdate command invocations to not
match the sys_server entry since the search algorithm looks for the first match
on IP address which will match the older attempts, and not latest attempt.

a simple loop to free each entry in the sys_servers list followed by assigning
sys_servers=NULL fixes the issue.

-- 
Configure bugmail: http://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 mailing list