003 File Manager
Current Path:
/usr/src/contrib/ntp/ntpd
usr
/
src
/
contrib
/
ntp
/
ntpd
/
📁
..
📄
Makefile.am
(13.57 KB)
📄
Makefile.in
(78.52 KB)
📄
check_y2k.c
(15.73 KB)
📄
cmd_args.c
(4.25 KB)
📄
complete.conf.in
(3.35 KB)
📄
declcond.h
(793 B)
📄
invoke-ntp.conf.menu
(56 B)
📄
invoke-ntp.conf.texi
(104.37 KB)
📄
invoke-ntp.keys.menu
(56 B)
📄
invoke-ntp.keys.texi
(3.21 KB)
📄
invoke-ntpd.menu
(49 B)
📄
invoke-ntpd.texi
(23.68 KB)
📄
jupiter.h
(9.1 KB)
📄
keyword-gen-utd
(57 B)
📄
keyword-gen.c
(21.99 KB)
📄
ntp.conf.5man
(115.01 KB)
📄
ntp.conf.5mdoc
(101.72 KB)
📄
ntp.conf.def
(100.75 KB)
📄
ntp.conf.html
(126.28 KB)
📄
ntp.conf.man.in
(115.01 KB)
📄
ntp.conf.mdoc.in
(101.71 KB)
📄
ntp.conf.texi
(1.19 KB)
📄
ntp.keys.5man
(3.99 KB)
📄
ntp.keys.5mdoc
(4.25 KB)
📄
ntp.keys.def
(3.65 KB)
📄
ntp.keys.html
(8.37 KB)
📄
ntp.keys.man.in
(3.99 KB)
📄
ntp.keys.mdoc.in
(4.24 KB)
📄
ntp.keys.texi
(1.2 KB)
📄
ntp_config.c
(117.55 KB)
📄
ntp_control.c
(123.14 KB)
📄
ntp_crypto.c
(117.09 KB)
📄
ntp_filegen.c
(13.42 KB)
📄
ntp_io.c
(112.21 KB)
📄
ntp_keyword.h
(73.49 KB)
📄
ntp_leapsec.c
(31.18 KB)
📄
ntp_leapsec.h
(10.95 KB)
📄
ntp_loopfilter.c
(40.05 KB)
📄
ntp_monitor.c
(13.43 KB)
📄
ntp_parser.c
(130.65 KB)
📄
ntp_parser.h
(11.36 KB)
📄
ntp_peer.c
(27.66 KB)
📄
ntp_prio_q.c
(4.54 KB)
📄
ntp_proto.c
(150.76 KB)
📄
ntp_refclock.c
(43.87 KB)
📄
ntp_request.c
(67.25 KB)
📄
ntp_restrict.c
(19.06 KB)
📄
ntp_scanner.c
(20.74 KB)
📄
ntp_scanner.h
(4.43 KB)
📄
ntp_signd.c
(5.24 KB)
📄
ntp_timer.c
(17.69 KB)
📄
ntp_util.c
(22.66 KB)
📄
ntpd-opts.c
(71.91 KB)
📄
ntpd-opts.def
(17.55 KB)
📄
ntpd-opts.h
(14.57 KB)
📄
ntpd.1ntpdman
(32.03 KB)
📄
ntpd.1ntpdmdoc
(29.07 KB)
📄
ntpd.c
(42.16 KB)
📄
ntpd.html
(49.68 KB)
📄
ntpd.man.in
(32.03 KB)
📄
ntpd.mdoc.in
(29.07 KB)
📄
ntpd.texi
(3.25 KB)
📄
ntpdbase-opts.def
(13.21 KB)
📄
ntpsim.c
(17.11 KB)
📄
ppsapi_timepps.h
(497 B)
📄
psl0.conf
(25 B)
📄
psl1.conf
(25 B)
📄
psl2.conf
(37 B)
📄
rc_cmdlength.c
(800 B)
📄
refclock_acts.c
(22.66 KB)
📄
refclock_arbiter.c
(12.15 KB)
📄
refclock_arc.c
(46.85 KB)
📄
refclock_as2201.c
(11.09 KB)
📄
refclock_atom.c
(6.63 KB)
📄
refclock_bancomm.c
(16.11 KB)
📄
refclock_chronolog.c
(7.61 KB)
📄
refclock_chu.c
(45.28 KB)
📄
refclock_conf.c
(7.25 KB)
📄
refclock_datum.c
(22.3 KB)
📄
refclock_dumbclock.c
(8.42 KB)
📄
refclock_fg.c
(6.89 KB)
📄
refclock_gpsdjson.c
(58 KB)
📄
refclock_gpsvme.c
(7.77 KB)
📄
refclock_heath.c
(12.97 KB)
📄
refclock_hopfpci.c
(5.69 KB)
📄
refclock_hopfser.c
(7.41 KB)
📄
refclock_hpgps.c
(16.38 KB)
📄
refclock_irig.c
(30.05 KB)
📄
refclock_jjy.c
(144.27 KB)
📄
refclock_jupiter.c
(25.66 KB)
📄
refclock_leitch.c
(13.27 KB)
📄
refclock_local.c
(5.72 KB)
📄
refclock_msfees.c
(44.66 KB)
📄
refclock_mx4200.c
(41.72 KB)
📄
refclock_neoclock4x.c
(29.08 KB)
📄
refclock_nmea.c
(50.6 KB)
📄
refclock_oncore.c
(121.54 KB)
📄
refclock_palisade.c
(35.15 KB)
📄
refclock_palisade.h
(6.52 KB)
📄
refclock_parse.c
(160.87 KB)
📄
refclock_pcf.c
(4.79 KB)
📄
refclock_pst.c
(8.09 KB)
📄
refclock_ripencc.c
(118.21 KB)
📄
refclock_shm.c
(16.96 KB)
📄
refclock_tpro.c
(4.69 KB)
📄
refclock_true.c
(25.3 KB)
📄
refclock_tsyncpci.c
(28.35 KB)
📄
refclock_tt560.c
(6.12 KB)
📄
refclock_ulink.c
(15.64 KB)
📄
refclock_wwv.c
(79.32 KB)
📄
refclock_wwvb.c
(15.71 KB)
📄
refclock_zyfer.c
(7.38 KB)
Editing: refclock_conf.c
/* * refclock_conf.c - reference clock configuration */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <stdio.h> #include <sys/types.h> #include "ntpd.h" #include "ntp_refclock.h" #include "ntp_stdlib.h" #ifdef REFCLOCK static struct refclock refclock_none = { noentry, noentry, noentry, noentry, noentry, noentry, NOFLAGS }; #ifdef CLOCK_LOCAL extern struct refclock refclock_local; #else #define refclock_local refclock_none #endif #ifdef CLOCK_PST extern struct refclock refclock_pst; #else #define refclock_pst refclock_none #endif #ifdef CLOCK_CHU extern struct refclock refclock_chu; #else #define refclock_chu refclock_none #endif #ifdef CLOCK_WWV extern struct refclock refclock_wwv; #else #define refclock_wwv refclock_none #endif #ifdef CLOCK_SPECTRACOM extern struct refclock refclock_wwvb; #else #define refclock_wwvb refclock_none #endif #ifdef CLOCK_PARSE extern struct refclock refclock_parse; #else #define refclock_parse refclock_none #endif #if defined(CLOCK_MX4200) && defined(HAVE_PPSAPI) extern struct refclock refclock_mx4200; #else #define refclock_mx4200 refclock_none #endif #ifdef CLOCK_AS2201 extern struct refclock refclock_as2201; #else #define refclock_as2201 refclock_none #endif #ifdef CLOCK_ARBITER extern struct refclock refclock_arbiter; #else #define refclock_arbiter refclock_none #endif #ifdef CLOCK_TPRO extern struct refclock refclock_tpro; #else #define refclock_tpro refclock_none #endif #ifdef CLOCK_LEITCH extern struct refclock refclock_leitch; #else #define refclock_leitch refclock_none #endif #ifdef CLOCK_IRIG extern struct refclock refclock_irig; #else #define refclock_irig refclock_none #endif #if 0 && defined(CLOCK_MSFEES) && defined(PPS) extern struct refclock refclock_msfees; #else #define refclock_msfees refclock_none #endif #ifdef CLOCK_BANC extern struct refclock refclock_bancomm; #else #define refclock_bancomm refclock_none #endif #ifdef CLOCK_TRUETIME extern struct refclock refclock_true; #else #define refclock_true refclock_none #endif #ifdef CLOCK_DATUM extern struct refclock refclock_datum; #else #define refclock_datum refclock_none #endif #ifdef CLOCK_ACTS extern struct refclock refclock_acts; #else #define refclock_acts refclock_none #endif #ifdef CLOCK_HEATH extern struct refclock refclock_heath; #else #define refclock_heath refclock_none #endif #ifdef CLOCK_NMEA extern struct refclock refclock_nmea; #else #define refclock_nmea refclock_none #endif #if defined (CLOCK_ATOM) && defined(HAVE_PPSAPI) extern struct refclock refclock_atom; #else #define refclock_atom refclock_none #endif #ifdef CLOCK_HPGPS extern struct refclock refclock_hpgps; #else #define refclock_hpgps refclock_none #endif #ifdef CLOCK_GPSVME extern struct refclock refclock_gpsvme; #else #define refclock_gpsvme refclock_none #endif #ifdef CLOCK_ARCRON_MSF extern struct refclock refclock_arc; #else #define refclock_arc refclock_none #endif #ifdef CLOCK_SHM extern struct refclock refclock_shm; #else #define refclock_shm refclock_none #endif #ifdef CLOCK_PALISADE extern struct refclock refclock_palisade; #else #define refclock_palisade refclock_none #endif #if defined(CLOCK_ONCORE) extern struct refclock refclock_oncore; #else #define refclock_oncore refclock_none #endif #if defined(CLOCK_JUPITER) && defined(HAVE_PPSAPI) extern struct refclock refclock_jupiter; #else #define refclock_jupiter refclock_none #endif #if defined(CLOCK_CHRONOLOG) extern struct refclock refclock_chronolog; #else #define refclock_chronolog refclock_none #endif #if defined(CLOCK_DUMBCLOCK) extern struct refclock refclock_dumbclock; #else #define refclock_dumbclock refclock_none #endif #ifdef CLOCK_ULINK extern struct refclock refclock_ulink; #else #define refclock_ulink refclock_none #endif #ifdef CLOCK_PCF extern struct refclock refclock_pcf; #else #define refclock_pcf refclock_none #endif #ifdef CLOCK_FG extern struct refclock refclock_fg; #else #define refclock_fg refclock_none #endif #ifdef CLOCK_HOPF_SERIAL extern struct refclock refclock_hopfser; #else #define refclock_hopfser refclock_none #endif #ifdef CLOCK_HOPF_PCI extern struct refclock refclock_hopfpci; #else #define refclock_hopfpci refclock_none #endif #ifdef CLOCK_JJY extern struct refclock refclock_jjy; #else #define refclock_jjy refclock_none #endif #ifdef CLOCK_TT560 extern struct refclock refclock_tt560; #else #define refclock_tt560 refclock_none #endif #ifdef CLOCK_ZYFER extern struct refclock refclock_zyfer; #else #define refclock_zyfer refclock_none #endif #ifdef CLOCK_RIPENCC extern struct refclock refclock_ripencc; #else #define refclock_ripencc refclock_none #endif #ifdef CLOCK_NEOCLOCK4X extern struct refclock refclock_neoclock4x; #else #define refclock_neoclock4x refclock_none #endif #ifdef CLOCK_TSYNCPCI extern struct refclock refclock_tsyncpci; #else #define refclock_tsyncpci refclock_none #endif #if defined(CLOCK_GPSDJSON) && !defined(SYS_WINNT) extern struct refclock refclock_gpsdjson; #else #define refclock_gpsdjson refclock_none #endif /* * Order is clock_start(), clock_shutdown(), clock_poll(), * clock_control(), clock_init(), clock_buginfo, clock_flags; * * Types are defined in ntp.h. The index must match this. */ struct refclock * const refclock_conf[] = { &refclock_none, /* 0 REFCLK_NONE */ &refclock_local, /* 1 REFCLK_LOCAL */ &refclock_none, /* 2 deprecated: REFCLK_GPS_TRAK */ &refclock_pst, /* 3 REFCLK_WWV_PST */ &refclock_wwvb, /* 4 REFCLK_SPECTRACOM */ &refclock_true, /* 5 REFCLK_TRUETIME */ &refclock_irig, /* 6 REFCLK_IRIG_AUDIO */ &refclock_chu, /* 7 REFCLK_CHU_AUDIO */ &refclock_parse, /* 8 REFCLK_PARSE */ &refclock_mx4200, /* 9 REFCLK_GPS_MX4200 */ &refclock_as2201, /* 10 REFCLK_GPS_AS2201 */ &refclock_arbiter, /* 11 REFCLK_GPS_ARBITER */ &refclock_tpro, /* 12 REFCLK_IRIG_TPRO */ &refclock_leitch, /* 13 REFCLK_ATOM_LEITCH */ &refclock_none, /* 14 deprecated: REFCLK_MSF_EES */ &refclock_none, /* 15 not used */ &refclock_bancomm, /* 16 REFCLK_IRIG_BANCOMM */ &refclock_datum, /* 17 REFCLK_GPS_DATUM */ &refclock_acts, /* 18 REFCLK_ACTS */ &refclock_heath, /* 19 REFCLK_WWV_HEATH */ &refclock_nmea, /* 20 REFCLK_GPS_NMEA */ &refclock_gpsvme, /* 21 REFCLK_GPS_VME */ &refclock_atom, /* 22 REFCLK_ATOM_PPS */ &refclock_none, /* 23 not used */ &refclock_none, /* 24 not used */ &refclock_none, /* 25 not used */ &refclock_hpgps, /* 26 REFCLK_GPS_HP */ &refclock_arc, /* 27 REFCLK_ARCRON_MSF */ &refclock_shm, /* 28 REFCLK_SHM */ &refclock_palisade, /* 29 REFCLK_PALISADE */ &refclock_oncore, /* 30 REFCLK_ONCORE */ &refclock_jupiter, /* 31 REFCLK_GPS_JUPITER */ &refclock_chronolog, /* 32 REFCLK_CHRONOLOG */ &refclock_dumbclock, /* 33 REFCLK_DUMBCLOCK */ &refclock_ulink, /* 34 REFCLOCK_ULINK */ &refclock_pcf, /* 35 REFCLOCK_PCF */ &refclock_wwv, /* 36 REFCLOCK_WWV_AUDIO */ &refclock_fg, /* 37 REFCLOCK_FG */ &refclock_hopfser, /* 38 REFCLK_HOPF_SERIAL */ &refclock_hopfpci, /* 39 REFCLK_HOPF_PCI */ &refclock_jjy, /* 40 REFCLK_JJY */ &refclock_tt560, /* 41 REFCLK_TT560 */ &refclock_zyfer, /* 42 REFCLK_ZYFER */ &refclock_ripencc, /* 43 REFCLK_RIPENCC */ &refclock_neoclock4x, /* 44 REFCLK_NEOCLOCK4X */ &refclock_tsyncpci, /* 45 REFCLK_TSYNCPCI */ &refclock_gpsdjson /* 46 REFCLK_GPSDJSON */ }; u_char num_refclock_conf = sizeof(refclock_conf)/sizeof(struct refclock *); #else int refclock_conf_bs; #endif
Upload File
Create Folder