Lines Matching refs:rcode
1300 * @param rcode: if not 0, error code.
1301 * @param rep: reply to send (or NULL if rcode is set).
1307 mesh_do_callback(struct mesh_state* m, int rcode, struct reply_info* rep,
1318 if(!rep && rcode == LDNS_RCODE_NOERROR)
1319 rcode = LDNS_RCODE_SERVFAIL;
1320 if(!rcode && rep && (rep->security == sec_status_bogus ||
1323 rcode = LDNS_RCODE_SERVFAIL;
1326 if(rcode) {
1327 if(rcode == LDNS_RCODE_SERVFAIL) {
1329 rep, rcode, &r->edns, NULL, m->s.region, start_time))
1332 if(!inplace_cb_reply_call(m->s.env, &m->s.qinfo, &m->s, rep, rcode,
1337 (*r->cb)(r->cb_arg, rcode, r->buf, sec_status_unchecked, NULL,
1417 * @param rcode: if not 0, error code.
1418 * @param rep: reply to send (or NULL if rcode is set).
1425 mesh_send_reply(struct mesh_state* m, int rcode, struct reply_info* rep,
1440 rcode = mesh_is_udp(r) && mesh_is_rpz_respip_tcponly_action(m)
1441 ? (rcode|BIT_TC) : rcode;
1448 rcode = LDNS_RCODE_SERVFAIL;
1455 if(!rep && rcode == LDNS_RCODE_NOERROR)
1456 rcode = LDNS_RCODE_SERVFAIL;
1470 * - there are registered callback functions for the given rcode, as these
1472 if(((rcode != LDNS_RCODE_SERVFAIL &&
1474 (rcode == LDNS_RCODE_SERVFAIL &&
1493 } else if(rcode) {
1496 if(rcode == LDNS_RCODE_SERVFAIL) {
1498 rep, rcode, &r->edns, &r->query_reply, m->s.region, &r->start_time))
1501 if(!inplace_cb_reply_call(m->s.env, &m->s.qinfo, &m->s, rep, rcode,
1512 error_encode(r_buffer, rcode, &m->s.qinfo, r->qid,