Searched refs:edns (Results 1 - 25 of 32) sorted by relevance

12

/freebsd-11-stable/contrib/unbound/util/data/
H A Dmsgencode.h63 * @param edns: EDNS data included in the answer, NULL for none.
72 struct edns_data* edns, int dnssec, int secure);
106 * @param edns: edns data or NULL.
109 uint16_t calc_edns_field_size(struct edns_data* edns);
115 * @param edns: if NULL or present=0, nothing is added to the packet.
117 void attach_edns_record(struct sldns_buffer* pkt, struct edns_data* edns);
127 * @param edns: if not NULL, this is the query edns info,
128 * and an edns repl
[all...]
H A Dmsgencode.c793 calc_edns_field_size(struct edns_data* edns) argument
797 if(!edns || !edns->edns_present)
799 for(opt = edns->opt_list; opt; opt = opt->next) {
807 attach_edns_record_max_msg_sz(sldns_buffer* pkt, struct edns_data* edns, argument
823 sldns_buffer_write_u16(pkt, edns->udp_size); /* class */
824 sldns_buffer_write_u8(pkt, edns->ext_rcode); /* ttl */
825 sldns_buffer_write_u8(pkt, edns->edns_version);
826 sldns_buffer_write_u16(pkt, edns->bits);
830 for(opt=edns
870 attach_edns_record(sldns_buffer* pkt, struct edns_data* edns) argument
878 reply_info_answer_encode(struct query_info* qinf, struct reply_info* rep, uint16_t id, uint16_t qflags, sldns_buffer* pkt, time_t timenow, int cached, struct regional* region, uint16_t udpsize, struct edns_data* edns, int dnssec, int secure) argument
950 error_encode(sldns_buffer* buf, int r, struct query_info* qinfo, uint16_t qid, uint16_t qflags, struct edns_data* edns) argument
[all...]
H A Dmsgparse.c944 struct edns_data* edns, struct regional* region)
955 if(!edns_opt_append(edns, region, opt_code, opt_len,
967 parse_extract_edns(struct msg_parse* msg, struct edns_data* edns, argument
990 memset(edns, 0, sizeof(*edns));
991 edns->udp_size = 512;
1017 edns->edns_present = 1;
1018 edns->ext_rcode = found->rr_last->ttl_data[0];
1019 edns->edns_version = found->rr_last->ttl_data[1];
1020 edns
943 parse_edns_options(uint8_t* rdata_ptr, size_t rdata_len, struct edns_data* edns, struct regional* region) argument
1063 parse_edns_from_pkt(sldns_buffer* pkt, struct edns_data* edns, struct regional* region) argument
[all...]
H A Dmsgreply.h267 * @param edns: where to store edns information, does not need to be inited.
274 struct regional* region, struct edns_data* edns);
507 * Append edns option to edns data structure
508 * @param edns: the edns data structure to append the edns option to.
509 * @param region: region to allocate the new edns option.
510 * @param code: the edns optio
[all...]
H A Dmsgparse.h240 /** type of this edns option */
242 /** length of this edns option (cannot exceed uint16 in encoding) */
244 /** data of this edns option; allocated in region, or NULL if len=0 */
279 * @param edns: the edns data is stored here. Does not have to be initialised.
280 * @param region: region to alloc results in (edns option contents)
284 int parse_extract_edns(struct msg_parse* msg, struct edns_data* edns,
288 * If EDNS data follows a query section, extract it and initialize edns struct.
291 * @param edns: the edns dat
[all...]
H A Dmsgreply.c465 struct regional* region, struct edns_data* edns)
483 if((ret = parse_extract_edns(msg, edns, region)) != 0)
949 int edns_opt_append(struct edns_data* edns, struct regional* region, argument
970 prevp = &edns->opt_list;
1040 struct reply_info* rep, int rcode, struct edns_data* edns,
1055 rcode, edns, &opt_list_out, repinfo, region, start_time, cb->id, cb->cb_arg);
1057 edns->opt_list = opt_list_out;
1063 struct edns_data* edns, struct comm_reply* repinfo, struct regional* region,
1068 qstate, rep, rcode, edns, repinfo, region, start_time);
1073 struct reply_info* rep, int rcode, struct edns_data* edns,
463 reply_info_parse(sldns_buffer* pkt, struct alloc_cache* alloc, struct query_info* qinf, struct reply_info** rep, struct regional* region, struct edns_data* edns) argument
1037 inplace_cb_reply_call_generic( struct inplace_cb* callback_list, enum inplace_cb_list_type type, struct query_info* qinfo, struct module_qstate* qstate, struct reply_info* rep, int rcode, struct edns_data* edns, struct comm_reply* repinfo, struct regional* region, struct timeval* start_time) argument
1061 inplace_cb_reply_call(struct module_env* env, struct query_info* qinfo, struct module_qstate* qstate, struct reply_info* rep, int rcode, struct edns_data* edns, struct comm_reply* repinfo, struct regional* region, struct timeval* start_time) argument
1071 inplace_cb_reply_cache_call(struct module_env* env, struct query_info* qinfo, struct module_qstate* qstate, struct reply_info* rep, int rcode, struct edns_data* edns, struct comm_reply* repinfo, struct regional* region, struct timeval* start_time) argument
1082 inplace_cb_reply_local_call(struct module_env* env, struct query_info* qinfo, struct module_qstate* qstate, struct reply_info* rep, int rcode, struct edns_data* edns, struct comm_reply* repinfo, struct regional* region, struct timeval* start_time) argument
1093 inplace_cb_reply_servfail_call(struct module_env* env, struct query_info* qinfo, struct module_qstate* qstate, struct reply_info* rep, int rcode, struct edns_data* edns, struct comm_reply* repinfo, struct regional* region, struct timeval* start_time) argument
[all...]
/freebsd-11-stable/contrib/unbound/daemon/
H A Dworker.c70 #include "util/edns.h"
472 struct edns_data* edns)
484 uint16_t udpsize = edns->udp_size;
511 edns->edns_version = EDNS_ADVERTISED_VERSION;
512 edns->udp_size = EDNS_ADVERTISED_SIZE;
513 edns->ext_rcode = 0;
514 edns->bits &= EDNS_DO;
516 msg->rep, LDNS_RCODE_SERVFAIL, edns, repinfo, worker->scratchpad,
520 &msg->qinfo, id, flags, edns);
542 edns_bak = *edns;
470 answer_norec_from_cache(struct worker* worker, struct query_info* qinfo, uint16_t id, uint16_t flags, struct comm_reply* repinfo, struct edns_data* edns) argument
631 answer_from_cache(struct worker* worker, struct query_info* qinfo, struct respip_client_info* cinfo, int* need_drop, int* is_expired_answer, int* is_secure_answer, struct ub_packed_rrset_key** alias_rrset, struct reply_info** partial_repp, struct reply_info* rep, uint16_t id, uint16_t flags, struct comm_reply* repinfo, struct edns_data* edns) argument
817 chaos_replystr(sldns_buffer* pkt, char** str, int num, struct edns_data* edns, struct worker* worker, struct comm_reply* repinfo) argument
861 chaos_replyonestr(sldns_buffer* pkt, const char* str, struct edns_data* edns, struct worker* worker, struct comm_reply* repinfo) argument
875 chaos_trustanchor(sldns_buffer* pkt, struct edns_data* edns, struct worker* w, struct comm_reply* repinfo) argument
935 answer_chaos(struct worker* w, struct query_info* qinfo, struct edns_data* edns, struct comm_reply* repinfo, sldns_buffer* pkt) argument
996 answer_notify(struct worker* w, struct query_info* qinfo, struct edns_data* edns, sldns_buffer* pkt, struct comm_reply* repinfo) argument
1102 struct edns_data edns; local
[all...]
H A Dstats.h115 * @param edns: edns record
119 uint16_t qtype, uint16_t qclass, struct edns_data* edns,
H A Dstats.c67 #include "edns-subnet/subnetmod.h"
474 uint16_t qtype, uint16_t qclass, struct edns_data* edns,
515 if(edns->edns_present) {
517 if( (edns->bits & EDNS_DO) )
473 server_stats_insquery(struct ub_server_stats* stats, struct comm_point* c, uint16_t qtype, uint16_t qclass, struct edns_data* edns, struct comm_reply* repinfo) argument
/freebsd-11-stable/contrib/unbound/services/
H A Dmesh.c59 #include "util/edns.h"
455 struct edns_data* edns, struct comm_reply* rep, uint16_t qid)
458 int unique = unique_mesh_state(edns->opt_list, mesh->env);
501 LDNS_RCODE_SERVFAIL, edns, rep, mesh->env->scratch, mesh->env->now_tv))
502 edns->opt_list = NULL;
504 qinfo, qid, qflags, edns);
510 /* copy the edns options we got from the front */
511 if(edns->opt_list) {
512 s->s.edns_opts_front_in = edns_opt_copy_region(edns->opt_list,
517 NULL, LDNS_RCODE_SERVFAIL, edns, re
453 mesh_new_client(struct mesh_area* mesh, struct query_info* qinfo, struct respip_client_info* cinfo, uint16_t qflags, struct edns_data* edns, struct comm_reply* rep, uint16_t qid) argument
601 mesh_new_callback(struct mesh_area* mesh, struct query_info* qinfo, uint16_t qflags, struct edns_data* edns, sldns_buffer* buf, uint16_t qid, mesh_cb_func_type cb, void* cb_arg) argument
1472 mesh_state_add_cb(struct mesh_state* s, struct edns_data* edns, sldns_buffer* buf, mesh_cb_func_type cb, void* cb_arg, uint16_t qid, uint16_t qflags) argument
1499 mesh_state_add_reply(struct mesh_state* s, struct edns_data* edns, struct comm_reply* rep, uint16_t qid, uint16_t qflags, const struct query_info* qinfo) argument
[all...]
H A Dmesh.h221 /** edns data from query */
222 struct edns_data edns; member in struct:mesh_reply
251 /** edns data from query */
252 struct edns_data edns; member in struct:mesh_cb
296 * @param edns: edns data from client query.
302 struct edns_data* edns, struct comm_reply* rep, uint16_t qid);
312 * @param edns: edns data from client query.
320 uint16_t qflags, struct edns_data* edns, struc
[all...]
H A Dlocalzone.c1241 struct edns_data* edns, struct comm_reply* repinfo, sldns_buffer* buf,
1256 udpsize = edns->udp_size;
1257 edns->edns_version = EDNS_ADVERTISED_VERSION;
1258 edns->udp_size = EDNS_ADVERTISED_SIZE;
1259 edns->ext_rcode = 0;
1260 edns->bits &= EDNS_DO;
1261 if(!inplace_cb_reply_local_call(env, qinfo, NULL, &rep, rcode, edns,
1264 buf, 0, 0, temp, udpsize, edns, (int)(edns->bits&EDNS_DO), 0)) {
1267 sldns_buffer_read_u16_at(buf, 2), edns);
1240 local_encode(struct query_info* qinfo, struct module_env* env, struct edns_data* edns, struct comm_reply* repinfo, sldns_buffer* buf, struct regional* temp, struct ub_packed_rrset_key* rrset, int ansec, int rcode) argument
1274 local_error_encode(struct query_info* qinfo, struct module_env* env, struct edns_data* edns, struct comm_reply* repinfo, sldns_buffer* buf, struct regional* temp, int rcode, int r) argument
1403 local_data_answer(struct local_zone* z, struct module_env* env, struct query_info* qinfo, struct edns_data* edns, struct comm_reply* repinfo, sldns_buffer* buf, struct regional* temp, int labs, struct local_data** ldp, enum localzone_type lz_type, int tag, struct config_strlist** tag_datas, size_t tag_datas_size, char** tagname, int num_tags) argument
1562 local_zones_zone_answer(struct local_zone* z, struct module_env* env, struct query_info* qinfo, struct edns_data* edns, struct comm_reply* repinfo, sldns_buffer* buf, struct regional* temp, struct local_data* ld, enum localzone_type lz_type) argument
1736 local_zones_answer(struct local_zones* zones, struct module_env* env, struct query_info* qinfo, struct edns_data* edns, sldns_buffer* buf, struct regional* temp, struct comm_reply* repinfo, uint8_t* taglist, size_t taglen, uint8_t* tagactions, size_t tagactionssize, struct config_strlist** tag_datas, size_t tag_datas_size, char** tagname, int num_tags, struct view* view) argument
[all...]
H A Drpz.h145 * @param edns: edns data
155 struct query_info* qinfo, struct edns_data* edns, sldns_buffer* buf,
H A Dlocalzone.h295 * @param edns: edns info (parsed).
321 struct query_info* qinfo, struct edns_data* edns, struct sldns_buffer* buf,
332 * @param edns: edns from query.
342 struct query_info* qinfo, struct edns_data* edns,
587 * @param edns: edns data, for message encoding
603 struct query_info* qinfo, struct edns_data* edns,
H A Dauthzone.c3281 struct edns_data* edns, struct comm_reply* repinfo, sldns_buffer* buf,
3285 udpsize = edns->udp_size;
3286 edns->edns_version = EDNS_ADVERTISED_VERSION;
3287 edns->udp_size = EDNS_ADVERTISED_SIZE;
3288 edns->ext_rcode = 0;
3289 edns->bits &= EDNS_DO;
3292 (int)FLAGS_GET_RCODE(msg->rep->flags), edns, repinfo, temp, env->now_tv)
3296 buf, 0, 0, temp, udpsize, edns,
3297 (int)(edns->bits&EDNS_DO), 0)) {
3300 sldns_buffer_read_u16_at(buf, 2), edns);
3280 auth_answer_encode(struct query_info* qinfo, struct module_env* env, struct edns_data* edns, struct comm_reply* repinfo, sldns_buffer* buf, struct regional* temp, struct dns_msg* msg) argument
3306 auth_error_encode(struct query_info* qinfo, struct module_env* env, struct edns_data* edns, struct comm_reply* repinfo, sldns_buffer* buf, struct regional* temp, int rcode) argument
3323 auth_zones_answer(struct auth_zones* az, struct module_env* env, struct query_info* qinfo, struct edns_data* edns, struct comm_reply* repinfo, struct sldns_buffer* buf, struct regional* temp) argument
5075 struct edns_data edns; local
6262 struct edns_data edns; local
[all...]
/freebsd-11-stable/contrib/unbound/cachedb/
H A Dcachedb.c383 struct edns_data edns; local
384 memset(&edns, 0, sizeof(edns));
385 edns.edns_present = 1;
386 edns.bits = EDNS_DO;
387 edns.ext_rcode = 0;
388 edns.edns_version = EDNS_ADVERTISED_VERSION;
389 edns.udp_size = EDNS_ADVERTISED_SIZE;
405 buf, 0, 1, qstate->env->scratch, 65535, &edns, 1, 0))
495 struct edns_data edns; local
[all...]
/freebsd-11-stable/contrib/unbound/libunbound/
H A Dlibworker.c563 /** setup qinfo and edns */
566 struct query_info* qinfo, struct edns_data* edns)
575 edns->edns_present = 1;
576 edns->ext_rcode = 0;
577 edns->edns_version = 0;
578 edns->bits = EDNS_DO;
579 edns->opt_list = NULL;
580 edns->padding_block_size = 0;
582 edns->udp_size = (uint16_t)sldns_buffer_capacity(
584 else edns
565 setup_qinfo_edns(struct libworker* w, struct ctx_query* q, struct query_info* qinfo, struct edns_data* edns) argument
593 struct edns_data edns; local
675 struct edns_data edns; local
801 struct edns_data edns; local
[all...]
/freebsd-11-stable/contrib/unbound/dynlibmod/examples/
H A Dhelloworld.c34 struct edns_data* edns, struct edns_option** opt_list_out,
120 struct edns_data* edns, struct edns_option** opt_list_out,
118 reply_callback(struct query_info* qinfo, struct module_qstate* qstate, struct reply_info* rep, int rcode, struct edns_data* edns, struct edns_option** opt_list_out, struct comm_reply* repinfo, struct regional* region, struct timeval* start_time, int id, void* callback) argument
/freebsd-11-stable/contrib/unbound/dynlibmod/
H A Ddynlibmod.h72 struct edns_data* edns, struct edns_option** opt_list_out,
H A Ddynlibmod.c214 struct edns_data* edns, struct edns_option** opt_list_out,
218 return ((inplace_cb_reply_func_type*) cb_pair->cb)(qinfo, qstate, rep, rcode, edns, opt_list_out, repinfo, region, start_time, id, cb_pair->cb_arg);
212 dynlib_inplace_cb_reply_generic(struct query_info* qinfo, struct module_qstate* qstate, struct reply_info* rep, int rcode, struct edns_data* edns, struct edns_option** opt_list_out, struct comm_reply* repinfo, struct regional* region, struct timeval* start_time, int id, void* callback) argument
/freebsd-11-stable/contrib/unbound/
H A DMakefile.in107 SUBNET_SRC=edns-subnet/edns-subnet.c edns-subnet/subnetmod.c edns-subnet/addrtree.c edns-subnet/subnet-whitelist.c
126 util/rtt.c util/edns.c util/storage/dnstree.c util/storage/lookup3.c \
134 edns-subnet/edns-subnet.c edns-subnet/subnetmod.c \
135 edns
[all...]
/freebsd-11-stable/lib/libunbound/
H A DMakefile20 dnstree.c edns.c fptr_wlist.c infra.c iter_delegpt.c iter_donotq.c \
/freebsd-11-stable/contrib/unbound/edns-subnet/
H A Dsubnetmod.c2 * edns-subnet/subnetmod.c - edns subnet module. Must be called before validator
45 #include "edns-subnet/subnetmod.h"
46 #include "edns-subnet/edns-subnet.h"
47 #include "edns-subnet/addrtree.h"
48 #include "edns-subnet/subnet-whitelist.h"
99 /** Add ecs struct to edns list, after parsing it to wire format. */
213 /* whitelist for edns subnet capable servers */
293 * Select tree from cache entry based on edns dat
297 get_tree(struct subnet_msg_cache_data *data, struct ecs_data *edns, struct subnet_env *env, struct config_file* cfg) argument
327 struct ecs_data *edns = &sq->ecs_client_in; local
[all...]
/freebsd-11-stable/testcode/
H A Dfake_event.c55 #include "util/edns.h"
1216 struct edns_data edns; local
1223 /* add edns */
1224 edns.edns_present = 1;
1225 edns.ext_rcode = 0;
1226 edns.edns_version = EDNS_ADVERTISED_VERSION;
1227 edns.udp_size = EDNS_ADVERTISED_SIZE;
1228 edns.bits = 0;
1230 edns.bits = EDNS_DO;
1239 edns
[all...]
/freebsd-11-stable/contrib/unbound/contrib/
H A Dunbound_munin_114 ABBREV="-e s/total/t/ -e s/thread/t/ -e s/num/n/ -e s/query/q/ -e s/answer/a/ -e s/unwanted/u/ -e s/requestlist/ql/ -e s/type/t/ -e s/class/c/ -e s/opcode/o/ -e s/rcode/r/ -e s/edns/e/ -e s/mem/m/ -e s/cache/c/ -e s/mod/m/"
350 p_config "num.query.edns.present" "EDNS OPT present" "ABSOLUTE"
351 p_config "num.query.edns.DO" "DO (DNSSEC OK) flag" "ABSOLUTE"
497 for x in num.query.flags.QR num.query.flags.AA num.query.flags.TC num.query.flags.RD num.query.flags.RA num.query.flags.Z num.query.flags.AD num.query.flags.CD num.query.edns.present num.query.edns.DO; do

Completed in 133 milliseconds

12