Lines Matching +full:max +full:- +full:bits +full:- +full:per +full:- +full:word
2 * ntp.h - NTP definitions for the masses
21 * Calendar arithmetic - contributed by G. Healton
35 / 4 - ((year - 1) / 100) + ((year - 1) / \
41 #define ntp0(year) (julian0(year) - julian0(1900))
46 #define unix0(year) (julian0(year) - julian0(1970))
49 * LEAP YEAR test for full 4-digit years (e.g, 1999, 2010)
61 * to convert simple two-digit years to tm_year style years:
66 * to convert either two-digit OR tm_year years to four-digit years:
98 #define NTP_PORT 123 /* included for non-unix machines */
106 #define NTP_MAXDPOLL 10 /* log2 default max poll (~17 m) */
107 #define NTP_MAXPOLL 17 /* log2 max poll interval (~36 h) */
108 #define NTP_RETRY 3 /* max packet retries */
114 #define MAXDISPERSE 16. /* max dispersion */
122 #define NTP_MAXCLOCK 10 /* max candidates */
124 #define MAXDISTANCE 1.5 /* max root distance (select threshold) */
126 #define HUFFPUFF 900 /* huff-n'-puff sample interval (s) */
127 #define MAXHOP 2 /* anti-clockhop threshold */
128 #define MAX_TTL 8 /* max ttl mapping vector size */
130 #define NTP_MAXEXTEN 2048 /* max extension field size */
136 #define NTP_MAXKEY 65535 /* max authentication key number */
141 #define MAXFILENAME 256 /* max length of file name */
142 #define MAXHOSTNAME 512 /* max length of host/node name */
143 #define NTP_MAXSTRLEN 256 /* max string length */
153 * squares of a zero-mean, uniform distribution of unit maximum
158 #define DIFF(x, y) (SQUARE((x) - (y)))
169 * Because "interface" is a reserved word in C++ and has so many
177 endpt * mclink; /* per-AF_* multicast list */
192 u_int32 old_refid; /* byte-swapped IPv6 refid */
200 isc_boolean_t ignore_packets; /* listen-read-drop this? */
209 #define INT_PPP 0x002 /* Point-to-point interface */
215 #define INT_WILDCARD 0x080 /* wildcard interface - usually skipped */
219 #define INT_LL_OF_GLOB 0x800 /* IPv6 link-local duplicate of global */
222 * Define flasher bits (tests 1 through 11 in packet procedure)
267 char * hostname; /* if non-NULL, remote name */
276 u_char maxpoll; /* max poll interval */
291 u_char sstclktype; /* clock type for system status word */
315 u_int32 crypto; /* peer status word */
347 u_char new_status; /* under-construction status */
350 int flash; /* protocol error test tally bits */
386 * End of clear-to-zero area
407 u_long badNAK; /* invalid crypto-NAK */
440 * This is a made-up mode for broadcast client.
482 #define CLEAR_TO_ZERO(p) ((char *)&((p)->clear_to_zero))
483 #define END_CLEAR_TO_ZERO(p) ((char *)&((p)->end_clear_to_zero))
484 #define LEN_CLEAR_TO_ZERO(p) (END_CLEAR_TO_ZERO(p) - CLEAR_TO_ZERO(p))
485 #define CRYPTO_TO_ZERO(p) ((char *)&((p)->clear_to_zero))
486 #define END_CRYPTO_TO_ZERO(p) ((char *)&((p)->end_clear_to_zero))
488 - CRYPTO_TO_ZERO((struct peer *)0))
499 #define REFCLK_IRIG_AUDIO 6 /* IRIG-B/W audio decoder */
505 #define REFCLK_IRIG_TPRO 12 /* KSI/Odetics TPRO-S IRIG */
508 #define REFCLK_GPSTM_TRUE 15 /* OLD TrueTime GPS/TM-TMD Receiver */
514 #define REFCLK_GPS_VME 21 /* TrueTime GPS-VME Interface */
515 #define REFCLK_ATOM_PPS 22 /* 1-PPS Clock Discipline */
524 #define REFCLK_CHRONOLOG 32 /* Chrono-log K WWVB receiver */
533 #define REFCLK_TT560 41 /* TrueTime 560 IRIG-B decoder */
575 #define MAX_MDG_LEN (MAX_MAC_LEN-KEY_MAC_LEN) /* max. digest len */
579 * with an RSA modulus and Diffie-Hellman prime of 256 octets
589 * an auto variable in the stack - not using the AUTOKEY version
631 * in case of a kiss-of-death (KoD) packet that has STRATUM_PKT_UNSPEC (==0)
702 * To speed lookups, peers are hashed by the low order bits of the
706 #define NTP_HASH_MASK (NTP_HASH_SIZE-1)
710 * min, min3 and max. Makes it easier to transliterate the spec without
714 #define max(a,b) (((a) > (b)) ? (a) : (b)) macro
719 max((minval), min((val), (maxval)))
765 #define LOOP_MAX_BACK 4 /* set backward-step offset */
766 #define LOOP_MAX_FWD 5 /* set forward-step offset */
772 #define LOOP_HUFFPUFF 11 /* set huff-n'-puff filter length */
824 * In the context of struct peer in ntpd, three of the cast_flags bits
833 * manycastclient-like solicitor association cast_flags bits
896 #define RES_MSSNTP 0x1000 /* enable MS-SNTP authentication */
897 #define RES_FLAKE 0x2000 /* flakeway - drop 10% */
902 #define RES_UNUSED 0x0000 /* Unused flag bits (none left) */
942 #define AM_ERR -1 /* error */
957 /* ntpq -c mrulist rows per request limit in ntpd */
959 /* similar datagrams per response limit for ntpd */