Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mskibbe
ntp-dev
ntp-dev-stable-4.2.0a-20050816-loconly.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ntp-dev-stable-4.2.0a-20050816-loconly.patch of Package ntp-dev
--- ntp-4.2.5p109/ntpd/ntp_proto.c +++ ntp-4.2.5p109/ntpd/ntp_proto.c @@ -2927,6 +2927,12 @@ xpkt.stratum = STRATUM_TO_PKT(sys_stratum); xpkt.ppoll = rpkt->ppoll; xpkt.precision = sys_precision; + if (xpkt.stratum == 0 && sys_peer == NULL) { + sys_leap = LEAP_NOWARNING; + xpkt.li_vn_mode = PKT_LI_VN_MODE (sys_leap, PKT_VERSION (rpkt ->li_vn_mode), xmode); + get_systime (&sys_reftime); + xpkt.stratum = 1; + } xpkt.refid = sys_refid; xpkt.rootdelay = HTONS_FP(DTOFP(sys_rootdelay)); xpkt.rootdisp = HTONS_FP(DTOUFP(sys_rootdisp));
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor