Searched refs:recvbuf (Results 1 - 25 of 56) sorted by relevance

123

/freebsd-11-stable/contrib/ntp/include/
H A Drecvbuff.h11 * recvbuf memory management
51 * Format of a recvbuf. These are used by the asynchronous receive
64 typedef struct recvbuf recvbuf_t;
66 struct recvbuf { struct
85 void (*receiver)(struct recvbuf *); /* callback */
98 /* freerecvbuf - make a single recvbuf available for reuse
100 extern void freerecvbuf(struct recvbuf *);
110 extern struct recvbuf *get_free_recv_buffer(int /*BOOL*/ urgent);
112 extern struct recvbuf *get_free_recv_buffer_alloc(int /*BOOL*/ urgent);
116 extern void add_full_recv_buffer(struct recvbuf *);
[all...]
H A Dntp_refclock.h93 void (*clock_recv) (struct recvbuf *); /* completion routine */
94 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 *);
H A 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 *, in
[all...]
H A Dntpsim.h71 struct recvbuf evnt_buf;
/freebsd-11-stable/contrib/ntp/lib/isc/tests/
H A Dsocket_test.c89 char sendbuf[BUFSIZ], recvbuf[BUFSIZ]; local
131 r.base = (void *) recvbuf;
139 ATF_CHECK_STREQ(recvbuf, "Hello");
160 char sendbuf[BUFSIZ], recvbuf[BUFSIZ]; local
217 r.base = (void *) recvbuf;
225 ATF_CHECK_STREQ(recvbuf, "Hello");
227 r.base = (void *) recvbuf;
235 ATF_CHECK_STREQ(recvbuf, "World");
/freebsd-11-stable/tests/sys/netinet/
H A Dtcp_user_cookie.c61 char recvbuf[buflen]; local
103 ret = read(accepted, &recvbuf, buflen);
H A Dudp_dontroute.c63 char recvbuf[buflen]; local
124 len = read(t, recvbuf, buflen);
/freebsd-11-stable/contrib/ntp/ntpd/
H A Dntpsim.c19 int determine_recv_buf_ordering(const struct recvbuf *b1,
20 const struct recvbuf *b2);
56 const struct recvbuf *b1,
57 const struct recvbuf *b2
228 struct recvbuf *rbuf;
239 rbuf = (struct recvbuf *)dequeue(recv_queue);
265 struct recvbuf rbuf; /* Buffer for the received packet */
445 struct recvbuf *rbuf;
H A 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
539 struct recvbuf *rbufp,
581 struct recvbuf *rbufp,
H A Drefclock_heath.c191 static void heath_receive (struct recvbuf *);
272 struct recvbuf *rbufp
H A Drefclock_pst.c96 static void pst_receive (struct recvbuf *);
188 struct recvbuf *rbufp
H A Drefclock_palisade.h187 static void palisade_io (struct recvbuf *);
H A Drefclock_jjy.c334 static void jjy_receive (struct recvbuf *);
335 static int jjy_receive_tristate_jjy01 (struct recvbuf *);
336 static int jjy_receive_cdex_jst2000 (struct recvbuf *);
337 static int jjy_receive_echokeisokuki_lt2000 (struct recvbuf *);
338 static int jjy_receive_citizentic_jjy200 (struct recvbuf *);
339 static int jjy_receive_tristate_gpsclock01 (struct recvbuf *);
340 static int jjy_receive_seiko_tsys_tdc_300 (struct recvbuf *);
341 static int jjy_receive_telephone (struct recvbuf *);
357 static int modem_receive ( struct recvbuf * ) ;
600 jjy_receive ( struct recvbuf *rbuf
[all...]
H A Dntp_control.c49 void (*handler) (struct recvbuf *, int); /* handle request */
86 static void control_unspec (struct recvbuf *, int);
87 static void read_status (struct recvbuf *, int);
90 static void read_variables (struct recvbuf *, int);
91 static void write_variables (struct recvbuf *, int);
92 static void read_clockstatus(struct recvbuf *, int);
93 static void write_clockstatus(struct recvbuf *, int);
94 static void set_trap (struct recvbuf *, int);
95 static void save_config (struct recvbuf *, int);
96 static void configure (struct recvbuf *, in
[all...]
H A Drefclock_arbiter.c131 static void arb_receive (struct recvbuf *);
234 struct recvbuf *rbufp
H A Drefclock_as2201.c134 static void as2201_receive (struct recvbuf *);
228 struct recvbuf *rbufp
H A Drefclock_chronolog.c72 static void chronolog_receive (struct recvbuf *);
170 struct recvbuf *rbufp
H A Drefclock_dumbclock.c79 static void dumbclock_receive (struct recvbuf *);
193 struct recvbuf *rbufp
H A Drefclock_fg.c40 static void fg_receive (struct recvbuf *);
216 struct recvbuf *rbufp
H A Drefclock_hopfser.c100 static void hopfserial_receive (struct recvbuf *);
102 /* static void hopfserial_io (struct recvbuf *); */
210 struct recvbuf *rbufp
H A Drefclock_ulink.c94 static void ulink_receive (struct recvbuf *);
187 struct recvbuf *rbufp
H A Drefclock_zyfer.c105 static void zyfer_receive (struct recvbuf *);
204 struct recvbuf *rbufp
/freebsd-11-stable/contrib/ntp/lib/isc/
H A Dhttpd.c88 char recvbuf[HTTP_RECVLEN]; /*%< receive buffer */ member in struct:isc_httpd
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;
398 s = strstr(httpd->recvbuf, "\r\n\r\n");
401 s = strstr(httpd->recvbuf, "\n\n");
411 if (strncmp(httpd->recvbuf, "GET ", 4) == 0) {
413 p = httpd->recvbuf + 4;
414 } else if (strncmp(httpd->recvbuf, "POST ", 5) == 0) {
416 p = httpd->recvbuf
[all...]
/freebsd-11-stable/contrib/ntp/lib/isc/win32/
H A Dsocket.c256 } recvbuf; member in struct:isc_socket
750 INSIST(sock->recvbuf.remaining == 0);
753 iov[0].len = sock->recvbuf.len;
754 iov[0].buf = sock->recvbuf.base;
765 sock->recvbuf.from_addr_len = sizeof(sock->recvbuf.from_addr);
770 (SOCKADDR *)&sock->recvbuf.from_addr,
771 &sock->recvbuf.from_addr_len,
1220 INSIST(sock->recvbuf.remaining > 0);
1224 dev->address.length = sock->recvbuf
[all...]
/freebsd-11-stable/contrib/netbsd-tests/net/icmp/
H A Dt_ping.c146 char recvbuf[IP_MAXPACKET]; local
189 while ((n = rump_sys_recvfrom(s, recvbuf, sizeof(recvbuf), 0,

Completed in 174 milliseconds

123