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

/freebsd-10.0-release/contrib/unbound/util/data/
H A Dmsgencode.h62 * @param edns: EDNS data included in the answer, NULL for none.
71 struct edns_data* edns, int dnssec, int secure);
103 * @param edns: edns data or NULL.
106 uint16_t calc_edns_field_size(struct edns_data* edns);
112 * @param edns: if NULL or present=0, nothing is added to the packet.
114 void attach_edns_record(ldns_buffer* pkt, struct edns_data* edns);
124 * @param edns: if not NULL, this is the query edns info,
125 * and an edns repl
[all...]
H A Dmsgencode.c720 calc_edns_field_size(struct edns_data* edns) argument
722 if(!edns || !edns->edns_present)
729 attach_edns_record(ldns_buffer* pkt, struct edns_data* edns) argument
732 if(!edns || !edns->edns_present)
743 ldns_buffer_write_u16(pkt, edns->udp_size); /* class */
744 ldns_buffer_write_u8(pkt, edns->ext_rcode); /* ttl */
745 ldns_buffer_write_u8(pkt, edns->edns_version);
746 ldns_buffer_write_u16(pkt, edns
752 reply_info_answer_encode(struct query_info* qinf, struct reply_info* rep, uint16_t id, uint16_t qflags, ldns_buffer* pkt, uint32_t timenow, int cached, struct regional* region, uint16_t udpsize, struct edns_data* edns, int dnssec, int secure) argument
807 error_encode(ldns_buffer* buf, int r, struct query_info* qinfo, uint16_t qid, uint16_t qflags, struct edns_data* edns) argument
[all...]
H A Dmsgparse.c934 parse_extract_edns(struct msg_parse* msg, struct edns_data* edns) argument
954 memset(edns, 0, sizeof(*edns));
955 edns->udp_size = 512;
981 edns->edns_present = 1;
982 edns->ext_rcode = found->rr_last->ttl_data[0];
983 edns->edns_version = found->rr_last->ttl_data[1];
984 edns->bits = ldns_read_uint16(&found->rr_last->ttl_data[2]);
985 edns->udp_size = ntohs(found->rrset_class);
991 parse_edns_from_pkt(ldns_buffer* pkt, struct edns_data* edns) argument
[all...]
H A Dmsgparse.h247 * @param edns: the edns data is stored here. Does not have to be initialised.
251 int parse_extract_edns(struct msg_parse* msg, struct edns_data* edns);
254 * If EDNS data follows a query section, extract it and initialize edns struct.
257 * @param edns: the edns data allocated by the caller. Does not have to be
262 int parse_edns_from_pkt(ldns_buffer* pkt, struct edns_data* edns);
H A Dmsgreply.h216 * @param edns: where to store edns information, does not need to be inited.
223 struct regional* region, struct edns_data* edns);
H A Dmsgreply.c418 struct regional* region, struct edns_data* edns)
435 if((ret = parse_extract_edns(msg, edns)) != 0)
416 reply_info_parse(ldns_buffer* pkt, struct alloc_cache* alloc, struct query_info* qinf, struct reply_info** rep, struct regional* region, struct edns_data* edns) argument
/freebsd-10.0-release/contrib/unbound/services/
H A Dmesh.h206 /** edns data from query */
207 struct edns_data edns; member in struct:mesh_reply
231 /** edns data from query */
232 struct edns_data edns; member in struct:mesh_cb
273 * @param edns: edns data from client query.
278 uint16_t qflags, struct edns_data* edns, struct comm_reply* rep,
289 * @param edns: edns data from client query.
297 uint16_t qflags, struct edns_data* edns, ldns_buffe
[all...]
H A Dmesh.c277 uint16_t qflags, struct edns_data* edns, struct comm_reply* rep,
318 qinfo, qid, qflags, edns);
336 if(!mesh_state_add_reply(s, edns, rep, qid, qflags, qinfo->qname)) {
339 qinfo, qid, qflags, edns);
373 uint16_t qflags, struct edns_data* edns, ldns_buffer* buf,
405 if(!mesh_state_add_cb(s, edns, buf, cb, cb_arg, qid, qflags)) {
788 size_t udp_size = r->edns.udp_size;
790 r->edns.edns_version = EDNS_ADVERTISED_VERSION;
791 r->edns.udp_size = EDNS_ADVERTISED_SIZE;
792 r->edns
276 mesh_new_client(struct mesh_area* mesh, struct query_info* qinfo, uint16_t qflags, struct edns_data* edns, struct comm_reply* rep, uint16_t qid) argument
372 mesh_new_callback(struct mesh_area* mesh, struct query_info* qinfo, uint16_t qflags, struct edns_data* edns, ldns_buffer* buf, uint16_t qid, mesh_cb_func_t cb, void* cb_arg) argument
944 mesh_state_add_cb(struct mesh_state* s, struct edns_data* edns, ldns_buffer* buf, mesh_cb_func_t cb, void* cb_arg, uint16_t qid, uint16_t qflags) argument
965 mesh_state_add_reply(struct mesh_state* s, struct edns_data* edns, struct comm_reply* rep, uint16_t qid, uint16_t qflags, uint8_t* qname) argument
[all...]
H A Dlocalzone.c993 local_encode(struct query_info* qinfo, struct edns_data* edns, argument
1008 udpsize = edns->udp_size;
1009 edns->edns_version = EDNS_ADVERTISED_VERSION;
1010 edns->udp_size = EDNS_ADVERTISED_SIZE;
1011 edns->ext_rcode = 0;
1012 edns->bits &= EDNS_DO;
1016 buf, 0, 0, temp, udpsize, edns,
1017 (int)(edns->bits&EDNS_DO), 0))
1020 ldns_buffer_read_u16_at(buf, 2), edns);
1027 struct edns_data* edns, ldns_buffe
1026 local_data_answer(struct local_zone* z, struct query_info* qinfo, struct edns_data* edns, ldns_buffer* buf, struct regional* temp, int labs, struct local_data** ldp) argument
1073 lz_zone_answer(struct local_zone* z, struct query_info* qinfo, struct edns_data* edns, ldns_buffer* buf, struct regional* temp, struct local_data* ld) argument
1128 local_zones_answer(struct local_zones* zones, struct query_info* qinfo, struct edns_data* edns, ldns_buffer* buf, struct regional* temp) argument
[all...]
H A Dlocalzone.h219 * @param edns: edns info (parsed).
227 struct edns_data* edns, ldns_buffer* buf, struct regional* temp);
H A Doutside_network.c1325 /* add edns section */
1326 struct edns_data edns; local
1327 edns.edns_present = 1;
1328 edns.ext_rcode = 0;
1329 edns.edns_version = EDNS_ADVERTISED_VERSION;
1333 edns.udp_size = EDNS_FRAG_SIZE_IP6;
1334 else edns.udp_size = EDNS_ADVERTISED_SIZE;
1337 edns.udp_size = EDNS_FRAG_SIZE_IP4;
1338 else edns.udp_size = EDNS_ADVERTISED_SIZE;
1341 edns
[all...]
/freebsd-10.0-release/contrib/unbound/daemon/
H A Dworker.c441 struct edns_data* edns)
452 uint16_t udpsize = edns->udp_size;
476 edns->edns_version = EDNS_ADVERTISED_VERSION;
477 edns->udp_size = EDNS_ADVERTISED_SIZE;
478 edns->ext_rcode = 0;
479 edns->bits &= EDNS_DO;
481 &msg->qinfo, id, flags, edns);
504 edns->edns_version = EDNS_ADVERTISED_VERSION;
505 edns->udp_size = EDNS_ADVERTISED_SIZE;
506 edns
439 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
525 answer_from_cache(struct worker* worker, struct query_info* qinfo, struct reply_info* rep, uint16_t id, uint16_t flags, struct comm_reply* repinfo, struct edns_data* edns) argument
641 chaos_replystr(ldns_buffer* pkt, const char* str, struct edns_data* edns) argument
682 answer_chaos(struct worker* w, struct query_info* qinfo, struct edns_data* edns, ldns_buffer* pkt) argument
732 struct edns_data edns; local
[all...]
H A Dstats.h221 * @param edns: edns record
225 uint16_t qtype, uint16_t qclass, struct edns_data* edns,
H A Dstats.c257 uint16_t qtype, uint16_t qclass, struct edns_data* edns,
288 if(edns->edns_present) {
290 if( (edns->bits & EDNS_DO) )
256 server_stats_insquery(struct server_stats* stats, struct comm_point* c, uint16_t qtype, uint16_t qclass, struct edns_data* edns, struct comm_reply* repinfo) argument
/freebsd-10.0-release/contrib/unbound/libunbound/
H A Dlibworker.c533 /** setup qinfo and edns */
536 struct query_info* qinfo, struct edns_data* edns)
554 edns->edns_present = 1;
555 edns->ext_rcode = 0;
556 edns->edns_version = 0;
557 edns->bits = EDNS_DO;
559 edns->udp_size = (uint16_t)ldns_buffer_capacity(
561 else edns->udp_size = 65535;
571 struct edns_data edns; local
574 if(!setup_qinfo_edns(w, q, &qinfo, &edns)) {
535 setup_qinfo_edns(struct libworker* w, struct ctx_query* q, struct query_info* qinfo, struct edns_data* edns) argument
685 struct edns_data edns; local
[all...]
/freebsd-10.0-release/contrib/unbound/validator/
H A Dautotrust.c2119 struct edns_data edns; local
2132 edns.edns_present = 1;
2133 edns.ext_rcode = 0;
2134 edns.edns_version = 0;
2135 edns.bits = EDNS_DO;
2137 edns.udp_size = (uint16_t)ldns_buffer_capacity(buf);
2138 else edns.udp_size = 65535;
2151 if(!mesh_new_callback(env->mesh, &qinfo, qflags, &edns, buf, 0,
/freebsd-10.0-release/contrib/unbound/iterator/
H A Diterator.c2748 struct edns_data edns; local
2774 memset(&edns, 0, sizeof(edns));
2781 /* edns is not examined, but removed from message to help cache */
2782 if(parse_extract_edns(prs, &edns) != LDNS_RCODE_NOERROR)

Completed in 226 milliseconds