/freebsd-11.0-release/contrib/ntp/libntp/ |
H A D | recvbuff.c | 267 recvbuf_t *rbufp; local 273 for (rbufp = HEAD_FIFO(full_recv_fifo); 274 rbufp != NULL; 275 rbufp = next) { 276 next = rbufp->link; 278 if (rbufp->dstadr == NULL && rbufp->fd == fd) 280 if (rbufp->fd == fd) 284 rbufp, link, recvbuf_t); 285 INSIST(punlinked == rbufp); [all...] |
/freebsd-11.0-release/contrib/ntp/ntpd/ |
H A D | ntp_monitor.c | 23 * receive procedure calls us with the incoming rbufp before it does 310 struct recvbuf *rbufp, 328 REQUIRE(rbufp != NULL); 333 pkt = &rbufp->recv_pkt; 334 hash = MON_HASH(&rbufp->recv_srcadr); 345 if (SOCK_EQ(&mon->rmtadr, &rbufp->recv_srcadr)) 349 interval_fp = rbufp->recv_time; 354 mon->last = rbufp->recv_time; 355 NSRCPORT(&mon->rmtadr) = NSRCPORT(&rbufp->recv_srcadr); 446 interval_fp = rbufp 309 ntp_monitor( struct recvbuf *rbufp, u_short flags ) argument [all...] |
H A D | refclock_leitch.c | 390 struct recvbuf *rbufp 393 struct leitchunit *leitch = rbufp->recv_peer->procptr->unitptr; 398 rbufp->recv_length, rbufp->recv_length, 399 rbufp->recv_buffer); 401 if (rbufp->recv_length != 7) 409 if (!leitch_get_date(rbufp,leitch)) { 421 if (!leitch_get_time(rbufp,leitch,1)) { 424 leitch->second, 1, rbufp->recv_time.l_ui, 435 leitch->codetime1 = rbufp 538 leitch_get_date( struct recvbuf *rbufp, struct leitchunit *leitch ) argument 580 leitch_get_time( struct recvbuf *rbufp, struct leitchunit *leitch, int which ) argument [all...] |
H A D | refclock_zyfer.c | 203 struct recvbuf *rbufp 214 peer = rbufp->recv_peer; 217 p = (u_char *) &rbufp->recv_space; 220 * - if *rbufp->recv_space is ! 238 pp->lencode = refclock_gtlin(rbufp, pp->a_lastcode, 243 memcpy(pp->a_lastcode + pp->lencode, p, rbufp->recv_length); 244 pp->lencode += rbufp->recv_length;
|
H A D | ntp_signd.c | 124 struct recvbuf *rbufp, /* receive packet pointer */ 222 sendpkt(&rbufp->recv_srcadr, rbufp->dstadr, 0, xpkt, sendlen); 227 current_time, ntoa(&rbufp->dstadr->sin), 228 ntoa(&rbufp->recv_srcadr), xmode, xkeyid, sendlen); 123 send_via_ntp_signd( struct recvbuf *rbufp, int xmode, keyid_t xkeyid, int flags, struct pkt *xpkt ) argument
|
H A D | ntp_proto.c | 185 enum nak_error_codes valid_NAK(struct peer *peer, struct recvbuf *rbufp, u_char hismode); 278 struct recvbuf *rbufp, 292 if (rbufp->recv_length == base_packet_length) { 296 remainder_size = rbufp->recv_length - base_packet_length; 318 rpkt = &rbufp->recv_pkt; 577 struct recvbuf *rbufp 625 if (0 == SRCPORT(&rbufp->recv_srcadr)) { 629 restrict_mask = restrictions(&rbufp->recv_srcadr); 630 pkt = &rbufp->recv_pkt; 632 current_time, stoa(&rbufp 276 valid_NAK( struct peer *peer, struct recvbuf *rbufp, u_char hismode ) argument 4100 fast_xmit( struct recvbuf *rbufp, int xmode, keyid_t xkeyid, int flags ) argument [all...] |
H A D | refclock_fg.c | 216 struct recvbuf *rbufp 228 peer = rbufp->recv_peer; 241 if (rbufp->recv_length < (LENFG - 2)) { 251 bpt = (char *)rbufp->recv_space.X_recv_buffer; 317 pp->lastrec = rbufp->recv_time; /* Is it better than get_systime()? */
|
H A D | refclock_heath.c | 272 struct recvbuf *rbufp 285 peer = rbufp->recv_peer; 287 pp->lencode = refclock_gtlin(rbufp, pp->a_lastcode, BMAX,
|
H A D | refclock_pst.c | 188 struct recvbuf *rbufp 204 peer = rbufp->recv_peer; 207 up->lastptr += refclock_gtlin(rbufp, up->lastptr, pp->a_lastcode
|
H A D | ntp_control.c | 941 struct recvbuf *rbufp, 1001 stoa(&rbufp->recv_srcadr)); 1013 stoa(&rbufp->recv_srcadr)); 1038 stoa(&rbufp->recv_srcadr)); 1083 stoa(&rbufp->recv_srcadr)); 1100 stoa(&rbufp->recv_srcadr)); 1115 stoa(&rbufp->recv_srcadr)); 1130 stoa(&rbufp->recv_srcadr)); 1135 fullpath, stoa(&rbufp->recv_srcadr)); 1163 struct recvbuf *rbufp, 940 save_config( struct recvbuf *rbufp, int restrict_mask ) argument 1162 process_control( struct recvbuf *rbufp, int restrict_mask ) argument 3136 control_unspec( struct recvbuf *rbufp, int restrict_mask ) argument 3167 read_status( struct recvbuf *rbufp, int restrict_mask ) argument 3347 read_variables( struct recvbuf *rbufp, int restrict_mask ) argument 3365 write_variables( struct recvbuf *rbufp, int restrict_mask ) argument 3461 configure( struct recvbuf *rbufp, int restrict_mask ) argument 3619 generate_nonce( struct recvbuf * rbufp, char * nonce, size_t nonce_octets ) argument 3887 read_mru_list( struct recvbuf *rbufp, int restrict_mask ) argument 4452 read_ordlist( struct recvbuf * rbufp, int restrict_mask ) argument 4494 req_nonce( struct recvbuf * rbufp, int restrict_mask ) argument 4512 read_clockstatus( struct recvbuf *rbufp, int restrict_mask ) argument 4624 write_clockstatus( struct recvbuf *rbufp, int restrict_mask ) argument 4641 set_trap( struct recvbuf *rbufp, int restrict_mask ) argument 4678 unset_trap( struct recvbuf *rbufp, int restrict_mask ) argument [all...] |
H A D | refclock_datum.c | 485 struct recvbuf *rbufp 504 ** Get the time code (maybe partial) message out of the rbufp buffer. 507 p = rbufp->recv_peer; 509 dpt = (char *)&rbufp->recv_space; 510 dpend = rbufp->recv_length; 531 datum_pts->lastrec = rbufp->recv_time;
|
H A D | refclock_jjy.c | 582 jjy_receive ( struct recvbuf *rbufp ) 601 peer = rbufp->recv_peer ; 610 pp->lencode = refclock_gtraw ( rbufp, pp->a_lastcode, BMAX-1, &tRecvTimestamp ) ; 628 pp->lencode = refclock_gtlin ( rbufp, pp->a_lastcode, BMAX, &tRecvTimestamp ) ; 754 rc = jjy_receive_tristate_jjy01 ( rbufp ) ; 758 rc = jjy_receive_cdex_jst2000 ( rbufp ) ; 762 rc = jjy_receive_echokeisokuki_lt2000 ( rbufp ) ; 766 rc = jjy_receive_citizentic_jjy200 ( rbufp ) ; 770 rc = jjy_receive_tristate_gpsclock01 ( rbufp ) ; 774 rc = jjy_receive_seiko_tsys_tdc_300 ( rbufp ) ; [all...] |
H A D | refclock_chu.c | 423 static void chu_audio_receive (struct recvbuf *rbufp); 428 static void chu_serial_receive (struct recvbuf *rbufp); 616 struct recvbuf *rbufp /* receive buffer structure pointer */ 624 peer = rbufp->recv_peer; 637 chu_audio_receive(rbufp); 639 chu_serial_receive(rbufp); 641 chu_serial_receive(rbufp); 652 struct recvbuf *rbufp /* receive buffer structure pointer */ 664 peer = rbufp->recv_peer; 672 DTOLFP((double)rbufp [all...] |
H A D | ntp_refclock.c | 574 struct recvbuf *rbufp, /* receive buffer pointer */ 589 sp = (const char *)rbufp->recv_buffer; 590 spend = sp + rbufp->recv_length; 606 *tsptr = rbufp->recv_time; 608 rbufp->fd, ulfptoa(&rbufp->recv_time, 6), dlen, 633 struct recvbuf *rbufp, /* receive buffer pointer */ 642 if (bmax > rbufp->recv_length) 643 bmax = rbufp->recv_length; 644 memcpy(lineptr, rbufp 573 refclock_gtlin( struct recvbuf *rbufp, char *lineptr, int bmax, l_fp *tsptr ) argument 632 refclock_gtraw( struct recvbuf *rbufp, char *lineptr, int bmax, l_fp *tsptr ) argument [all...] |
H A D | refclock_arbiter.c | 234 struct recvbuf *rbufp 248 peer = rbufp->recv_peer; 251 temp = refclock_gtlin(rbufp, tbuf, sizeof(tbuf), &trtmp);
|
H A D | refclock_as2201.c | 228 struct recvbuf *rbufp 240 peer = rbufp->recv_peer; 243 pp->lencode = refclock_gtlin(rbufp, pp->a_lastcode, BMAX, &trtmp);
|
H A D | refclock_chronolog.c | 170 struct recvbuf *rbufp 187 peer = rbufp->recv_peer; 190 temp = refclock_gtlin(rbufp, pp->a_lastcode, BMAX, &trtmp);
|
H A D | refclock_dumbclock.c | 193 struct recvbuf *rbufp 210 peer = rbufp->recv_peer; 213 temp = refclock_gtlin(rbufp, pp->a_lastcode, BMAX, &trtmp);
|
H A D | refclock_hopfser.c | 210 struct recvbuf *rbufp 226 peer = rbufp->recv_peer; 235 pp->lencode = (u_short)refclock_gtlin(rbufp, pp->a_lastcode,
|
H A D | refclock_ulink.c | 187 struct recvbuf *rbufp 206 peer = rbufp->recv_peer; 209 temp = refclock_gtlin(rbufp, pp->a_lastcode, BMAX, &trtmp);
|
H A D | refclock_arc.c | 870 struct recvbuf *rbufp 886 peer = rbufp->recv_peer; 912 arc_last_offset = pp->lencode+rbufp->recv_length - 1; 933 c = rbufp->recv_buffer[0]; 942 timestamp = rbufp->recv_time; 947 rbufp->recv_length); 977 ((rbufp->recv_length > 1) ? "*** " : ""), 978 rbufp->recv_length, 1027 if(debug && (rbufp->recv_buffer[0] != '\r')) 1035 for(i = 0; i < rbufp [all...] |
H A D | ntp_peer.c | 295 struct recvbuf *rbufp, 307 srcadr = &rbufp->recv_srcadr; 313 if (p->hmode != MODE_BCLIENT && p->dstadr != rbufp->dstadr) 335 pkt = &rbufp->recv_pkt; 338 findmanycastpeer(rbufp)) 1038 struct recvbuf *rbufp /* receive buffer pointer */ 1055 pkt = &rbufp->recv_pkt; 294 findpeer( struct recvbuf *rbufp, int pkt_mode, int * action ) argument
|
H A D | refclock_irig.c | 407 struct recvbuf *rbufp /* receive buffer structure pointer */ 422 peer = rbufp->recv_peer; 430 DTOLFP((double)rbufp->recv_length / SECOND, <emp); 431 L_SUB(&rbufp->recv_time, <emp); 432 up->timestamp = rbufp->recv_time; 433 dpt = rbufp->recv_buffer; 434 for (bufcnt = 0; bufcnt < rbufp->recv_length; bufcnt++) {
|
/freebsd-11.0-release/lib/libc/db/hash/ |
H A D | hash.c | 575 BUFHEAD *rbufp; local 589 rbufp = __get_buf(hashp, __call_hash(hashp, kp, size), NULL, 0); 590 if (!rbufp) 592 save_bufp = rbufp; 595 rbufp->flags |= BUF_PIN; 596 for (bp = (u_int16_t *)rbufp->page, n = *bp++, ndx = 1; ndx < n;) 600 memcmp(kp, rbufp->page + *bp, size) == 0) 609 rbufp = __get_buf(hashp, *bp, rbufp, 0); 610 if (!rbufp) { [all...] |
H A D | hash_bigkey.c | 198 BUFHEAD *last_bfp, *rbufp; local 202 rbufp = bufp; 220 rbufp->flags |= BUF_MOD; 221 rbufp = __get_buf(hashp, pageno, rbufp, 0); 224 last_bfp = rbufp; 225 if (!rbufp) 227 bp = (u_int16_t *)rbufp->page; 231 * If we get here then rbufp points to the last page of the big 247 bufp->ovfl = rbufp [all...] |