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

/freebsd-10.1-release/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);
104 * @param edns: edns data or NULL.
107 uint16_t calc_edns_field_size(struct edns_data* edns);
113 * @param edns: if NULL or present=0, nothing is added to the packet.
115 void attach_edns_record(struct sldns_buffer* pkt, struct edns_data* edns);
125 * @param edns: if not NULL, this is the query edns info,
126 * and an edns repl
[all...]
H A Dmsgencode.c718 calc_edns_field_size(struct edns_data* edns) argument
720 if(!edns || !edns->edns_present)
727 attach_edns_record(sldns_buffer* pkt, struct edns_data* edns) argument
730 if(!edns || !edns->edns_present)
741 sldns_buffer_write_u16(pkt, edns->udp_size); /* class */
742 sldns_buffer_write_u8(pkt, edns->ext_rcode); /* ttl */
743 sldns_buffer_write_u8(pkt, edns->edns_version);
744 sldns_buffer_write_u16(pkt, edns
750 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
805 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.c937 parse_extract_edns(struct msg_parse* msg, struct edns_data* edns) argument
957 memset(edns, 0, sizeof(*edns));
958 edns->udp_size = 512;
984 edns->edns_present = 1;
985 edns->ext_rcode = found->rr_last->ttl_data[0];
986 edns->edns_version = found->rr_last->ttl_data[1];
987 edns->bits = sldns_read_uint16(&found->rr_last->ttl_data[2]);
988 edns->udp_size = ntohs(found->rrset_class);
994 parse_edns_from_pkt(sldns_buffer* pkt, struct edns_data* edns) argument
[all...]
H A Dmsgparse.h249 * @param edns: the edns data is stored here. Does not have to be initialised.
253 int parse_extract_edns(struct msg_parse* msg, struct edns_data* edns);
256 * If EDNS data follows a query section, extract it and initialize edns struct.
259 * @param edns: the edns data allocated by the caller. Does not have to be
264 int parse_edns_from_pkt(struct sldns_buffer* pkt, struct edns_data* edns);
H A Dmsgreply.h217 * @param edns: where to store edns information, does not need to be inited.
224 struct regional* region, struct edns_data* edns);
H A Dmsgreply.c419 struct regional* region, struct edns_data* edns)
436 if((ret = parse_extract_edns(msg, edns)) != 0)
417 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
/freebsd-10.1-release/contrib/unbound/services/
H A Dmesh.h207 /** edns data from query */
208 struct edns_data edns; member in struct:mesh_reply
232 /** edns data from query */
233 struct edns_data edns; member in struct:mesh_cb
274 * @param edns: edns data from client query.
279 uint16_t qflags, struct edns_data* edns, struct comm_reply* rep,
290 * @param edns: edns data from client query.
298 uint16_t qflags, struct edns_data* edns, struc
[all...]
H A Dmesh.c277 uint16_t qflags, struct edns_data* edns, struct comm_reply* rep,
318 qinfo, qid, qflags, edns);
338 if(!mesh_state_add_reply(s, edns, rep, qid, qflags, qinfo->qname)) {
341 qinfo, qid, qflags, edns);
375 uint16_t qflags, struct edns_data* edns, sldns_buffer* buf,
409 if(!mesh_state_add_cb(s, edns, buf, cb, cb_arg, qid, qflags)) {
802 size_t udp_size = r->edns.udp_size;
804 r->edns.edns_version = EDNS_ADVERTISED_VERSION;
805 r->edns.udp_size = EDNS_ADVERTISED_SIZE;
806 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
374 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_t cb, void* cb_arg) argument
958 mesh_state_add_cb(struct mesh_state* s, struct edns_data* edns, sldns_buffer* buf, mesh_cb_func_t cb, void* cb_arg, uint16_t qid, uint16_t qflags) argument
979 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.c974 local_encode(struct query_info* qinfo, struct edns_data* edns, argument
989 udpsize = edns->udp_size;
990 edns->edns_version = EDNS_ADVERTISED_VERSION;
991 edns->udp_size = EDNS_ADVERTISED_SIZE;
992 edns->ext_rcode = 0;
993 edns->bits &= EDNS_DO;
997 buf, 0, 0, temp, udpsize, edns,
998 (int)(edns->bits&EDNS_DO), 0))
1001 sldns_buffer_read_u16_at(buf, 2), edns);
1008 struct edns_data* edns, sldns_buffe
1007 local_data_answer(struct local_zone* z, struct query_info* qinfo, struct edns_data* edns, sldns_buffer* buf, struct regional* temp, int labs, struct local_data** ldp) argument
1054 lz_zone_answer(struct local_zone* z, struct query_info* qinfo, struct edns_data* edns, sldns_buffer* buf, struct regional* temp, struct local_data* ld) argument
1109 local_zones_answer(struct local_zones* zones, struct query_info* qinfo, struct edns_data* edns, sldns_buffer* buf, struct regional* temp) argument
[all...]
H A Dlocalzone.h220 * @param edns: edns info (parsed).
228 struct edns_data* edns, struct sldns_buffer* buf, struct regional* temp);
H A Doutside_network.c1361 /* add edns section */
1362 struct edns_data edns; local
1363 edns.edns_present = 1;
1364 edns.ext_rcode = 0;
1365 edns.edns_version = EDNS_ADVERTISED_VERSION;
1369 edns.udp_size = EDNS_FRAG_SIZE_IP6;
1370 else edns.udp_size = EDNS_ADVERTISED_SIZE;
1373 edns.udp_size = EDNS_FRAG_SIZE_IP4;
1374 else edns.udp_size = EDNS_ADVERTISED_SIZE;
1377 edns
[all...]
/freebsd-10.1-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(sldns_buffer* pkt, const char* str, struct edns_data* edns) argument
682 answer_chaos(struct worker* w, struct query_info* qinfo, struct edns_data* edns, sldns_buffer* pkt) argument
778 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.c262 uint16_t qtype, uint16_t qclass, struct edns_data* edns,
293 if(edns->edns_present) {
295 if( (edns->bits & EDNS_DO) )
261 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.1-release/contrib/unbound/libunbound/
H A Dlibworker.c568 /** setup qinfo and edns */
571 struct query_info* qinfo, struct edns_data* edns)
579 edns->edns_present = 1;
580 edns->ext_rcode = 0;
581 edns->edns_version = 0;
582 edns->bits = EDNS_DO;
584 edns->udp_size = (uint16_t)sldns_buffer_capacity(
586 else edns->udp_size = 65535;
595 struct edns_data edns; local
598 if(!setup_qinfo_edns(w, q, &qinfo, &edns)) {
570 setup_qinfo_edns(struct libworker* w, struct ctx_query* q, struct query_info* qinfo, struct edns_data* edns) argument
667 struct edns_data edns; local
775 struct edns_data edns; local
[all...]
/freebsd-10.1-release/contrib/unbound/validator/
H A Dautotrust.c2303 struct edns_data edns; local
2316 edns.edns_present = 1;
2317 edns.ext_rcode = 0;
2318 edns.edns_version = 0;
2319 edns.bits = EDNS_DO;
2321 edns.udp_size = (uint16_t)sldns_buffer_capacity(buf);
2322 else edns.udp_size = 65535;
2335 if(!mesh_new_callback(env->mesh, &qinfo, qflags, &edns, buf, 0,
/freebsd-10.1-release/contrib/unbound/iterator/
H A Diterator.c2795 struct edns_data edns; local
2821 memset(&edns, 0, sizeof(edns));
2828 /* edns is not examined, but removed from message to help cache */
2829 if(parse_extract_edns(prs, &edns) != LDNS_RCODE_NOERROR)

Completed in 290 milliseconds