Home
last modified time | relevance | path

Searched refs:recvbuf (Results 1 – 25 of 60) sorted by relevance

123

/freebsd-10-stable/contrib/ntp/include/
Drecvbuff.h48 typedef struct recvbuf recvbuf_t;
50 struct recvbuf { struct
69 void (*receiver)(struct recvbuf *); /* callback */ argument
84 extern void freerecvbuf(struct recvbuf *);
94 extern struct recvbuf *get_free_recv_buffer(void);
96 extern struct recvbuf *get_free_recv_buffer_alloc(void);
100 extern void add_full_recv_buffer(struct recvbuf *);
111 extern struct recvbuf *get_full_recv_buffer(void);
Dntp_refclock.h96 void (*clock_recv) (struct recvbuf *); /* completion routine */
97 int (*io_input) (struct recvbuf *); /* input routine -
233 extern int refclock_gtlin (struct recvbuf *, char *, int, l_fp *);
234 extern int refclock_gtraw (struct recvbuf *, char *, int, l_fp *);
236 struct recvbuf *);
237 extern void process_refclock_packet(struct recvbuf *);
Dntpd.h68 extern void process_control (struct recvbuf *, int);
132 extern void collect_timing (struct recvbuf *, const char *, int, l_fp *);
165 extern u_short ntp_monitor (struct recvbuf *, u_short);
172 extern struct peer *findpeer (struct recvbuf *, int, int *);
190 extern struct peer *findmanycastpeer(struct recvbuf *);
195 extern int crypto_recv (struct peer *, struct recvbuf *);
197 struct recvbuf *, int,
222 extern void receive (struct recvbuf *);
255 extern void process_private (struct recvbuf *, int);
533 extern void send_via_ntp_signd(struct recvbuf *, int, keyid_t, int,
Dntpsim.h71 struct recvbuf evnt_buf;
/freebsd-10-stable/contrib/ntp/lib/isc/tests/
Dsocket_test.c89 char sendbuf[BUFSIZ], recvbuf[BUFSIZ]; in ATF_TC_BODY() local
131 r.base = (void *) recvbuf; in ATF_TC_BODY()
139 ATF_CHECK_STREQ(recvbuf, "Hello"); in ATF_TC_BODY()
160 char sendbuf[BUFSIZ], recvbuf[BUFSIZ]; in ATF_TC_BODY() local
217 r.base = (void *) recvbuf; in ATF_TC_BODY()
225 ATF_CHECK_STREQ(recvbuf, "Hello"); in ATF_TC_BODY()
227 r.base = (void *) recvbuf; in ATF_TC_BODY()
235 ATF_CHECK_STREQ(recvbuf, "World"); in ATF_TC_BODY()
/freebsd-10-stable/contrib/ntp/lib/isc/
Dhttpd.c88 char recvbuf[HTTP_RECVLEN]; /*%< receive buffer */ member
378 #define LENGTHOK(s) (httpd->recvbuf - (s) < (int)httpd->recvlen)
379 #define BUFLENOK(s) (httpd->recvbuf - (s) < HTTP_RECVLEN)
392 httpd->recvbuf[httpd->recvlen] = 0; in process_request()
398 s = strstr(httpd->recvbuf, "\r\n\r\n"); in process_request()
401 s = strstr(httpd->recvbuf, "\n\n"); in process_request()
411 if (strncmp(httpd->recvbuf, "GET ", 4) == 0) { in process_request()
413 p = httpd->recvbuf + 4; in process_request()
414 } else if (strncmp(httpd->recvbuf, "POST ", 5) == 0) { in process_request()
416 p = httpd->recvbuf + 5; in process_request()
[all …]
/freebsd-10-stable/contrib/ntp/ntpd/
Dntpsim.c19 int determine_recv_buf_ordering(const struct recvbuf *b1,
20 const struct recvbuf *b2);
56 const struct recvbuf *b1, in determine_recv_buf_ordering()
57 const struct recvbuf *b2 in determine_recv_buf_ordering()
228 struct recvbuf *rbuf; in sim_event_timer()
239 rbuf = (struct recvbuf *)dequeue(recv_queue); in sim_event_timer()
265 struct recvbuf rbuf; /* Buffer for the received packet */ in simulate_server()
445 struct recvbuf *rbuf; in sim_event_recv_packet()
Drefclock_leitch.c100 static void leitch_receive (struct recvbuf *);
105 static int leitch_get_date (struct recvbuf *, struct leitchunit *);
106 static int leitch_get_time (struct recvbuf *, struct leitchunit *, int);
390 struct recvbuf *rbufp in leitch_receive()
539 struct recvbuf *rbufp, in leitch_get_date()
581 struct recvbuf *rbufp, in leitch_get_time()
Dntp_control.c47 void (*handler) (struct recvbuf *, int); /* handle request */
84 static void control_unspec (struct recvbuf *, int);
85 static void read_status (struct recvbuf *, int);
88 static void read_variables (struct recvbuf *, int);
89 static void write_variables (struct recvbuf *, int);
90 static void read_clockstatus(struct recvbuf *, int);
91 static void write_clockstatus(struct recvbuf *, int);
92 static void set_trap (struct recvbuf *, int);
93 static void save_config (struct recvbuf *, int);
94 static void configure (struct recvbuf *, int);
[all …]
Drefclock_heath.c191 static void heath_receive (struct recvbuf *);
272 struct recvbuf *rbufp in heath_receive()
Drefclock_zyfer.c104 static void zyfer_receive (struct recvbuf *);
203 struct recvbuf *rbufp in zyfer_receive()
Drefclock_pst.c96 static void pst_receive (struct recvbuf *);
188 struct recvbuf *rbufp in pst_receive()
Drefclock_fg.c40 static void fg_receive (struct recvbuf *);
216 struct recvbuf *rbufp in fg_receive()
Drefclock_hopfser.c100 static void hopfserial_receive (struct recvbuf *);
210 struct recvbuf *rbufp in hopfserial_receive()
Drefclock_as2201.c134 static void as2201_receive (struct recvbuf *);
228 struct recvbuf *rbufp in as2201_receive()
Drefclock_ulink.c94 static void ulink_receive (struct recvbuf *);
187 struct recvbuf *rbufp in ulink_receive()
Drefclock_chronolog.c72 static void chronolog_receive (struct recvbuf *);
170 struct recvbuf *rbufp in chronolog_receive()
Drefclock_jjy.c323 static void jjy_receive (struct recvbuf *);
324 static int jjy_receive_tristate_jjy01 (struct recvbuf *);
325 static int jjy_receive_cdex_jst2000 (struct recvbuf *);
326 static int jjy_receive_echokeisokuki_lt2000 (struct recvbuf *);
327 static int jjy_receive_citizentic_jjy200 (struct recvbuf *);
328 static int jjy_receive_tristate_gpsclock01 (struct recvbuf *);
329 static int jjy_receive_seiko_tsys_tdc_300 (struct recvbuf *);
330 static int jjy_receive_telephone (struct recvbuf *);
346 static int modem_receive ( struct recvbuf * ) ;
588 jjy_receive ( struct recvbuf *rbufp ) in jjy_receive()
[all …]
Drefclock_dumbclock.c79 static void dumbclock_receive (struct recvbuf *);
193 struct recvbuf *rbufp in dumbclock_receive()
Drefclock_chu.c405 static void chu_receive (struct recvbuf *);
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 */ in chu_receive()
652 struct recvbuf *rbufp /* receive buffer structure pointer */ in chu_audio_receive()
967 struct recvbuf *rbufp /* receive buffer structure pointer */ in chu_serial_receive()
Drefclock_arbiter.c131 static void arb_receive (struct recvbuf *);
234 struct recvbuf *rbufp in arb_receive()
/freebsd-10-stable/contrib/ntp/lib/isc/win32/
Dsocket.c256 } recvbuf; member
750 INSIST(sock->recvbuf.remaining == 0); in queue_receive_request()
753 iov[0].len = sock->recvbuf.len; in queue_receive_request()
754 iov[0].buf = sock->recvbuf.base; in queue_receive_request()
765 sock->recvbuf.from_addr_len = sizeof(sock->recvbuf.from_addr); in queue_receive_request()
770 (SOCKADDR *)&sock->recvbuf.from_addr, in queue_receive_request()
771 &sock->recvbuf.from_addr_len, in queue_receive_request()
1220 INSIST(sock->recvbuf.remaining > 0); in fill_recv()
1224 dev->address.length = sock->recvbuf.from_addr_len; in fill_recv()
1225 memcpy(&dev->address.type, &sock->recvbuf.from_addr, in fill_recv()
[all …]
/freebsd-10-stable/tests/sys/netinet/
Dudp_dontroute.c62 char recvbuf[buflen]; in main() local
97 len = read(t, recvbuf, buflen); in main()
/freebsd-10-stable/usr.bin/csup/
Dmux.c151 struct buf *recvbuf; member
462 count = buf_count(chan->recvbuf); in chan_read()
468 buf_get(chan->recvbuf, cp, n); in chan_read()
596 chan->recvbuf = buf_new(CHAN_RBSIZE); in chan_new()
613 buf_free(chan->recvbuf); in chan_free()
799 chan->recvbuf->size); in sender_loop()
807 chan->recvbuf->size); in sender_loop()
819 chan->recvbuf->size); in sender_loop()
1045 buf = chan->recvbuf; in receiver_loop()
/freebsd-10-stable/contrib/netbsd-tests/net/icmp/
Dt_ping.c146 char recvbuf[IP_MAXPACKET]; in doping() local
189 while ((n = rump_sys_recvfrom(s, recvbuf, sizeof(recvbuf), 0, in doping()

123