Home
last modified time | relevance | path

Searched refs:reply (Results 1 – 25 of 206) sorted by relevance

123456789

/openbsd-src/regress/sys/net/pf_divert/
H A DMakefile57 inet-args-tcp-reply inet6-args-tcp-reply \
59 inet-args-udp-reply inet6-args-udp-reply \
60 inet-args-udp-reply-to inet6-args-udp-reply-to \
62 inet-args-rip-reply inet6-args-rip-reply \
63 inet-args-rip-reply-to inet6-args-rip-reply-to \
65 inet-args-icmp-reply-to inet6-args-icmp-reply-to \
66 inet-args-icmp-reply-reuse inet6-args-icmp-reply-reuse \
68 inet-reuse-tcp-to-reply inet6-reuse-tcp-to-reply \
69 inet-reuse-tcp-reply-to inet6-reuse-tcp-reply-to \
70 inet-reuse-tcp-reply-reply inet6-reuse-tcp-reply-reply \
[all …]
H A DREADME1 Run pf divert-to and divert-reply regression test. The framework
23 The args-...-reply tests install an outgoing divert-reply pf rule
31 The args-...-reply-to tests use the same setup as the args-...-reply
35 receives with recvfrom and sends back with sendto. The args-icmp-reply-to
37 automatically reflects the ICMP echo request packet with an reply.
39 The args-icmp-reply-reuse test is similar to the args-icmp-reply-to
43 the second reply reaches the client. This can only work, if pf
47 args-...-reply and args-...-reply-to tests consecutively to check
/openbsd-src/usr.sbin/apm/
H A Dapm.c77 send_command(int fd, struct apm_command *cmd, struct apm_reply *reply) in send_command() argument
83 if (recv(fd, reply, sizeof(*reply), 0) != sizeof(*reply)) { in send_command()
98 struct apm_reply reply; in do_zzz() local
102 bzero(&reply, sizeof reply); in do_zzz()
123 ret = send_command(fd, &command, &reply); in do_zzz()
124 if (ret == 0 && reply.error) in do_zzz()
125 errx(1, "%s: %s", apm_state(reply.newstate), strerror(reply.error)); in do_zzz()
163 struct apm_reply reply; in main() local
272 bzero(&reply, sizeof reply); in main()
273 reply.batterystate.battery_state = APM_BATT_UNKNOWN; in main()
[all …]
/openbsd-src/sys/dev/pci/drm/apple/
H A Ddptxep.c163 struct dptxport_apcall_max_drive_settings *reply = reply_; in dptxport_call_get_max_drive_settings() local
165 if (reply_size < sizeof(*reply)) in dptxport_call_get_max_drive_settings()
168 reply->retcode = cpu_to_le32(0); in dptxport_call_get_max_drive_settings()
169 reply->max_drive_settings[0] = cpu_to_le32(0x3); in dptxport_call_get_max_drive_settings()
170 reply->max_drive_settings[1] = cpu_to_le32(0x3); in dptxport_call_get_max_drive_settings()
182 struct dptxport_apcall_drive_settings *reply = reply_; in dptxport_call_get_drive_settings() local
184 if (reply_size < sizeof(*reply) || request_size < sizeof(*request)) in dptxport_call_get_drive_settings()
187 *reply = *request; in dptxport_call_get_drive_settings()
190 memset(reply_ + sizeof(*reply), 0, reply_size - sizeof(*reply)); in dptxport_call_get_drive_settings()
192 if (reply->retcode != 4) in dptxport_call_get_drive_settings()
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/bin/
H A Dinstmodsh57 my $reply = <STDIN>; chomp($reply);
58 my($cmd) = $reply =~ /^(\w)\b/;
63 $Module_Commands{$cmd}->($reply, $module);
76 my($reply, $module) = @_;
78 my $class = (split(' ', $reply))[1];
93 my($reply, $module) = @_;
95 my $class = (split(' ', $reply))[1];
110 my($reply, $module) = @_;
112 my $file = (split(' ', $reply))[1];
132 my($reply, $module) = @_;
[all …]
/openbsd-src/usr.sbin/ntpd/
H A Dserver.c158 struct ntp_msg query, reply; in server_dispatch() local
178 memset(&reply, 0, sizeof(reply)); in server_dispatch()
180 reply.status = lconf->status.leap; in server_dispatch()
182 reply.status = LI_ALARM; in server_dispatch()
183 reply.status |= (query.status & VERSIONMASK); in server_dispatch()
185 reply.status |= MODE_SERVER; in server_dispatch()
187 reply.status |= MODE_SYM_PAS; in server_dispatch()
191 reply.stratum = lconf->status.stratum; in server_dispatch()
192 reply.ppoll = query.ppoll; in server_dispatch()
193 reply.precision = lconf->status.precision; in server_dispatch()
[all …]
H A Dclient.c386 p->reply[p->shift].offset = ((T2 - T1) + (T3 - T4)) / 2 - getoffset(); in client_dispatch()
387 p->reply[p->shift].delay = (T4 - T1) - (T3 - T2); in client_dispatch()
388 p->reply[p->shift].status.stratum = msg.stratum; in client_dispatch()
389 if (p->reply[p->shift].delay < 0) { in client_dispatch()
395 p->reply[p->shift].delay, (long long)interval); in client_dispatch()
398 p->reply[p->shift].error = (T2 - T1) - (T3 - T4); in client_dispatch()
399 p->reply[p->shift].rcvd = getmonotime(); in client_dispatch()
400 p->reply[p->shift].good = 1; in client_dispatch()
402 p->reply[p->shift].status.leap = (msg.status & LIMASK); in client_dispatch()
403 p->reply[p->shift].status.precision = msg.precision; in client_dispatch()
[all …]
/openbsd-src/libexec/ftpd/
H A Dftpcmd.y172 reply(500,
177 reply(500,
184 reply(500,
192 reply(200, "PORT command successful.");
201 reply(500,
210 reply(200, "LPRT command successful.");
220 reply(500,
229 reply(200, "LPRT command successful.");
259 reply(200, "EPSV ALL command successful.");
275 reply(200, "Type set to A.");
[all …]
H A Dftpd.c531 reply(530, "System not available."); in main()
572 reply(530, "System not available."); in main()
596 reply(220, "FTP server ready."); in main()
598 reply(220, "%s FTP server ready.", in main()
705 reply(530, "User %s access denied.", name); in user()
719 reply(421, "Local resource failure"); in user()
724 reply(331, in user()
727 reply(530, "User %s unknown.", name); in user()
769 reply(421, "Local resource failure"); in user()
778 reply(530, "User %s access denied.", name); in user()
[all …]
/openbsd-src/usr.sbin/eigrpd/
H A Drde_dual.c232 struct reply_node *reply; in rt_del() local
236 while ((reply = TAILQ_FIRST(&rn->rijk)) != NULL) in rt_del()
237 reply_outstanding_remove(reply); in rt_del()
444 struct reply_node *reply; in reply_outstanding_add() local
446 if ((reply = calloc(1, sizeof(*reply))) == NULL) in reply_outstanding_add()
449 evtimer_set(&reply->ev_active_timeout, reply_active_timer, reply); in reply_outstanding_add()
450 evtimer_set(&reply->ev_sia_timeout, reply_sia_timer, reply); in reply_outstanding_add()
451 reply->siaquery_sent = 0; in reply_outstanding_add()
452 reply->siareply_recv = 0; in reply_outstanding_add()
453 reply->rn = rn; in reply_outstanding_add()
[all …]
/openbsd-src/lib/libfido2/src/
H A Du2f.c148 unsigned char reply[FIDO_MAXMSG]; in send_dummy_register() local
171 if (fido_rx(dev, CTAP_CMD_MSG, &reply, sizeof(reply), ms) < 2) { in send_dummy_register()
181 } while (((reply[0] << 8) | reply[1]) == SW_CONDITIONS_NOT_SATISFIED); in send_dummy_register()
197 unsigned char reply[FIDO_MAXMSG]; in key_lookup() local
237 if (fido_rx(dev, CTAP_CMD_MSG, &reply, sizeof(reply), ms) != 2) { in key_lookup()
243 switch ((reply[0] << 8) | reply[1]) { in key_lookup()
265 const unsigned char *reply, size_t len) in parse_auth_reply() argument
270 if (len < 2 || ((reply[len - 2] << 8) | reply[len - 1]) != SW_NO_ERROR) { in parse_auth_reply()
277 if (fido_buf_read(&reply, &len, &flags, sizeof(flags)) < 0 || in parse_auth_reply()
278 fido_buf_read(&reply, &len, &sigcount, sizeof(sigcount)) < 0) { in parse_auth_reply()
[all …]
H A Dcredman.c203 unsigned char reply[FIDO_MAXMSG]; in credman_rx_metadata() local
209 if ((reply_len = fido_rx(dev, CTAP_CMD_CBOR, &reply, sizeof(reply), in credman_rx_metadata()
215 if ((r = cbor_parse_reply(reply, (size_t)reply_len, metadata, in credman_rx_metadata()
328 unsigned char reply[FIDO_MAXMSG]; in credman_rx_rk() local
334 if ((reply_len = fido_rx(dev, CTAP_CMD_CBOR, &reply, sizeof(reply), in credman_rx_rk()
341 if ((r = cbor_parse_reply(reply, (size_t)reply_len, rk, in credman_rx_rk()
353 if ((r = cbor_parse_reply(reply, (size_t)reply_len, &rk->ptr[0], in credman_rx_rk()
367 unsigned char reply[FIDO_MAXMSG]; in credman_rx_next_rk() local
371 if ((reply_len = fido_rx(dev, CTAP_CMD_CBOR, &reply, sizeof(reply), in credman_rx_next_rk()
384 if ((r = cbor_parse_reply(reply, (size_t)reply_len, &rk->ptr[rk->n_rx], in credman_rx_next_rk()
[all …]
H A Dbio.c236 unsigned char reply[FIDO_MAXMSG]; in bio_rx_template_array() local
242 if ((reply_len = fido_rx(dev, CTAP_CMD_CBOR, &reply, sizeof(reply), in bio_rx_template_array()
248 if ((r = cbor_parse_reply(reply, (size_t)reply_len, ta, in bio_rx_template_array()
388 unsigned char reply[FIDO_MAXMSG]; in bio_rx_enroll_begin() local
397 if ((reply_len = fido_rx(dev, CTAP_CMD_CBOR, &reply, sizeof(reply), in bio_rx_enroll_begin()
403 if ((r = cbor_parse_reply(reply, (size_t)reply_len, e, in bio_rx_enroll_begin()
408 if ((r = cbor_parse_reply(reply, (size_t)reply_len, &t->id, in bio_rx_enroll_begin()
490 unsigned char reply[FIDO_MAXMSG]; in bio_rx_enroll_continue() local
497 if ((reply_len = fido_rx(dev, CTAP_CMD_CBOR, &reply, sizeof(reply), in bio_rx_enroll_continue()
503 if ((r = cbor_parse_reply(reply, (size_t)reply_len, e, in bio_rx_enroll_continue()
[all …]
/openbsd-src/sbin/fsck_ffs/
H A Dpass2.c87 if (reply("ALLOCATE") == 0) { in pass2()
97 if (reply("REALLOCATE")) { in pass2()
103 if (reply("CONTINUE") == 0) { in pass2()
112 if (reply("REALLOCATE")) { in pass2()
118 if (reply("FIX") == 0) { in pass2()
157 if (reply("FIX") == 1) { in pass2()
171 if (preen || reply("ADJUST") == 1) { in pass2()
209 if (reply("FIX") == 0) in pass2()
217 if (reply("FIX") == 0) in pass2()
265 if (reply("FIX") == 1) in pass2check()
[all …]
H A Dsetup.c122 if (reply("CONTINUE") == 0) { in setup()
173 if (reply("LOOK FOR ALTERNATE SUPERBLOCKS") == 0) in setup()
236 if (reply("SET TO DEFAULT") == 1) { in setup()
244 if (reply("SET TO DEFAULT") == 1) { in setup()
256 if (preen || reply("SET TO DEFAULT") == 1) { in setup()
267 if (preen || reply("FIX") == 1) { in setup()
278 if (preen || reply("FIX") == 1) { in setup()
288 if (preen || reply("FIX") == 1) { in setup()
298 if (preen || reply("FIX") == 1) { in setup()
315 if (preen || reply("FIX") == 1) { in setup()
[all …]
/openbsd-src/sbin/fsck_ext2fs/
H A Dpass2.c70 if (reply("ALLOCATE") == 0) in pass2()
78 if (reply("REALLOCATE")) { in pass2()
84 if (reply("CONTINUE") == 0) in pass2()
91 if (reply("REALLOCATE")) { in pass2()
97 if (reply("FIX") == 0) in pass2()
129 if (reply("FIX") == 1) { in pass2()
142 if (preen || reply("ADJUST") == 1) { in pass2()
170 if (reply("FIX") == 0) in pass2()
178 if (reply("FIX") == 0) in pass2()
213 if (reply("FIX") == 1) in pass2check()
[all …]
H A Dpass1.c141 if (reply("CLEAR") == 1) { in checkinode()
154 if (preen || reply("CORRECT")) { in checkinode()
179 if (preen || reply("CORRECT")) { in checkinode()
190 if (!preen && mode == IFMT && reply("HOLD BAD BLOCK") == 1) { in checkinode()
249 if (reply("CONTINUE") == 0) in checkinode()
277 else if (reply("CORRECT") == 0) in checkinode()
287 if (reply("CLEAR") == 1) { in checkinode()
311 else if (reply("CONTINUE") == 0) in pass1check()
329 else if (reply("CONTINUE") == 0) in pass1check()
336 if (reply("CONTINUE") == 0) in pass1check()
/openbsd-src/usr.sbin/apmd/
H A Dapmd.c233 struct apm_reply reply; in handle_client() local
260 bzero(&reply, sizeof(reply)); in handle_client()
261 power_status(ctl_fd, 0, &reply.batterystate); in handle_client()
264 reply.newstate = SUSPENDING; in handle_client()
265 reply.error = suspend(ctl_fd); in handle_client()
268 reply.newstate = STANDING_BY; in handle_client()
269 reply.error = stand_by(ctl_fd); in handle_client()
272 reply.newstate = HIBERNATING; in handle_client()
273 reply.error = hibernate(ctl_fd); in handle_client()
276 reply.newstate = NORMAL; in handle_client()
[all …]
/openbsd-src/regress/sbin/pfctl/
H A Dpfail57.ok1 stdin:2: af-to cannot be used together with route-to, reply-to, dup-to
2 stdin:3: af-to cannot be used together with route-to, reply-to, dup-to
3 stdin:4: af-to cannot be used together with route-to, reply-to, dup-to
4 stdin:6: af-to cannot be used together with route-to, reply-to, dup-to
5 stdin:7: af-to cannot be used together with route-to, reply-to, dup-to
6 stdin:8: af-to cannot be used together with route-to, reply-to, dup-to
H A Dpfail8.ok2 stdin:1: route-to, reply-to and dup-to require keep state
3 stdin:1: route-to, reply-to and dup-to are not supported on block rules
7 stdin:2: route-to, reply-to and dup-to require keep state
8 stdin:2: route-to, reply-to and dup-to are not supported on block rules
/openbsd-src/sys/lib/libsa/
H A Drpc.c116 struct rpc_reply *reply; in rpc_call() local
177 recv_head -= sizeof(*reply); in rpc_call()
190 if ((size_t)cc <= sizeof(*reply)) { in rpc_call()
201 reply = (struct rpc_reply *)recv_head; in rpc_call()
202 auth = &reply->rp_u.rpu_rok.rok_auth; in rpc_call()
212 x = ntohl(reply->rp_u.rpu_rok.rok_status); in rpc_call()
218 recv_head += sizeof(*reply); in rpc_call()
231 struct rpc_reply *reply; in recvrpc() local
245 reply = (struct rpc_reply *)pkt; in recvrpc()
247 x = ntohl(reply->rp_xid); in recvrpc()
[all …]
/openbsd-src/usr.bin/ssh/
H A Dmux.c254 Channel *c, struct sshbuf *m, struct sshbuf *reply) in mux_master_process_hello()
295 /* Enqueue a "ok" response to the reply buffer */
297 reply_ok(struct sshbuf *reply, u_int rid)
301 if ((r = sshbuf_put_u32(reply, MUX_S_OK)) != 0 || in reply_ok()
302 (r = sshbuf_put_u32(reply, rid)) != 0) in reply_ok()
303 fatal_fr(r, "reply"); in reply_ok()
306 /* Enqueue an error response to the reply buffer */
308 reply_error(struct sshbuf *reply, u_int type, u_int rid, const char *msg)
312 if ((r = sshbuf_put_u32(reply, type)) != 0 || in reply_error()
313 (r = sshbuf_put_u32(reply, ri in reply_error()
255 mux_master_process_hello(struct ssh * ssh,u_int rid,Channel * c,struct sshbuf * m,struct sshbuf * reply) mux_master_process_hello() argument
298 reply_ok(struct sshbuf * reply,u_int rid) reply_ok() argument
309 reply_error(struct sshbuf * reply,u_int type,u_int rid,const char * msg) reply_error() argument
321 mux_master_process_new_session(struct ssh * ssh,u_int rid,Channel * c,struct sshbuf * m,struct sshbuf * reply) mux_master_process_new_session() argument
478 mux_master_process_alive_check(struct ssh * ssh,u_int rid,Channel * c,struct sshbuf * m,struct sshbuf * reply) mux_master_process_alive_check() argument
495 mux_master_process_terminate(struct ssh * ssh,u_int rid,Channel * c,struct sshbuf * m,struct sshbuf * reply) mux_master_process_terminate() argument
671 mux_master_process_open_fwd(struct ssh * ssh,u_int rid,Channel * c,struct sshbuf * m,struct sshbuf * reply) mux_master_process_open_fwd() argument
836 mux_master_process_close_fwd(struct ssh * ssh,u_int rid,Channel * c,struct sshbuf * m,struct sshbuf * reply) mux_master_process_close_fwd() argument
948 mux_master_process_stdio_fwd(struct ssh * ssh,u_int rid,Channel * c,struct sshbuf * m,struct sshbuf * reply) mux_master_process_stdio_fwd() argument
1048 struct sshbuf *reply; mux_stdio_confirm() local
1091 mux_master_process_stop_listening(struct ssh * ssh,u_int rid,Channel * c,struct sshbuf * m,struct sshbuf * reply) mux_master_process_stop_listening() argument
1121 mux_master_process_proxy(struct ssh * ssh,u_int rid,Channel * c,struct sshbuf * m,struct sshbuf * reply) mux_master_process_proxy() argument
1349 struct sshbuf *reply; mux_session_confirm() local
[all...]
/openbsd-src/lib/libssl/test/
H A Dtesttsa98 ../../util/shlib_wrap.sh ../../apps/openssl ts -reply -in $1 -text
104 ../../util/shlib_wrap.sh ../../apps/openssl ts -reply -section $3 -queryfile $1 -out $2
112 ../../util/shlib_wrap.sh ../../apps/openssl ts -reply -in $2 -out $TOKEN_DER -token_out
114 ../../util/shlib_wrap.sh ../../apps/openssl ts -reply -in $TOKEN_DER -token_in -out $RESPONSE2
118 ../../util/shlib_wrap.sh ../../apps/openssl ts -reply -in $2 -text -token_out
120 ../../util/shlib_wrap.sh ../../apps/openssl ts -reply -in $TOKEN_DER -token_in -text -token_out
122 ../../util/shlib_wrap.sh ../../apps/openssl ts -reply -queryfile $1 -text -token_out
139 ../../util/shlib_wrap.sh ../../apps/openssl ts -reply -in $2 -out $2.token -token_out
/openbsd-src/usr.sbin/unbound/testcode/
H A Dtestpkts.c180 static void replyline(char* line, uint8_t* reply, size_t reply_len, in replyline() argument
190 LDNS_OPCODE_SET(reply, LDNS_PACKET_QUERY); in replyline()
192 LDNS_OPCODE_SET(reply, LDNS_PACKET_IQUERY); in replyline()
194 LDNS_OPCODE_SET(reply, LDNS_PACKET_STATUS); in replyline()
196 LDNS_OPCODE_SET(reply, LDNS_PACKET_NOTIFY); in replyline()
198 LDNS_OPCODE_SET(reply, LDNS_PACKET_UPDATE); in replyline()
201 LDNS_RCODE_SET(reply, LDNS_RCODE_NOERROR); in replyline()
203 LDNS_RCODE_SET(reply, LDNS_RCODE_FORMERR); in replyline()
205 LDNS_RCODE_SET(reply, LDNS_RCODE_SERVFAIL); in replyline()
207 LDNS_RCODE_SET(reply, LDNS_RCODE_NXDOMAIN); in replyline()
[all …]
/openbsd-src/sys/nfs/
H A Dkrpc_subr.c208 struct rpc_reply *reply; in krpc_call() local
391 reply = mtod(m, struct rpc_reply *); in krpc_call()
394 if (reply->rp_direction != txdr_unsigned(RPC_REPLY)) in krpc_call()
397 if (reply->rp_xid != txdr_unsigned(xid)) in krpc_call()
401 if (reply->rp_astatus != 0) { in krpc_call()
402 error = fxdr_unsigned(u_int32_t, reply->rp_errno); in krpc_call()
408 if (reply->rp_status != 0) { in krpc_call()
409 error = fxdr_unsigned(u_int32_t, reply->rp_status); in krpc_call()
428 len = sizeof(*reply); in krpc_call()
441 reply = mtod(m, struct rpc_reply *); in krpc_call()
[all …]

123456789