| /openbsd/src/regress/sys/net/pf_divert/ |
| D | Makefile | 57 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 …]
|
| D | README | 1 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/ |
| D | apm.c | 77 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/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/bin/ |
| D | instmodsh | 57 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/ |
| D | server.c | 158 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 …]
|
| D | client.c | 386 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/ |
| D | ftpcmd.y | 172 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 …]
|
| D | ftpd.c | 531 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/ |
| D | rde_dual.c | 232 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/ |
| D | u2f.c | 148 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 …]
|
| D | credman.c | 203 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 …]
|
| D | bio.c | 236 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/ |
| D | pass2.c | 87 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 …]
|
| D | setup.c | 122 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/ |
| D | pass2.c | 70 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 …]
|
| D | pass1.c | 141 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/ |
| D | apmd.c | 233 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/ |
| D | pfail57.ok | 1 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
|
| D | pfail8.ok | 2 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/ |
| D | rpc.c | 116 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/ |
| D | mux.c | 254 Channel *c, struct sshbuf *m, struct sshbuf *reply) in mux_master_process_hello() argument 297 reply_ok(struct sshbuf *reply, u_int rid) in reply_ok() argument 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() 308 reply_error(struct sshbuf *reply, u_int type, u_int rid, const char *msg) in reply_error() argument 312 if ((r = sshbuf_put_u32(reply, type)) != 0 || in reply_error() 313 (r = sshbuf_put_u32(reply, rid)) != 0 || in reply_error() 314 (r = sshbuf_put_cstring(reply, msg)) != 0) in reply_error() 320 Channel *c, struct sshbuf *m, struct sshbuf *reply) in mux_master_process_new_session() argument 397 reply_error(reply, MUX_S_FAILURE, rid, in mux_master_process_new_session() [all …]
|
| /openbsd/src/lib/libssl/test/ |
| D | testtsa | 98 ../../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/ |
| D | testpkts.c | 180 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/ |
| D | krpc_subr.c | 208 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 …]
|
| /openbsd/src/sys/dev/pci/drm/ |
| D | drm_ioc32.c | 257 struct drm_wait_vblank_reply32 reply; member 278 req32.reply.type = req.reply.type; in compat_drm_wait_vblank() 279 req32.reply.sequence = req.reply.sequence; in compat_drm_wait_vblank() 280 req32.reply.tval_sec = req.reply.tval_sec; in compat_drm_wait_vblank() 281 req32.reply.tval_usec = req.reply.tval_usec; in compat_drm_wait_vblank()
|