[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ntp-bugs
Subject:    [ntp:bugs] ntpdate and big offsets
From:       Harald Hoyer <harald () redhat ! de>
Date:       2002-11-11 15:57:01
[Download RAW message or body]

see also
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=77086
for big offsets s->offset like -93634.278879
server->soffset = LFPTOFP(server->offset) becomes 0x7fffffff or
0x80000000.
I don't know, if this an error in LFPTOFP, but if not, consider to add to 
ntpdate.c:clock_adjust:

                absoffset = server->soffset;
                if (absoffset < 0)
                        absoffset = -absoffset;
                if (absoffset == 0x7fffffff || absoffset == 0x80000000)
                        dostep = 1;
                else {
                        dostep = (absoffset >= NTPDATE_THRESHOLD);
                }

-- 
Harald Hoyer, Software Developer   Tel. : +49-711-96437-0
Red Hat GmbH                       Fax. : +49-711-96437-111
Hauptstaetterstr. 58               Email: Harald.Hoyer@redhat.de        
D-70178 Stuttgart                  Web  : http://www.redhat.de/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic