| /freebsd/contrib/unbound/daemon/ |
| H A D | worker.c | 593 uint16_t id, uint16_t flags, struct comm_reply* repinfo, in answer_norec_from_cache() argument 638 msg->rep, LDNS_RCODE_SERVFAIL, edns, repinfo, worker->scratchpad, in answer_norec_from_cache() 648 error_encode(repinfo->c->buffer, LDNS_RCODE_SERVFAIL, in answer_norec_from_cache() 678 (int)(flags&LDNS_RCODE_MASK), edns, repinfo, worker->scratchpad, in answer_norec_from_cache() 693 repinfo->c->buffer, 0, 1, worker->scratchpad, in answer_norec_from_cache() 696 LDNS_RCODE_SERVFAIL, edns, repinfo, worker->scratchpad, in answer_norec_from_cache() 699 error_encode(repinfo->c->buffer, LDNS_RCODE_SERVFAIL, in answer_norec_from_cache() 704 server_stats_insrcode(&worker->stats, repinfo->c->buffer); in answer_norec_from_cache() 778 struct comm_reply* repinfo, struct edns_data* edns, int* rpz_passthru) in answer_from_cache() argument 843 LDNS_RCODE_SERVFAIL, edns, repinfo, worker->scratchpad, in answer_from_cache() [all …]
|
| H A D | stats.h | 120 struct comm_reply* repinfo);
|
| H A D | stats.c | 556 struct comm_reply* repinfo) in server_stats_insquery() argument 583 if(repinfo && addr_is_ip6(&repinfo->remote_addr, repinfo->remote_addrlen)) in server_stats_insquery()
|
| /freebsd/contrib/unbound/util/ |
| H A D | netevent.c | 2808 doq_lookup_repinfo(struct doq_table* table, struct comm_reply* repinfo) argument 2813 doq_conn_key_from_repinfo(&key, repinfo); 2830 doq_lookup_conn_stream(struct comm_reply* repinfo, struct comm_point* c, argument 2837 *conn = doq_lookup_repinfo(c->doq_socket->table, repinfo); 2850 *stream = doq_stream_find(*conn, repinfo->doq_streamid); 2873 doq_socket_send_reply(struct comm_reply* repinfo) argument 2877 log_assert(repinfo->c->type == comm_doq); 2878 if(!doq_lookup_conn_stream(repinfo, repinfo->c, &conn, &stream)) { 2885 if(!doq_stream_send_reply(conn, stream, repinfo->c->buffer)) 2887 if(!repinfo->c->doq_socket->current_conn) { [all …]
|
| H A D | netevent.h | 232 struct comm_reply repinfo; member 729 void comm_point_send_reply(struct comm_reply* repinfo); 735 void comm_point_drop_reply(struct comm_reply* repinfo);
|
| /freebsd/contrib/unbound/dnscrypt/ |
| H A D | dnscrypt.c | 906 struct comm_reply* repinfo) in dnsc_handle_curved_request() argument 908 struct comm_point* c = repinfo->c; in dnsc_handle_curved_request() 910 repinfo->is_dnscrypted = 0; in dnsc_handle_curved_request() 917 if ((repinfo->dnsc_cert = dnsc_find_cert(dnscenv, c->buffer)) != NULL) { in dnsc_handle_curved_request() 919 repinfo->dnsc_cert, in dnsc_handle_curved_request() 920 repinfo->client_nonce, in dnsc_handle_curved_request() 921 repinfo->nmkey, in dnsc_handle_curved_request() 924 comm_point_drop_reply(repinfo); in dnsc_handle_curved_request() 927 repinfo->is_dnscrypted = 1; in dnsc_handle_curved_request() 934 dnsc_handle_uncurved_request(struct comm_reply *repinfo, in dnsc_handle_uncurved_request() argument [all …]
|
| H A D | dnscrypt.h | 122 struct comm_reply* repinfo); 131 int dnsc_handle_uncurved_request(struct comm_reply *repinfo,
|
| /freebsd/contrib/unbound/services/ |
| H A D | localzone.c | 1350 struct edns_data* edns, struct comm_reply* repinfo, sldns_buffer* buf, in local_encode() argument 1372 repinfo, temp, env->now_tv) || !reply_info_answer_encode(qinfo, &rep, in local_encode() 1385 struct edns_data* edns, struct comm_reply* repinfo, sldns_buffer* buf, in local_error_encode() argument 1395 rcode, edns, repinfo, temp, env->now_tv)) in local_error_encode() 1524 struct comm_reply* repinfo, sldns_buffer* buf, in local_data_answer() argument 1554 return local_encode(qinfo, env, edns, repinfo, buf, temp, in local_data_answer() 1604 local_error_encode(qinfo, env, edns, repinfo, in local_data_answer() 1654 return local_encode(qinfo, env, edns, repinfo, buf, temp, &r, 1, in local_data_answer() 1657 return local_encode(qinfo, env, edns, repinfo, buf, temp, lr->rrset, 1, in local_data_answer() 1693 local_zone_is_udp_query(struct comm_reply* repinfo) { in local_zone_is_udp_query() argument [all …]
|
| H A D | rpz.c | 1648 struct comm_reply* repinfo, struct module_qstate* ms, char* log_name) in log_rpz_apply() argument 1662 if(repinfo) { in log_rpz_apply() 1663 addr_to_str(&repinfo->client_addr, repinfo->client_addrlen, ip, sizeof(ip)); in log_rpz_apply() 1664 port = ntohs(((struct sockaddr_in*)&repinfo->client_addr)->sin_port); in log_rpz_apply() 1715 struct comm_reply* repinfo, uint8_t* taglist, size_t taglen, in rpz_resolve_client_action_and_zone() argument 1742 &repinfo->client_addr, repinfo->client_addrlen, in rpz_resolve_client_action_and_zone() 1750 qinfo, repinfo, NULL, r->log_name); in rpz_resolve_client_action_and_zone() 1778 rpz_is_udp_query(struct comm_reply* repinfo) { in rpz_is_udp_query() argument 1779 return repinfo != NULL in rpz_is_udp_query() 1780 ? (repinfo->c != NULL in rpz_is_udp_query() [all …]
|
| H A D | listen_dnsport.c | 2324 comm_point_drop_reply(&req->cp->repinfo); in tcp_req_info_handle_writedone() 2354 if( (*c->callback)(c, c->cb_arg, NETEVENT_NOERROR, &c->repinfo) ) { in tcp_req_info_handle_readdone() 2488 comm_point_drop_reply(&req->cp->repinfo); in tcp_req_info_send_reply() 2814 NETEVENT_NOERROR, &h2_session->c->repinfo)) { in http2_query_read_done() 3753 doq_repinfo_store_localaddr(struct comm_reply* repinfo, in doq_repinfo_store_localaddr() argument 3758 memset(&repinfo->pktinfo, 0, sizeof(repinfo->pktinfo)); in doq_repinfo_store_localaddr() 3762 memmove(&repinfo->pktinfo.v6info.ipi6_addr, in doq_repinfo_store_localaddr() 3764 repinfo->doq_srcport = sa6->sin6_port; in doq_repinfo_store_localaddr() 3766 repinfo->srctype = 6; in doq_repinfo_store_localaddr() 3770 memmove(&repinfo->pktinfo.v4info.ipi_addr, in doq_repinfo_store_localaddr() [all …]
|
| H A D | authzone.h | 586 struct comm_reply* repinfo, struct sldns_buffer* buf, 711 struct comm_reply* repinfo); 714 struct comm_reply* repinfo); 717 struct comm_reply* repinfo);
|
| H A D | localzone.h | 340 struct regional* temp, struct comm_reply* repinfo, uint8_t* taglist, 361 struct comm_reply* repinfo, sldns_buffer* buf, struct regional* temp, 624 struct comm_reply* repinfo, sldns_buffer* buf,
|
| H A D | rpz.h | 173 * @param repinfo: reply info 182 struct regional* temp, struct comm_reply* repinfo,
|
| /freebsd/contrib/unbound/smallapp/ |
| H A D | worker_cb.c | 63 struct comm_reply* ATTR_UNUSED(repinfo)) in worker_handle_request() argument 79 struct comm_reply* ATTR_UNUSED(repinfo)) in remote_accept_callback() argument 87 struct comm_reply* ATTR_UNUSED(repinfo)) in remote_control_callback() argument 274 struct comm_reply* ATTR_UNUSED(repinfo)) in fast_reload_client_callback() argument
|
| /freebsd/contrib/unbound/contrib/ |
| H A D | drop-tld.diff | 6 addr_to_str(&repinfo->addr, repinfo->addrlen, ip, sizeof(ip)); 13 + comm_point_drop_reply(repinfo);
|
| H A D | redirect-bogus.patch | 9 - error_encode(repinfo->c->buffer, LDNS_RCODE_SERVFAIL, 14 + fixed_address_encode(repinfo->c->buffer, 19 + fixed_address_encode(repinfo->c->buffer, 23 + error_encode(repinfo->c->buffer, LDNS_RCODE_SERVFAIL,
|
| /freebsd/contrib/unbound/util/data/ |
| H A D | msgreply.h | 675 struct edns_data* edns, struct comm_reply* repinfo, struct regional* region, 696 struct comm_reply* repinfo, struct regional* region, 717 struct comm_reply* repinfo, struct regional* region, 739 struct comm_reply* repinfo, struct regional* region,
|
| H A D | msgparse.c | 955 struct comm_reply* repinfo, uint32_t now, struct regional* region, in parse_edns_options_from_query() argument 1053 if(!cfg || !cfg->do_answer_cookie || !repinfo || cookie_seen) in parse_edns_options_from_query() 1077 if(repinfo->client_addr.ss_family == AF_INET) { in parse_edns_options_from_query() 1079 &((struct sockaddr_in*)&repinfo->client_addr)->sin_addr, 4); in parse_edns_options_from_query() 1083 &((struct sockaddr_in6*)&repinfo->client_addr)->sin6_addr, 16); in parse_edns_options_from_query() 1286 struct comm_reply* repinfo, time_t now, struct regional* region, in parse_edns_from_query_pkt() argument 1333 c, repinfo, now, region, cookie_secrets); in parse_edns_from_query_pkt()
|
| H A D | msgreply.c | 1277 struct comm_reply* repinfo, struct regional* region, in inplace_cb_reply_call_generic() argument 1291 rcode, edns, &opt_list_out, repinfo, region, start_time, cb->id, cb->cb_arg); in inplace_cb_reply_call_generic() 1299 struct edns_data* edns, struct comm_reply* repinfo, struct regional* region, in inplace_cb_reply_call() argument 1304 qstate, rep, rcode, edns, repinfo, region, start_time); in inplace_cb_reply_call() 1310 struct comm_reply* repinfo, struct regional* region, in inplace_cb_reply_cache_call() argument 1315 qinfo, qstate, rep, rcode, edns, repinfo, region, start_time); in inplace_cb_reply_cache_call() 1321 struct comm_reply* repinfo, struct regional* region, in inplace_cb_reply_local_call() argument 1326 qinfo, qstate, rep, rcode, edns, repinfo, region, start_time); in inplace_cb_reply_local_call() 1332 struct comm_reply* repinfo, struct regional* region, in inplace_cb_reply_servfail_call() argument 1340 inplace_cb_reply_servfail, qinfo, qstate, rep, rcode, edns, repinfo, in inplace_cb_reply_servfail_call()
|
| H A D | msgparse.h | 359 struct comm_reply* repinfo, time_t now, struct regional* region,
|
| /freebsd/contrib/unbound/dynlibmod/examples/ |
| H A D | helloworld.c | 35 struct comm_reply* repinfo, struct regional* region, 121 struct comm_reply* repinfo, struct regional* region, in reply_callback() argument
|
| /freebsd/contrib/unbound/dynlibmod/ |
| H A D | dynlibmod.c | 216 struct comm_reply* repinfo, struct regional* region, in dynlib_inplace_cb_reply_generic() argument 219 …_func_type*) cb_pair->cb)(qinfo, qstate, rep, rcode, edns, opt_list_out, repinfo, region, start_ti… in dynlib_inplace_cb_reply_generic()
|
| H A D | dynlibmod.h | 73 struct comm_reply* repinfo, struct regional* region,
|
| /freebsd/contrib/unbound/libunbound/ |
| H A D | worker.h | 159 struct comm_reply* repinfo);
|
| H A D | libworker.c | 950 struct comm_reply* ATTR_UNUSED(repinfo)) in worker_handle_request() argument 966 struct comm_reply* ATTR_UNUSED(repinfo)) in remote_accept_callback() argument 974 struct comm_reply* ATTR_UNUSED(repinfo)) in remote_control_callback() argument 1087 struct comm_reply* ATTR_UNUSED(repinfo)) in fast_reload_client_callback() argument
|