summaryrefslogtreecommitdiff
path: root/cpukit/libmisc/fb
diff options
context:
space:
mode:
authorJim Panetta <panetta@slac.stanford.edu>2013-11-01 09:59:41 -0400
committerGedare Bloom <gedare@rtems.org>2014-01-09 09:56:03 -0500
commit2b03a62441d63d056dbbd6de17429ae05e4dfd04 (patch)
tree69884909942a4ef6332c901d72f68a6492d0e50e /cpukit/libmisc/fb
parent78c84df00c4dacc3e2660959ca1ee6527fc4dfb6 (diff)
NTP: Sync time correctly when receiving broadcast updates
1) The value of rtems_bsdnet_ntpserver_count is equal to 0 when no server is set, so the check for (rtems_bsdnet_ntpserver_count < 0) in rtems_bsdnet_get_ntp() is wrong. The check should be "<= 0". 2) Binding the listening socket port to 0 does not work. Packets appear on the interface, but the recvfrom in tryServer() never returns. Changing this to the well known NTP socket 123 allows the packets to be seen. 3) In tryServer(), an explicit check for NTP version 3 packets is made. If the NTP server is version 4, this check fails even though the packets seem to be the right shape.
Diffstat (limited to 'cpukit/libmisc/fb')
0 files changed, 0 insertions, 0 deletions