| /NextBSD/contrib/ntp/include/ |
| HD | ntp_request.h | 127 u_int32 u32[MODE7_PAYLOAD_LIM / sizeof(u_int32)]; 175 u_int32 u32[RESP_DATA_SIZE / sizeof(u_int32)]; 338 u_int32 addr; /* address of peer */ 352 u_int32 dstadr; /* local address (zero for undetermined) */ 353 u_int32 srcadr; /* source address */ 375 u_int32 dstadr; /* local address */ 376 u_int32 srcadr; /* source address */ 395 u_int32 pkeyid; /* unused */ 396 u_int32 refid; /* peer.refid */ 397 u_int32 timer; /* peer.timer */ [all …]
|
| HD | ntp_fp.h | 32 u_int32 Xl_ui; 35 u_int32 l_uf; 65 typedef u_int32 u_fp; 137 u_int32 add_t = (r_f); \ 139 (r_i) += (a_i) + ((u_int32)(r_f) < add_t); \ 144 u_int32 add_t, add_c; \ 147 add_c = ((u_int32)(r_f) < add_t); \ 149 add_c = ((u_int32)(r_i) < add_c); \ 152 add_c |= ((u_int32)(r_i) < add_t); \ 158 u_int32 sub_t = (r_f); \ [all …]
|
| HD | ntp_stdlib.h | 35 extern void init_logging (const char *, u_int32, int); 68 extern int authdecrypt (keyid_t, u_int32 *, size_t, size_t); 69 extern size_t authencrypt (keyid_t, u_int32 *, size_t); 82 extern u_int32 calyearstart (u_int32 ntptime, const time_t *pivot); 83 extern u_int32 calmonthstart (u_int32 ntptime, const time_t *pivot); 84 extern u_int32 calweekstart (u_int32 ntptime, const time_t *pivot); 85 extern u_int32 caldaystart (u_int32 ntptime, const time_t *pivot); 88 extern int clocktime (int, int, int, int, int, u_int32, u_long *, u_int32 *); 98 extern int MD5authdecrypt (int, const u_char *, u_int32 *, size_t, size_t); 99 extern size_t MD5authencrypt (int, const u_char *, u_int32 *, size_t); [all …]
|
| HD | ntp_types.h | 79 typedef uint32_t u_int32; typedef 94 # if !defined(HAVE_U_INT32) && !defined(u_int32) 95 typedef unsigned u_int32; typedef 111 # if !defined(HAVE_U_INT32) && !defined(u_int32) 112 typedef unsigned long u_int32; typedef 184 int32 hi; u_int32 lo; 187 u_int32 hi; u_int32 lo; 197 u_int32 lo; int32 hi; 200 u_int32 lo; u_int32 hi; 215 typedef struct ntp_uint64_t { u_int32 val[2]; } ntp_uint64_t; [all …]
|
| HD | ntp.h | 180 u_int32 ifnum; /* endpt instance count */ 187 u_int32 flags; /* interface flags */ 189 u_int32 addr_refid; /* IPv4 addr or IPv6 hash */ 269 u_int32 ttl; /* ttl/refclock mode */ 292 u_int32 refid; /* remote reference ID */ 301 u_int32 opcode; /* last request opcode */ 303 u_int32 crypto; /* peer status word */ 540 u_int32 refid; /* reference id */ 546 #define LEN_PKT_NOMAC (12 * sizeof(u_int32)) /* min header length */ 547 #define MIN_MAC_LEN (1 * sizeof(u_int32)) /* crypto_NAK */ [all …]
|
| HD | ntp_crypto.h | 132 u_int32 vallen; /* value length */ 134 u_int32 siglen; /* signature length */ 143 u_int32 opcode; /* opcode */ 144 u_int32 associd; /* association ID */ 145 u_int32 tstamp; /* timestamp */ 146 u_int32 fstamp; /* filestamp */ 147 u_int32 vallen; /* value length */ 148 u_int32 pkt[1]; /* start of value field */
|
| HD | ntp_refclock.h | 74 u_int32 polls; /* transmit polls */ 75 u_int32 noresponse; /* no response to poll */ 76 u_int32 badformat; /* bad format timecode received */ 77 u_int32 baddata; /* invalid data timecode received */ 78 u_int32 timereset; /* driver resets */ 83 u_int32 fudgeval2; /* configure fudge value2 */ 122 u_int32 stimes; /* times format sign array */ 123 u_int32 values[NCLKBUGVALUES]; /* real values */ 179 u_int32 refid; /* reference identifier */
|
| HD | timevalops.h | 31 extern const u_int32 ustotslo[]; 32 extern const u_int32 ustotsmid[]; 33 extern const u_int32 ustotshi[]; 41 ((tsf) = (u_int32) \ 51 extern const u_int32 tstouslo[256]; 52 extern const u_int32 tstousmid[256]; 53 extern const u_int32 tstoushi[128];
|
| /NextBSD/contrib/ntp/tests/libntp/ |
| HD | clocktime.c | 18 int isLE(u_int32 diff,u_int32 actual); 55 const u_int32 timestamp = 3486372600UL; in test_CurrentYear() 56 const u_int32 expected = timestamp; /* exactly the same. */ in test_CurrentYear() 61 u_int32 actual; in test_CurrentYear() 81 const u_int32 timestamp = 3486372600UL; /* 2010-06-24 12:50:00Z */ in test_CurrentYearFuzz() 82 const u_int32 expected = 3486369600UL; /* 2010-06-24 12:00:00Z */ in test_CurrentYearFuzz() 87 u_int32 actual; in test_CurrentYearFuzz() 105 const u_int32 timestamp = 3486369600UL; in test_TimeZoneOffset() 106 const u_int32 expected = timestamp; in test_TimeZoneOffset() 111 u_int32 actual; in test_TimeZoneOffset() [all …]
|
| HD | calyearstart.c | 28 const u_int32 input = 3486372600UL; // 2010-06-24 12:50:00. in test_NoWrapInDateRange() 29 const u_int32 expected = 3471292800UL; // 2010-01-01 00:00:00 in test_NoWrapInDateRange() 36 const u_int32 input = 3549528000UL; // 2012-06-24 12:00:00 in test_NoWrapInDateRangeLeapYear() 37 const u_int32 expected = 3534364800UL; // 2012-01-01 00:00:00 in test_NoWrapInDateRangeLeapYear() 44 const u_int32 input = 19904UL; // 2036-02-07 12:00:00 in test_WrapInDateRange() 45 const u_int32 expected = 4291747200UL; // 2036-01-01 00:00:00 in test_WrapInDateRange()
|
| HD | timevalops.c | 20 static u_int32 my_tick_to_tsf(u_int32 ticks); 21 static u_int32 my_tsf_to_tick(u_int32 tsf); 27 u_int32 frac; 34 l_fp l_fp_init(int32 i, u_int32 f); 102 l_fp_init(int32 i, u_int32 f) in l_fp_init() 174 u_int32 175 my_tick_to_tsf(u_int32 ticks) in my_tick_to_tsf() 183 …return (u_int32)((( ((u_int64)(ticks)) << 32) + 500000) / 1000000); //I put too much () when casti… in my_tick_to_tsf() 185 return (u_int32)( ((double)(ticks)) * 4294.967296 + 0.5); in my_tick_to_tsf() 192 u_int32 [all …]
|
| HD | timespecops.c | 25 static u_int32 my_tick_to_tsf(u_int32 ticks); 26 static u_int32 my_tsf_to_tick(u_int32 tsf); 32 u_int32 frac; 70 l_fp l_fp_init(int32 i, u_int32 f); 110 l_fp_init(int32 i, u_int32 f) in l_fp_init() 179 u_int32 180 my_tick_to_tsf(u_int32 ticks) in my_tick_to_tsf() 188 return (u_int32)((( ((u_int64)(ticks)) << 32) + 500000000) / 1000000000); in my_tick_to_tsf() 190 return (u_int32)((double(ticks)) * 4.294967296 + 0.5); in my_tick_to_tsf() 197 u_int32 [all …]
|
| HD | numtoa.c | 24 const u_int32 input = htonl(3221225472UL + 512UL + 1UL); // 192.0.2.1 in test_Address() 32 const u_int32 hostOrder = 255UL*256UL*256UL*256UL + 255UL*256UL*256UL + 255UL*256UL; in test_Netmask() 33 const u_int32 input = htonl(hostOrder); in test_Netmask()
|
| HD | lfpfunc.c | 34 l_fp l_fp_init(int32 i, u_int32 f); 62 static int cmp_work(u_int32 a[3], u_int32 b[3]); 74 u_int32 a[3], b[3]; in l_fp_scmp() 91 u_int32 a[3], b[3]; in l_fp_ucmp() 103 cmp_work(u_int32 a[3], u_int32 b[3]) in cmp_work() 105 u_int32 cy, idx, tmp; in cmp_work() 122 l_fp_init(int32 i, u_int32 f) in l_fp_init()
|
| /NextBSD/contrib/ntp/libntp/ |
| HD | calyearstart.c | 22 u_int32 23 calyearstart(u_int32 ntptime, const time_t *pivot) in calyearstart() 25 u_int32 ndays; /* elapsed days since NTP starts */ in calyearstart() 34 return (u_int32)(ndays * SECSPERDAY); in calyearstart() 41 u_int32 42 calmonthstart(u_int32 ntptime, const time_t *pivot) in calmonthstart() 44 u_int32 ndays; /* elapsed days since NTP starts */ in calmonthstart() 53 return (u_int32)(ndays * SECSPERDAY); in calmonthstart() 60 u_int32 61 calweekstart(u_int32 ntptime, const time_t *pivot) in calweekstart() [all …]
|
| HD | clocktime.c | 31 static int32 ntp_to_year(u_int32); 32 static u_int32 year_to_ntp(int32); 58 u_int32 rec_ui , /* pivot value */ in clocktime() 60 u_int32 *ts_ui ) /* effective time stamp */ in clocktime() 62 u_int32 ystt[3]; /* year start */ in clocktime() 63 u_int32 test[3]; /* result time stamp */ in clocktime() 64 u_int32 diff[3]; /* abs difference to receive */ in clocktime() 84 test[0] = (u_int32)(*yearstart) + tmp; in clocktime() 131 u_int32 ntp) in ntp_to_year() 142 static u_int32 [all …]
|
| HD | timevalops.c | 24 const u_int32 ustotslo[256] = { 91 const u_int32 ustotsmid[256] = { 158 const u_int32 ustotshi[16] = { 174 const u_int32 tstoushi[256] = { 241 const u_int32 tstousmid[256] = { 276 const u_int32 tstouslo[128] = {
|
| HD | dolfptoa.c | 14 u_int32 fpi, in dolfptoa() 15 u_int32 fpv, in dolfptoa() 45 u_int32 digit; in dolfptoa() 71 u_int32 digit, tmph, tmpl; in dolfptoa() 141 u_int32 fpi, in mfptoa() 142 u_int32 fpf, in mfptoa() 159 u_int32 fpi, in mfptoms() 160 u_int32 fpf, in mfptoms()
|
| HD | a_md5encrypt.c | 23 u_int32 * pkt, /* packet pointer */ in MD5authencrypt() 63 u_int32 * pkt, /* packet pointer */ in MD5authdecrypt() 104 u_int32 108 u_int32 addr_refid; in addr2refid()
|
| HD | numtoa.c | 19 u_int32 num in numtoa() 22 register u_int32 netnum; in numtoa() 39 u_int32 refid, in refid_str()
|
| /NextBSD/contrib/gdb/include/ |
| HD | os9k.h | 100 #define MODSIZE(mod) ((u_int32)((Mh_com)mod)->m_size) 161 error_code _os_crc (void *, u_int32, int *); 162 error_code _os_datmod (char *, u_int32, u_int16 *, u_int16 *, u_int32, void **, mh_data **); 163 error_code _os_get_moddir (void *, u_int32 *); 167 error_code _os_load (char *, mh_com **, void **, u_int32, u_int16 *, u_int16 *, u_int32); 168 error_code _os_mkmodule (char *, u_int32, u_int16 *, u_int16 *, u_int32, void **, mh_com **, u_int3… 171 error_code _os_slink (u_int32, char *, void **, void **, mh_com **); 172 error_code _os_slinkm (u_int32, mh_com *, void **, void **); 174 error_code _os_unload (char *, u_int32); 175 error_code _os_tlink (u_int32, char *, void **, mh_trap **, void *, u_int32); [all …]
|
| /NextBSD/contrib/ntp/ntpd/ |
| HD | ntp_request.c | 173 { REQ_GET_CLOCKINFO, NOAUTH, sizeof(u_int32), sizeof(u_int32), 177 { REQ_GET_CLKBUGINFO, NOAUTH, sizeof(u_int32), sizeof(u_int32), 644 if (!authdecrypt(info_auth_keyid, (u_int32 *)inpkt, in process_private() 1055 ip->timereceived = htonl((u_int32)(current_time - pp->timereceived)); in peer_stats() 1057 ip->timereachable = htonl((u_int32)(current_time - pp->timereachable)); in peer_stats() 1058 ip->sent = htonl((u_int32)(pp->sent)); in peer_stats() 1059 ip->processed = htonl((u_int32)(pp->processed)); in peer_stats() 1060 ip->badauth = htonl((u_int32)(pp->badauth)); in peer_stats() 1061 ip->bogusorg = htonl((u_int32)(pp->bogusorg)); in peer_stats() 1062 ip->oldpkt = htonl((u_int32)(pp->oldpkt)); in peer_stats() [all …]
|
| HD | ntp_scanner.h | 74 ((u_int32)(fb) << 8) | \ 75 ((u_int32)(match_n) << 10) | \ 76 ((u_int32)(other_n) << 21) \ 84 typedef u_int32 scan_state;
|
| /NextBSD/contrib/ntp/libparse/ |
| HD | mfp_mul.c | 41 #define LOW_MASK (u_int32)((1<<(FRACTION_PREC/2))-1) 42 #define HIGH_MASK (u_int32)(LOW_MASK << (FRACTION_PREC/2)) 59 u_int32 *o_f, in mfp_mul() 61 u_int32 a_f, in mfp_mul() 63 u_int32 b_f in mfp_mul() 67 u_int32 f; in mfp_mul() 125 (u_int32)((unsigned)1<<(FRACTION_PREC - 1))) { in mfp_mul() 132 (u_int32)((unsigned)1<<(FRACTION_PREC - 1))) { in mfp_mul()
|
| /NextBSD/libexec/bootpd/ |
| HD | lookup.h | 7 extern int lookup_ipa(char *hostname, u_int32 *addr); 8 extern int lookup_netmask(u_int32 addr, u_int32 *mask);
|