Home
last modified time | relevance | path

Searched refs:rcode (Results 1 – 25 of 105) sorted by relevance

12345

/openbsd-src/usr.sbin/npppd/npppd/
H A Dccp.c114 int type, len, rcode, lrej, lnak; in ccp_reqci() local
124 rcode = CONFACK; in ccp_reqci()
130 return rcode; in ccp_reqci()
134 return rcode; in ccp_reqci()
166 rcode = CONFNAK; in ccp_reqci()
178 rcode = CONFREJ; in ccp_reqci()
183 switch (rcode) { in ccp_reqci()
197 return rcode; in ccp_reqci()
H A Dipcp.c196 int type, len, rcode, lrej, lnak; in ipcp_reqci() local
214 rcode = -1; in ipcp_reqci()
217 rcode = CONFREJ; in ipcp_reqci()
311 rcode = CONFNAK; in ipcp_reqci()
325 rcode = CONFREJ; in ipcp_reqci()
329 if (rcode == -1) in ipcp_reqci()
330 rcode = CONFACK; in ipcp_reqci()
333 switch (rcode) { in ipcp_reqci()
375 return rcode; in ipcp_reqci()
/openbsd-src/usr.bin/dig/
H A Dhost.c113 rcode_totext(dns_rcode_t rcode) in rcode_totext() argument
121 if (rcode >= (sizeof(rcodetext)/sizeof(rcodetext[0]))) { in rcode_totext()
122 snprintf(buf, sizeof(buf), "?%u", rcode); in rcode_totext()
125 totext.consttext = rcodetext[rcode]; in rcode_totext()
392 if (msg->rcode != 0) { in printmessage()
399 (msg->rcode != dns_rcode_nxdomain) ? namestr : in printmessage()
400 query->lookup->textname, msg->rcode, in printmessage()
401 rcode_totext(msg->rcode)); in printmessage()
404 (msg->rcode != dns_rcode_nxdomain) ? namestr : in printmessage()
405 query->lookup->textname, msg->rcode, in printmessage()
[all …]
/openbsd-src/sbin/unwind/libunbound/libunbound/
H A Dworker.h92 void libworker_fg_done_cb(void* arg, int rcode, sldns_buffer* buf,
96 void libworker_bg_done_cb(void* arg, int rcode, sldns_buffer* buf,
100 void libworker_event_done_cb(void* arg, int rcode, struct sldns_buffer* buf,
H A Dlibworker.c516 res->rcode = LDNS_RCODE_SERVFAIL; in libworker_enter_result()
525 /* rcode, havedata, nxdomain, secure, bogus */ in libworker_enter_result()
526 res->rcode = (int)FLAGS_GET_RCODE(rep->flags); in libworker_enter_result()
529 if(res->rcode == LDNS_RCODE_NXDOMAIN) in libworker_enter_result()
540 libworker_fillup_fg(struct ctx_query* q, int rcode, sldns_buffer* buf, in libworker_fillup_fg()
546 if(rcode != 0) { in libworker_fillup_fg()
547 q->res->rcode = rcode; in libworker_fillup_fg()
552 q->res->rcode = LDNS_RCODE_SERVFAIL; in libworker_fillup_fg()
557 return; /* the error is in the rcode */ in libworker_fillup_fg()
539 libworker_fillup_fg(struct ctx_query * q,int rcode,sldns_buffer * buf,enum sec_status s,char * why_bogus,int was_ratelimited) libworker_fillup_fg() argument
565 libworker_fg_done_cb(void * arg,int rcode,sldns_buffer * buf,enum sec_status s,char * why_bogus,int was_ratelimited) libworker_fg_done_cb() argument
657 libworker_event_done_cb(void * arg,int rcode,sldns_buffer * buf,enum sec_status s,char * why_bogus,int was_ratelimited) libworker_event_done_cb() argument
782 libworker_bg_done_cb(void * arg,int rcode,sldns_buffer * buf,enum sec_status s,char * why_bogus,int was_ratelimited) libworker_bg_done_cb() argument
[all...]
/openbsd-src/usr.sbin/unbound/libunbound/
H A Dworker.h92 void libworker_fg_done_cb(void* arg, int rcode, sldns_buffer* buf,
96 void libworker_bg_done_cb(void* arg, int rcode, sldns_buffer* buf,
100 void libworker_event_done_cb(void* arg, int rcode, struct sldns_buffer* buf,
H A Dlibworker.c516 res->rcode = LDNS_RCODE_SERVFAIL; in libworker_enter_result()
525 /* rcode, havedata, nxdomain, secure, bogus */ in libworker_enter_result()
526 res->rcode = (int)FLAGS_GET_RCODE(rep->flags); in libworker_enter_result()
529 if(res->rcode == LDNS_RCODE_NXDOMAIN) in libworker_enter_result()
540 libworker_fillup_fg(struct ctx_query* q, int rcode, sldns_buffer* buf, in libworker_fillup_fg()
546 if(rcode != 0) { in libworker_fillup_fg()
547 q->res->rcode = rcode; in libworker_fillup_fg()
552 q->res->rcode = LDNS_RCODE_SERVFAIL; in libworker_fillup_fg()
557 return; /* the error is in the rcode */ in libworker_fillup_fg()
539 libworker_fillup_fg(struct ctx_query * q,int rcode,sldns_buffer * buf,enum sec_status s,char * why_bogus,int was_ratelimited) libworker_fillup_fg() argument
565 libworker_fg_done_cb(void * arg,int rcode,sldns_buffer * buf,enum sec_status s,char * why_bogus,int was_ratelimited) libworker_fg_done_cb() argument
657 libworker_event_done_cb(void * arg,int rcode,sldns_buffer * buf,enum sec_status s,char * why_bogus,int was_ratelimited) libworker_event_done_cb() argument
782 libworker_bg_done_cb(void * arg,int rcode,sldns_buffer * buf,enum sec_status s,char * why_bogus,int was_ratelimited) libworker_bg_done_cb() argument
[all...]
/openbsd-src/usr.sbin/tcpdump/
H A Dprint-vqp.c64 u_char rcode; member
226 TCHECK(p->rcode); in vqp_print()
228 vqp_print_rcode(p->rcode); in vqp_print()
/openbsd-src/usr.sbin/unbound/testcode/
H A Dpetal.c388 const char* rcode = "200 OK"; in provide_file_10() local
391 rcode = "404 File not found"; in provide_file_10()
392 snprintf(hdr, sizeof(hdr), "HTTP/1.1 %s\r\n\r\n", rcode); in provide_file_10()
410 snprintf(at, avail, "HTTP/1.1 %s\r\n", rcode); in provide_file_10()
461 const char* rcode = "200 OK"; in provide_file_chunked() local
463 rcode = "404 File not found"; in provide_file_chunked()
467 snprintf(at, avail, "HTTP/1.1 %s\r\n", rcode); in provide_file_chunked()
/openbsd-src/usr.sbin/unbound/smallapp/
H A Dunbound-host.c221 if(result->rcode != 0 && result->rcode != 3) return "(error)"; in secure_str()
297 pretty_rcode(rcodestr, 16, result->rcode); in pretty_output()
299 if(!result->havedata && result->rcode) { in pretty_output()
301 q, result->rcode, rcodestr); in pretty_output()
H A Dworker_cb.c160 void libworker_fg_done_cb(void* ATTR_UNUSED(arg), int ATTR_UNUSED(rcode), in libworker_fg_done_cb() argument
167 void libworker_bg_done_cb(void* ATTR_UNUSED(arg), int ATTR_UNUSED(rcode), in libworker_bg_done_cb() argument
174 void libworker_event_done_cb(void* ATTR_UNUSED(arg), int ATTR_UNUSED(rcode), in libworker_event_done_cb() argument
/openbsd-src/usr.sbin/npppd/l2tp/
H A Dl2tp_subr.c237 l2tp_stopccn_rcode_string(int rcode) in l2tp_stopccn_rcode_string() argument
242 if (rcode == l2tp_stopccn_rcode_names[i].label) in l2tp_stopccn_rcode_string()
249 l2tp_cdn_rcode_string(int rcode) in l2tp_cdn_rcode_string() argument
254 if (rcode == l2tp_cdn_rcode_names[i].label) in l2tp_cdn_rcode_string()
/openbsd-src/usr.sbin/unbound/util/data/
H A Dmsgreply.h626 struct module_qstate* qstate, struct reply_info* rep, int rcode,
647 struct reply_info* rep, int rcode, struct edns_data* edns,
668 struct reply_info* rep, int rcode, struct edns_data* edns,
690 struct reply_info* rep, int rcode, struct edns_data* edns,
H A Dmsgreply.c940 uint16_t rcode = FLAGS_GET_RCODE(sldns_buffer_read_u16_at(rmsg, 2)); in log_reply_info() local
945 sldns_wire2str_rcode_buf((int)rcode, rcode_buf, sizeof(rcode_buf)); in log_reply_info()
980 if(rcode == LDNS_RCODE_FORMERR) in log_reply_info()
1173 struct reply_info* rep, int rcode, struct edns_data* edns, in inplace_cb_reply_call_generic() argument
1188 rcode, edns, &opt_list_out, repinfo, region, start_time, cb->id, cb->cb_arg); in inplace_cb_reply_call_generic()
1195 struct module_qstate* qstate, struct reply_info* rep, int rcode, in inplace_cb_reply_call() argument
1201 qstate, rep, rcode, edns, repinfo, region, start_time); in inplace_cb_reply_call()
1206 struct reply_info* rep, int rcode, struct edns_data* edns, in inplace_cb_reply_cache_call() argument
1212 qinfo, qstate, rep, rcode, edns, repinfo, region, start_time); in inplace_cb_reply_cache_call()
1217 struct reply_info* rep, int rcode, struct edns_data* edns, in inplace_cb_reply_local_call() argument
[all …]
/openbsd-src/sbin/unwind/libunbound/util/data/
H A Dmsgreply.h626 struct module_qstate* qstate, struct reply_info* rep, int rcode,
647 struct reply_info* rep, int rcode, struct edns_data* edns,
668 struct reply_info* rep, int rcode, struct edns_data* edns,
690 struct reply_info* rep, int rcode, struct edns_data* edns,
/openbsd-src/sbin/unwind/libunbound/services/
H A Dmesh.c1208 * @param rcode: if not 0, error code. in mesh_do_callback()
1209 * @param rep: reply to send (or NULL if rcode is set). in mesh_do_callback()
1215 mesh_do_callback(struct mesh_state* m, int rcode, struct reply_info* rep, in mesh_do_callback()
1226 if(!rep && rcode == LDNS_RCODE_NOERROR) in mesh_do_callback()
1227 rcode = LDNS_RCODE_SERVFAIL; in mesh_do_callback()
1228 if(!rcode && rep && (rep->security == sec_status_bogus || in mesh_do_callback()
1231 rcode = LDNS_RCODE_SERVFAIL; in mesh_do_callback()
1234 if(rcode) { in mesh_do_callback()
1235 if(rcode == LDNS_RCODE_SERVFAIL) { in mesh_do_callback()
1237 rep, rcode, in mesh_do_callback()
1203 mesh_do_callback(struct mesh_state * m,int rcode,struct reply_info * rep,struct mesh_cb * r,struct timeval * start_time) mesh_do_callback() argument
1321 mesh_send_reply(struct mesh_state * m,int rcode,struct reply_info * rep,struct mesh_reply * r,struct sldns_buffer * r_buffer,struct mesh_reply * prev,struct sldns_buffer * prev_buffer) mesh_send_reply() argument
[all...]
/openbsd-src/usr.sbin/unbound/services/
H A Dmesh.c1208 * @param rcode: if not 0, error code. in mesh_do_callback()
1209 * @param rep: reply to send (or NULL if rcode is set). in mesh_do_callback()
1215 mesh_do_callback(struct mesh_state* m, int rcode, struct reply_info* rep, in mesh_do_callback()
1226 if(!rep && rcode == LDNS_RCODE_NOERROR) in mesh_do_callback()
1227 rcode = LDNS_RCODE_SERVFAIL; in mesh_do_callback()
1228 if(!rcode && rep && (rep->security == sec_status_bogus || in mesh_do_callback()
1231 rcode = LDNS_RCODE_SERVFAIL; in mesh_do_callback()
1234 if(rcode) { in mesh_do_callback()
1235 if(rcode == LDNS_RCODE_SERVFAIL) { in mesh_do_callback()
1237 rep, rcode, in mesh_do_callback()
1203 mesh_do_callback(struct mesh_state * m,int rcode,struct reply_info * rep,struct mesh_cb * r,struct timeval * start_time) mesh_do_callback() argument
1321 mesh_send_reply(struct mesh_state * m,int rcode,struct reply_info * rep,struct mesh_reply * r,struct sldns_buffer * r_buffer,struct mesh_reply * prev,struct sldns_buffer * prev_buffer) mesh_send_reply() argument
[all...]
/openbsd-src/usr.sbin/unbound/ipset/
H A Dipset.c40 * @param rcode: error code (DNS errcode). in error_response()
44 static int error_response(struct module_qstate* qstate, int id, int rcode) { in open_mnl_socket()
46 sldns_lookup_by_id(sldns_rcodes, rcode)? in open_mnl_socket()
47 sldns_lookup_by_id(sldns_rcodes, rcode)->name:"??"); in open_mnl_socket()
48 qstate->return_rcode = rcode; in open_mnl_socket()
34 error_response(struct module_qstate * qstate,int id,int rcode) error_response() argument
/openbsd-src/usr.sbin/unbound/validator/
H A Dvalidator.c74 struct val_qstate* vq, int id, int rcode, struct dns_msg* msg,
344 * @param ret_rc: rcode for this message (if noerror - examine ret_msg). in needs_validation()
345 * @param ret_msg: return msg, can be NULL; look at rcode instead. in needs_validation()
353 int rcode; in needs_validation()
376 rcode = ret_rc; in needs_validation()
377 else rcode = (int)FLAGS_GET_RCODE(ret_msg->rep->flags); in needs_validation()
379 if(rcode != LDNS_RCODE_NOERROR && rcode != LDNS_RCODE_NXDOMAIN) { in needs_validation()
383 (void)sldns_wire2str_rcode_buf(rcode, rc, sizeof(rc)); in needs_validation()
384 verbose(VERB_ALGO, "cannot validate non-answer, rcode in needs_validation()
346 int rcode; needs_validation() local
1195 validate_nameerror_response(struct module_env * env,struct val_env * ve,struct query_info * qchase,struct reply_info * chase_reply,struct key_entry_key * kkey,int * rcode,struct module_qstate * qstate,struct val_qstate * vq,int * nsec3_calculations,int * suspend) validate_nameerror_response() argument
2129 int rcode, suspend, nsec3_calculations = 0; processValidate() local
2764 ds_response_to_ke(struct module_qstate * qstate,struct val_qstate * vq,int id,int rcode,struct dns_msg * msg,struct query_info * qinfo,struct key_entry_key ** ke) ds_response_to_ke() argument
3008 process_ds_response(struct module_qstate * qstate,struct val_qstate * vq,int id,int rcode,struct dns_msg * msg,struct query_info * qinfo,struct sock_list * origin,int * suspend) process_ds_response() argument
3096 process_dnskey_response(struct module_qstate * qstate,struct val_qstate * vq,int id,int rcode,struct dns_msg * msg,struct query_info * qinfo,struct sock_list * origin) process_dnskey_response() argument
3198 process_prime_response(struct module_qstate * qstate,struct val_qstate * vq,int id,int rcode,struct dns_msg * msg,struct sock_list * origin) process_prime_response() argument
[all...]
/openbsd-src/sbin/unwind/libunbound/validator/
H A Dvalidator.c74 struct val_qstate* vq, int id, int rcode, struct dns_msg* msg,
344 * @param ret_rc: rcode for this message (if noerror - examine ret_msg). in needs_validation()
345 * @param ret_msg: return msg, can be NULL; look at rcode instead. in needs_validation()
353 int rcode; in needs_validation()
376 rcode = ret_rc; in needs_validation()
377 else rcode = (int)FLAGS_GET_RCODE(ret_msg->rep->flags); in needs_validation()
379 if(rcode != LDNS_RCODE_NOERROR && rcode != LDNS_RCODE_NXDOMAIN) { in needs_validation()
383 (void)sldns_wire2str_rcode_buf(rcode, rc, sizeof(rc)); in needs_validation()
384 verbose(VERB_ALGO, "cannot validate non-answer, rcode in needs_validation()
346 int rcode; needs_validation() local
1195 validate_nameerror_response(struct module_env * env,struct val_env * ve,struct query_info * qchase,struct reply_info * chase_reply,struct key_entry_key * kkey,int * rcode,struct module_qstate * qstate,struct val_qstate * vq,int * nsec3_calculations,int * suspend) validate_nameerror_response() argument
2129 int rcode, suspend, nsec3_calculations = 0; processValidate() local
2764 ds_response_to_ke(struct module_qstate * qstate,struct val_qstate * vq,int id,int rcode,struct dns_msg * msg,struct query_info * qinfo,struct key_entry_key ** ke) ds_response_to_ke() argument
3008 process_ds_response(struct module_qstate * qstate,struct val_qstate * vq,int id,int rcode,struct dns_msg * msg,struct query_info * qinfo,struct sock_list * origin,int * suspend) process_ds_response() argument
3096 process_dnskey_response(struct module_qstate * qstate,struct val_qstate * vq,int id,int rcode,struct dns_msg * msg,struct query_info * qinfo,struct sock_list * origin) process_dnskey_response() argument
3198 process_prime_response(struct module_qstate * qstate,struct val_qstate * vq,int id,int rcode,struct dns_msg * msg,struct sock_list * origin) process_prime_response() argument
[all...]
/openbsd-src/sbin/unwind/
H A Dfrontend.c142 void error_answer(struct pending_query *, int rcode);
747 int rcode, matched; in handle_query()
774 rcode = check_query(pq->qbuf); in handle_query()
775 switch (rcode) { in handle_query()
781 error_answer(pq, rcode); in handle_query()
785 rcode = parse_edns_from_query_pkt(pq->qbuf, &pq->edns, NULL, NULL, in handle_query()
787 if (rcode != LDNS_RCODE_NOERROR) { in handle_query()
788 error_answer(pq, rcode); in handle_query()
1020 int rcode; in resend_dns64_query()
1078 rcode in resend_dns64_query()
736 int rcode; handle_query() local
1002 int rcode; resend_dns64_query() local
1139 error_answer(struct pending_query * pq,int rcode) error_answer() argument
[all...]
/openbsd-src/usr.sbin/unbound/dynlibmod/examples/
H A Dhelloworld.c33 struct module_qstate* qstate, struct reply_info* rep, int rcode,
119 struct module_qstate* qstate, struct reply_info* rep, int rcode, in reply_callback() argument
/openbsd-src/include/arpa/
H A Dnameser.h296 unsigned rcode :4; /* response code */ member
306 unsigned rcode :4; /* response code */ member
/openbsd-src/usr.sbin/unbound/sldns/
H A Dpkthdr.h63 #define LDNS_RCODE_SET(wirebuf, rcode) \ argument
64 (*(wirebuf+3) = ((*(wirebuf+3)) & ~LDNS_RCODE_MASK) | (rcode))
/openbsd-src/sbin/unwind/libunbound/sldns/
H A Dpkthdr.h63 #define LDNS_RCODE_SET(wirebuf, rcode) \ argument
64 (*(wirebuf+3) = ((*(wirebuf+3)) & ~LDNS_RCODE_MASK) | (rcode))

12345