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

/freebsd-10-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);
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 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 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.h251 * @param edns: the edns data is stored here. Does not have to be initialised.
255 int parse_extract_edns(struct msg_parse* msg, struct edns_data* edns);
258 * If EDNS data follows a query section, extract it and initialize edns struct.
261 * @param edns: the edns data allocated by the caller. Does not have to be
266 int parse_edns_from_pkt(struct sldns_buffer* pkt, struct edns_data* edns);
H A Dmsgreply.h237 * @param edns: where to store edns information, does not need to be inited.
244 struct regional* region, struct edns_data* edns);
H A Dmsgreply.c447 struct regional* region, struct edns_data* edns)
464 if((ret = parse_extract_edns(msg, edns)) != 0)
445 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-stable/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.c282 uint16_t qflags, struct edns_data* edns, struct comm_reply* rep,
319 qinfo, qid, qflags, edns);
339 if(!mesh_state_add_reply(s, edns, rep, qid, qflags, qinfo->qname)) {
342 qinfo, qid, qflags, edns);
376 uint16_t qflags, struct edns_data* edns, sldns_buffer* buf,
410 if(!mesh_state_add_cb(s, edns, buf, cb, cb_arg, qid, qflags)) {
806 size_t udp_size = r->edns.udp_size;
808 r->edns.edns_version = EDNS_ADVERTISED_VERSION;
809 r->edns.udp_size = EDNS_ADVERTISED_SIZE;
810 r->edns
281 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
375 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
963 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
984 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.c953 local_encode(struct query_info* qinfo, struct edns_data* edns, argument
968 udpsize = edns->udp_size;
969 edns->edns_version = EDNS_ADVERTISED_VERSION;
970 edns->udp_size = EDNS_ADVERTISED_SIZE;
971 edns->ext_rcode = 0;
972 edns->bits &= EDNS_DO;
976 buf, 0, 0, temp, udpsize, edns,
977 (int)(edns->bits&EDNS_DO), 0))
980 sldns_buffer_read_u16_at(buf, 2), edns);
987 struct edns_data* edns, sldns_buffe
986 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
1033 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
1103 local_zones_answer(struct local_zones* zones, struct query_info* qinfo, struct edns_data* edns, sldns_buffer* buf, struct regional* temp, struct comm_reply* repinfo) argument
[all...]
H A Dlocalzone.h225 * @param edns: edns info (parsed).
234 struct edns_data* edns, struct sldns_buffer* buf, struct regional* temp,
H A Doutside_network.c1376 /* add edns section */
1377 struct edns_data edns; local
1378 edns.edns_present = 1;
1379 edns.ext_rcode = 0;
1380 edns.edns_version = EDNS_ADVERTISED_VERSION;
1384 edns.udp_size = EDNS_FRAG_SIZE_IP6;
1385 else edns.udp_size = EDNS_ADVERTISED_SIZE;
1388 edns.udp_size = EDNS_FRAG_SIZE_IP4;
1389 else edns.udp_size = EDNS_ADVERTISED_SIZE;
1392 edns
[all...]
/freebsd-10-stable/contrib/unbound/daemon/
H A Dworker.c463 struct edns_data* edns)
474 uint16_t udpsize = edns->udp_size;
498 edns->edns_version = EDNS_ADVERTISED_VERSION;
499 edns->udp_size = EDNS_ADVERTISED_SIZE;
500 edns->ext_rcode = 0;
501 edns->bits &= EDNS_DO;
503 &msg->qinfo, id, flags, edns);
526 edns->edns_version = EDNS_ADVERTISED_VERSION;
527 edns->udp_size = EDNS_ADVERTISED_SIZE;
528 edns
461 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
547 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
663 chaos_replystr(sldns_buffer* pkt, const char* str, struct edns_data* edns) argument
704 answer_chaos(struct worker* w, struct query_info* qinfo, struct edns_data* edns, sldns_buffer* pkt) argument
800 struct edns_data edns; local
[all...]
H A Dstats.h234 * @param edns: edns record
238 uint16_t qtype, uint16_t qclass, struct edns_data* edns,
H A Dstats.c285 uint16_t qtype, uint16_t qclass, struct edns_data* edns,
316 if(edns->edns_present) {
318 if( (edns->bits & EDNS_DO) )
284 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-stable/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-stable/contrib/unbound/validator/
H A Dautotrust.c2319 struct edns_data edns; local
2332 edns.edns_present = 1;
2333 edns.ext_rcode = 0;
2334 edns.edns_version = 0;
2335 edns.bits = EDNS_DO;
2337 edns.udp_size = (uint16_t)sldns_buffer_capacity(buf);
2338 else edns.udp_size = 65535;
2351 if(!mesh_new_callback(env->mesh, &qinfo, qflags, &edns, buf, 0,
/freebsd-10-stable/contrib/unbound/iterator/
H A Diterator.c3035 struct edns_data edns; local
3077 memset(&edns, 0, sizeof(edns));
3084 /* edns is not examined, but removed from message to help cache */
3085 if(parse_extract_edns(prs, &edns) != LDNS_RCODE_NOERROR)

Completed in 205 milliseconds