Searched refs:rbufp (Results 1 - 25 of 45) sorted by relevance

12

/freebsd-12-stable/contrib/ntp/ntpd/
H A Dntp_monitor.c23 * 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 Drefclock_leitch.c390 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 Dntp_signd.c124 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 Dntp_proto.c210 nak_code valid_NAK (struct peer *peer, struct recvbuf *rbufp, u_char hismode);
300 struct recvbuf *rbufp,
314 if (rbufp->recv_length == base_packet_length) {
318 remainder_size = rbufp->recv_length - base_packet_length;
340 rpkt = &rbufp->recv_pkt;
616 struct recvbuf *rbufp
673 if (0 == SRCPORT(&rbufp->recv_srcadr) || rbufp->recv_length < 2) {
677 restrictions(&rbufp->recv_srcadr, &r4a);
680 pkt = &rbufp
298 valid_NAK( struct peer *peer, struct recvbuf *rbufp, u_char hismode ) argument
4503 fast_xmit( struct recvbuf *rbufp, int xmode, keyid_t xkeyid, int flags ) argument
[all...]
H A Drefclock_zyfer.c204 struct recvbuf *rbufp
219 peer = rbufp->recv_peer;
222 p = (u_char *) &rbufp->recv_space;
225 * - if *rbufp->recv_space is !
243 pp->lencode = refclock_gtlin(rbufp, pp->a_lastcode,
248 memcpy(pp->a_lastcode + pp->lencode, p, rbufp->recv_length);
249 pp->lencode += rbufp->recv_length;
H A Drefclock_fg.c216 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 Drefclock_heath.c272 struct recvbuf *rbufp
285 peer = rbufp->recv_peer;
287 pp->lencode = refclock_gtlin(rbufp, pp->a_lastcode, BMAX,
H A Drefclock_pst.c188 struct recvbuf *rbufp
204 peer = rbufp->recv_peer;
207 up->lastptr += refclock_gtlin(rbufp, up->lastptr, pp->a_lastcode
H A Dntp_control.c950 struct recvbuf *rbufp,
1010 stoa(&rbufp->recv_srcadr));
1022 stoa(&rbufp->recv_srcadr));
1047 stoa(&rbufp->recv_srcadr));
1092 stoa(&rbufp->recv_srcadr));
1109 stoa(&rbufp->recv_srcadr));
1124 stoa(&rbufp->recv_srcadr));
1139 stoa(&rbufp->recv_srcadr));
1144 fullpath, stoa(&rbufp->recv_srcadr));
1172 struct recvbuf *rbufp,
949 save_config( struct recvbuf *rbufp, int restrict_mask ) argument
1171 process_control( struct recvbuf *rbufp, int restrict_mask ) argument
3200 control_unspec( struct recvbuf *rbufp, int restrict_mask ) argument
3231 read_status( struct recvbuf *rbufp, int restrict_mask ) argument
3411 read_variables( struct recvbuf *rbufp, int restrict_mask ) argument
3429 write_variables( struct recvbuf *rbufp, int restrict_mask ) argument
3533 configure( struct recvbuf *rbufp, int restrict_mask ) argument
3697 generate_nonce( struct recvbuf * rbufp, char * nonce, size_t nonce_octets ) argument
3965 read_mru_list( struct recvbuf *rbufp, int restrict_mask ) argument
4531 read_ordlist( struct recvbuf * rbufp, int restrict_mask ) argument
4573 req_nonce( struct recvbuf * rbufp, int restrict_mask ) argument
4591 read_clockstatus( struct recvbuf *rbufp, int restrict_mask ) argument
4703 write_clockstatus( struct recvbuf *rbufp, int restrict_mask ) argument
4720 set_trap( struct recvbuf *rbufp, int restrict_mask ) argument
4757 unset_trap( struct recvbuf *rbufp, int restrict_mask ) argument
[all...]
H A Drefclock_datum.c485 struct recvbuf *rbufp
505 ** Get the time code (maybe partial) message out of the rbufp buffer.
508 p = rbufp->recv_peer;
510 dpt = (char *)&rbufp->recv_space;
511 dpend = rbufp->recv_length;
532 datum_pts->lastrec = rbufp->recv_time;
H A Drefclock_jjy.c600 jjy_receive ( struct recvbuf *rbufp )
619 peer = rbufp->recv_peer ;
628 pp->lencode = refclock_gtraw ( rbufp, pp->a_lastcode, BMAX-1, &tRecvTimestamp ) ;
646 pp->lencode = refclock_gtlin ( rbufp, pp->a_lastcode, BMAX, &tRecvTimestamp ) ;
772 rc = jjy_receive_tristate_jjy01 ( rbufp ) ;
776 rc = jjy_receive_cdex_jst2000 ( rbufp ) ;
780 rc = jjy_receive_echokeisokuki_lt2000 ( rbufp ) ;
784 rc = jjy_receive_citizentic_jjy200 ( rbufp ) ;
788 rc = jjy_receive_tristate_gpsclock01 ( rbufp ) ;
792 rc = jjy_receive_seiko_tsys_tdc_300 ( rbufp ) ;
[all...]
H A Drefclock_chu.c423 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 Dntp_refclock.c719 struct recvbuf *rbufp, /* receive buffer pointer */
734 sp = (const char *)rbufp->recv_buffer;
735 spend = sp + rbufp->recv_length;
751 *tsptr = rbufp->recv_time;
753 rbufp->fd, ulfptoa(&rbufp->recv_time, 6), dlen,
778 struct recvbuf *rbufp, /* receive buffer pointer */
787 if (bmax > rbufp->recv_length)
788 bmax = rbufp->recv_length;
789 memcpy(lineptr, rbufp
718 refclock_gtlin( struct recvbuf *rbufp, char *lineptr, int bmax, l_fp *tsptr ) argument
777 refclock_gtraw( struct recvbuf *rbufp, char *lineptr, int bmax, l_fp *tsptr ) argument
[all...]
H A Drefclock_arbiter.c234 struct recvbuf *rbufp
248 peer = rbufp->recv_peer;
251 temp = refclock_gtlin(rbufp, tbuf, sizeof(tbuf), &trtmp);
H A Drefclock_as2201.c228 struct recvbuf *rbufp
240 peer = rbufp->recv_peer;
243 pp->lencode = refclock_gtlin(rbufp, pp->a_lastcode, BMAX, &trtmp);
H A Drefclock_chronolog.c170 struct recvbuf *rbufp
187 peer = rbufp->recv_peer;
190 temp = refclock_gtlin(rbufp, pp->a_lastcode, BMAX, &trtmp);
H A Drefclock_dumbclock.c193 struct recvbuf *rbufp
210 peer = rbufp->recv_peer;
213 temp = refclock_gtlin(rbufp, pp->a_lastcode, BMAX, &trtmp);
H A Drefclock_hopfser.c210 struct recvbuf *rbufp
226 peer = rbufp->recv_peer;
235 pp->lencode = (u_short)refclock_gtlin(rbufp, pp->a_lastcode,
H A Drefclock_ulink.c187 struct recvbuf *rbufp
206 peer = rbufp->recv_peer;
209 temp = refclock_gtlin(rbufp, pp->a_lastcode, BMAX, &trtmp);
H A Drefclock_arc.c870 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 Drefclock_irig.c407 struct recvbuf *rbufp /* receive buffer structure pointer */
422 peer = rbufp->recv_peer;
430 DTOLFP((double)rbufp->recv_length / SECOND, &ltemp);
431 L_SUB(&rbufp->recv_time, &ltemp);
432 up->timestamp = rbufp->recv_time;
433 dpt = rbufp->recv_buffer;
434 for (bufcnt = 0; bufcnt < rbufp->recv_length; bufcnt++) {
H A Drefclock_palisade.c126 static void praecis_parse(struct recvbuf *rbufp, struct peer *peer);
1242 struct recvbuf *rbufp,
1252 memcpy(buf+p,rbufp->recv_space.X_recv_buffer, rbufp->recv_length);
1253 p += rbufp->recv_length;
1270 struct recvbuf *rbufp
1282 peer = rbufp->recv_peer;
1288 praecis_parse(rbufp,peer);
1293 c = (char *) &rbufp->recv_space;
1294 d = c + rbufp
1241 praecis_parse( struct recvbuf *rbufp, struct peer *peer ) argument
[all...]
/freebsd-12-stable/contrib/ntp/libntp/
H A Drecvbuff.c309 recvbuf_t *rbufp; local
320 for (rbufp = HEAD_FIFO(full_recv_fifo);
321 rbufp != NULL;
322 rbufp = next)
324 next = rbufp->link;
326 if (rbufp->dstadr == NULL && rbufp->fd == fd)
328 if (rbufp->fd == fd)
332 rbufp, link, recvbuf_t);
333 INSIST(punlinked == rbufp);
[all...]
/freebsd-12-stable/lib/libc/db/hash/
H A Dhash.c577 BUFHEAD *rbufp; local
591 rbufp = __get_buf(hashp, __call_hash(hashp, kp, size), NULL, 0);
592 if (!rbufp)
594 save_bufp = rbufp;
597 rbufp->flags |= BUF_PIN;
598 for (bp = (u_int16_t *)rbufp->page, n = *bp++, ndx = 1; ndx < n;)
602 memcmp(kp, rbufp->page + *bp, size) == 0)
611 rbufp = __get_buf(hashp, *bp, rbufp, 0);
612 if (!rbufp) {
[all...]
H A Dhash_bigkey.c200 BUFHEAD *last_bfp, *rbufp; local
204 rbufp = bufp;
222 rbufp->flags |= BUF_MOD;
223 rbufp = __get_buf(hashp, pageno, rbufp, 0);
226 last_bfp = rbufp;
227 if (!rbufp)
229 bp = (u_int16_t *)rbufp->page;
233 * If we get here then rbufp points to the last page of the big
249 bufp->ovfl = rbufp
[all...]

Completed in 305 milliseconds

12