/freebsd/contrib/ntp/include/ |
H A D | 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 …]
|
H A D | 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 …]
|
H A D | ntp_stdlib.h | 43 extern void init_logging (const char *, u_int32, int); 82 extern int authdecrypt (keyid_t, u_int32 *, size_t, size_t); 83 extern size_t authencrypt (keyid_t, u_int32 *, size_t); 97 extern u_int32 calyearstart (u_int32 ntptime, const time_t *pivot); 98 extern u_int32 calmonthstart (u_int32 ntptime, const time_t *pivot); 99 extern u_int32 calweekstart (u_int32 ntptime, const time_t *pivot); 100 extern u_int32 caldaystar [all...] |
H A D | ntp_types.h | 2 * ntp_types.h - defines how int32 and u_int32 are treated. 7 * Old style: defines how int32 and u_int32 are treated. 86 typedef uint32_t u_int32; typedef 101 # if !defined(HAVE_U_INT32) && !defined(u_int32) 102 typedef unsigned u_int32; typedef 118 # if !defined(HAVE_U_INT32) && !defined(u_int32) 119 typedef unsigned long u_int32; typedef 191 int32 hi; u_int32 lo; 194 u_int32 hi; u_int32 l [all...] |
H A D | ntp.h | 181 u_int32 ifnum; /* endpt instance count */ 188 u_int32 flags; /* INT_ flags */ 190 u_int32 addr_refid; /* IPv4 addr or IPv6 hash */ 192 u_int32 old_refid; /* byte-swapped IPv6 refid */ 281 u_int32 ttl; /* ttl/refclock mode */ 304 u_int32 refid; /* remote reference ID */ 313 u_int32 opcode; /* last request opcode */ 315 u_int32 crypto; /* peer status word */ 557 u_int32 refid; /* reference id */ 563 #define MIN_V4_PKT_LEN (12 * sizeof(u_int32)) /* mi [all...] |
H A D | ntp_crypto.h | 133 u_int32 vallen; /* value length */ 135 u_int32 siglen; /* signature length */ 144 u_int32 opcode; /* opcode */ 145 u_int32 associd; /* association ID */ 146 u_int32 tstamp; /* timestamp */ 147 u_int32 fstamp; /* filestamp */ 148 u_int32 vallen; /* value length */ 149 u_int32 pkt[1]; /* start of value field */
|
H A D | ntp_refclock.h | 70 u_int32 polls; /* transmit polls */ 71 u_int32 noresponse; /* no response to poll */ 72 u_int32 badformat; /* bad format timecode received */ 73 u_int32 baddata; /* invalid data timecode received */ 74 u_int32 timereset; /* driver resets */ 80 u_int32 fudgeval2; /* configure fudge value2 */ 120 u_int32 stimes; /* times format sign array */ 121 u_int32 values[NCLKBUGVALUES]; /* real values */ 178 u_int32 refid; /* reference identifier */
|
H A D | 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];
|
H A D | ntpd.h | 123 extern endpt * getinterface (sockaddr_u *, u_int32); 163 extern const char * iflags_str(u_int32 iflags); 197 u_int, u_char, u_int32, 203 u_int, u_int32, 284 u_int32 expire); 286 u_int32 lifetime); 326 u_int32 refid, int len, u_char *extra); 327 extern void check_leap_file (int is_daily_check, u_int32 ntptime, const time_t * systime); 522 extern u_int32 sys_refid; /* reference id */ 574 extern u_int32 conf_file_su [all...] |
/freebsd/contrib/ntp/libntp/ |
H A D | 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 …]
|
H A D | 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 …]
|
H A D | 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] = {
|
H A D | dolfptoa.c | 12 u_int32 fpi, 13 u_int32 fpv, in dolfptoa() 43 u_int32 digit; in dolfptoa() 69 u_int32 digit, tmph, tmpl; in dolfptoa() 139 u_int32 fpi, 140 u_int32 fpf, in mfptoa() 157 u_int32 fpi, 158 u_int32 fpf, in mfptoms()
|
H A D | numtoa.c | 19 u_int32 num in numtoa() 22 register u_int32 netnum; in numtoa() 43 u_int32 refid, in refid_str()
|
H A D | a_md5encrypt.c | 200 u_int32 * pkt, /* packet pointer */ in MD5authencrypt() 230 u_int32 * pkt, /* packet pointer */ in MD5authdecrypt() 260 * were used as a u_int32 without any byte swapping. This broke in addr2refid() 269 u_int32 in addr2refid() 275 u_int32 addr_refid; in addr2refid()
|
H A D | prettydate.c | 97 u_int32 hi, lo; in get_struct_tm() 167 u_int32 ntps; in common_prettydate() 228 u_int32 ntp, int local in ntp2unix_tm()
|
/freebsd/contrib/ntp/ntpd/ |
H A D | 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), 645 if (!authdecrypt(info_auth_keyid, (u_int32 *)inpkt, in process_private() 1042 ip->timereceived = htonl((u_int32)(current_time - pp->timereceived)); in peer_stats() 1044 ip->timereachable = htonl((u_int32)(current_time - pp->timereachable)); in peer_stats() 1045 ip->sent = htonl((u_int32)(pp->sent)); in peer_stats() 1046 ip->processed = htonl((u_int32)(pp->processed)); in peer_stats() 1047 ip->badauth = htonl((u_int32)(p in peer_stats() [all...] |
H A D | 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;
|
/freebsd/contrib/ntp/libparse/ |
H A D | 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()
|
/freebsd/libexec/bootpd/ |
H A D | lookup.h | 6 extern int lookup_ipa(char *hostname, u_int32 *addr); 7 extern int lookup_netmask(u_int32 addr, u_int32 *mask);
|
H A D | lookup.c | 63 lookup_ipa(char *hostname, u_int32 *result) in lookup_ipa() 85 lookup_netmask(u_int32 addr, u_int32 *result) in lookup_netmask()
|
/freebsd/sbin/ipf/ipf/ |
H A D | bpf_filter.c | 64 #define u_int32 bpf_u_int32 macro 86 #define EXTRACT_LONG(p) (ntohl(*(u_int32 *)p)) 93 ((u_int32)*((u_char *)p+0)<<24|\ 94 (u_int32)*((u_char *)p+1)<<16|\ 95 (u_int32)*((u_char *)p+2)<<8|\ 96 (u_int32)*((u_char *)p+3)<<0) 178 register u_int32 A, X; in bpf_filter()
|
/freebsd/contrib/ntp/sntp/ |
H A D | networking.h | 61 u_int32 refid; 67 u_int32 opcode; /* last request opcode */ 69 u_int32 crypto; /* peer status word */
|
H A D | networking.c | 74 u_int32 *head, /* head of extension chain */ in skip_efields() 75 u_int32 *tail /* tail/end of extension chain */ in skip_efields() 112 u_int32 * exten_end; in process_pkt() 113 u_int32 * packet_end; in process_pkt()
|
/freebsd/contrib/ntp/tests/libntp/ |
H A D | digests.c | 25 static u_int32 * pkt; 80 pad_sz = sizeof(u_int32) - (msg_sz % sizeof(u_int32)); in setUp() 81 if (sizeof(u_int32) == pad_sz) { in setUp()
|