| /src/external/mpl/bind/dist/lib/dns/ |
| ede.c | 42 dns_ednsopt_t *edns = NULL; local 79 edns = isc_mem_get(edectx->mctx, 80 sizeof(*edns) + sizeof(becode) + textlen); 81 *edns = (dns_ednsopt_t){ 84 .value = (uint8_t *)edns + sizeof(*edns), 87 memmove(edns->value, &becode, sizeof(becode)); 89 memmove(edns->value + sizeof(becode), text, textlen); 92 edectx->ede[edectx->nextede] = edns; 115 dns_ednsopt_t *edns = edectx->ede[i] local 167 dns_ednsopt_t *edns = isc_mem_get( local [all...] |
| /src/external/bsd/unbound/dist/pythonmod/ |
| pythonmod_utils.c | 117 struct edns_data edns; local 128 memset(&edns, 0, sizeof(edns)); 135 /* edns is not examined, but removed from message to help cache */ 136 if(parse_extract_edns_from_response_msg(prs, &edns, qstate->env->scratch) !=
|
| /src/external/mpl/bind/dist/tests/dns/ |
| ede_test.c | 48 dns_ednsopt_t *edns = edectx->ede[i]; local 50 if (edns == NULL) { 58 assert_int_equal(edns->code, DNS_OPT_EDE); 60 code = ISC_U8TO16_BE(edns->value); 63 if (edns->length > sizeof(code)) { 65 txt = edns->value + sizeof(code); 67 edns->length - sizeof(code));
|
| /src/external/mpl/dhcp/bind/dist/lib/dns/include/dns/ |
| compress.h | 74 int edns; /*%< Edns version or -1. */ member in struct:dns_compress 95 int edns; /*%< Edns version or -1. */ member in struct:dns_decompress 100 dns_compress_init(dns_compress_t *cctx, int edns, isc_mem_t *mctx); 185 * Gets edns value. 241 dns_decompress_init(dns_decompress_t *dctx, int edns, 246 * Records 'edns' and 'type' into the structure. 286 * Returns 'dctx->edns'
|
| /src/external/bsd/nsd/dist/ |
| query.h | 65 * Space reserved for optional records like EDNS. 69 /* EDNS information provided by the client. */ 70 edns_record_type edns; member in struct:query 247 * for the optional EDNS record, if required.
|
| query.c | 256 edns_init_record(&q->edns); 356 * Process an optional EDNS OPT record. Sets QUERY->EDNS to 0 if 357 * there was no EDNS record, to -1 if there was an invalid or 358 * unsupported EDNS record, and to 1 otherwise. Updates QUERY->MAXLEN 359 * if the EDNS record specifies a maximum supported response length. 366 if (q->edns.status == EDNS_ERROR) { 371 if (q->edns.status == EDNS_OK) { 373 if (!q->tcp && q->edns.maxlen > UDP_MAX_MESSAGE_LEN) { 382 if (q->edns.maxlen < edns_size) 1804 struct edns_data *edns = &nsd->edns_ipv4; local [all...] |
| nsd.h | 27 #include "edns.h" 135 stc_type edns, ednserr, raxfr, nona, rixfr; member in struct:nsdst
|
| /src/external/bsd/unbound/dist/testcode/ |
| dohclient.c | 221 struct edns_data edns; local 245 memset(&edns, 0, sizeof(edns)); 246 edns.edns_present = 1; 247 edns.bits = EDNS_DO; 248 edns.udp_size = 4096; 250 sldns_buffer_limit(buf)+calc_edns_field_size(&edns)) 251 attach_edns_record(buf, &edns);
|
| streamtcp.c | 211 /* add EDNS DO */ 212 struct edns_data edns; local 213 memset(&edns, 0, sizeof(edns)); 214 edns.edns_present = 1; 215 edns.bits = EDNS_DO; 216 edns.udp_size = 4096; 218 sldns_buffer_limit(buf)+calc_edns_field_size(&edns)) 219 attach_edns_record(buf, &edns);
|
| unitmsgparse.c | 126 /* if it had two EDNS sections, skip comparison */ 130 char* e1 = strstr(s, "; EDNS:"); 131 if(e1 && strstr(e1+4, "; EDNS:")) { 168 struct edns_data* edns) 182 r2, 65535, (int)(edns->bits & EDNS_DO), 0); 184 attach_edns_record(out, edns); 210 struct edns_data edns; local 218 ret = reply_info_parse(pkt, alloc, &qi, &rep, region, &edns); 227 perf_encode(&qi, rep, id, flags, out, timenow, &edns); 324 struct edns_data edns; local [all...] |
| unitverify.c | 95 struct edns_data edns; local 102 ret = reply_info_parse(pkt, alloc, qi, rep, region, &edns);
|
| perf.c | 68 printf(" where + means RD set, E means EDNS enabled\n"); 451 int rec = 1, edns = 0; local 475 else if(fl[0] == 'E') edns = 1; 477 edns = 1; 485 if(edns) { 490 /* Set DO bit in all EDNS datagrams ... */
|
| doqclient.c | 328 struct edns_data edns; local 345 memset(&edns, 0, sizeof(edns)); 346 edns.edns_present = 1; 347 edns.bits = EDNS_DO; 348 edns.udp_size = 4096; 350 sldns_buffer_limit(buf)+calc_edns_field_size(&edns)) 351 attach_edns_record(buf, &edns);
|
| unitmain.c | 460 #include "util/edns.h" 977 static void edns_ede_encode_setup(struct edns_data* edns, 980 memset(edns, 0, sizeof(*edns)); 981 edns->edns_present = 1; 982 edns->edns_version = EDNS_ADVERTISED_VERSION; 983 edns->udp_size = EDNS_ADVERTISED_SIZE; 984 edns->bits &= EDNS_DO; 987 edns_opt_list_append_ede(&edns->opt_list_out, region, 990 edns_opt_list_append_ede(&edns->opt_list_out, region 1072 struct edns_data edns; local 1093 struct edns_data edns; local 1124 struct edns_data edns; local [all...] |
| fake_event.c | 56 #include "util/edns.h" 1292 /* create packet with EDNS */ 1306 struct edns_data edns; local 1311 /* If we have an already populated EDNS option list make a copy 1312 * since we may now add upstream specific EDNS options. */ 1339 /* add edns */ 1340 edns.edns_present = 1; 1341 edns.ext_rcode = 0; 1342 edns.edns_version = EDNS_ADVERTISED_VERSION; 1343 edns.udp_size = EDNS_ADVERTISED_SIZE [all...] |
| testpkts.c | 522 /* add EDNS 4096 opt record */ 527 uint8_t edns[] = {0x00, /* root label */ local 531 0x00, /* TTL[1] is edns version */ 532 (uint8_t)(do_flag?0x80:0x00), 0x00, /* TTL[2-3] is edns flags, DO */ 538 if(*pktlen + sizeof(edns) + ednslen > pktsize) 539 error("not enough space for EDNS OPT record"); 540 memmove(pktbuf+*pktlen, edns, sizeof(edns)); 542 memmove(pktbuf+*pktlen+sizeof(edns), ednsdata, ednslen); 544 *pktlen += (sizeof(edns) + ednslen) 1401 char* edns = str, *n; local [all...] |
| /src/external/bsd/unbound/dist/cachedb/ |
| cachedb.c | 116 /* Register an EDNS option (65534) to bypass the worker cache lookup 385 struct edns_data edns; local 386 memset(&edns, 0, sizeof(edns)); 387 edns.edns_present = 1; 388 edns.bits = EDNS_DO; 389 edns.ext_rcode = 0; 390 edns.edns_version = EDNS_ADVERTISED_VERSION; 391 edns.udp_size = EDNS_ADVERTISED_SIZE; 414 edns_opt_list_append_ede(&edns.opt_list_out, qstate->env->scratch 543 struct edns_data edns; local [all...] |
| /src/external/bsd/unbound/dist/edns-subnet/ |
| subnetmod.c | 2 * 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" 105 /** Add ecs struct to edns list, after parsing it to wire format. */ 172 /* Cache by default, might be disabled after parsing EDNS option 190 /* if the client is not wanting an EDNS subnet option 382 struct ecs_data *edns = &sq->ecs_client_in; local [all...] |
| /src/external/bsd/unbound/dist/libunbound/ |
| libworker.c | 576 /** setup qinfo and edns */ 579 struct query_info* qinfo, struct edns_data* edns) 588 edns->edns_present = 1; 589 edns->ext_rcode = 0; 590 edns->edns_version = 0; 591 edns->bits = EDNS_DO; 592 edns->opt_list_in = NULL; 593 edns->opt_list_out = NULL; 594 edns->opt_list_inplace_cb_out = NULL; 595 edns->padding_block_size = 0 610 struct edns_data edns; local 693 struct edns_data edns; local 820 struct edns_data edns; local [all...] |
| /src/external/bsd/unbound/dist/services/ |
| mesh.h | 236 /** edns data from query */ 237 struct edns_data edns; member in struct:mesh_reply 266 /** edns data from query */ 267 struct edns_data edns; member in struct:mesh_cb 311 * @param edns: edns data from client query. 319 struct edns_data* edns, struct comm_reply* rep, uint16_t qid, 330 * @param edns: edns data from client query. 340 uint16_t qflags, struct edns_data* edns, struct sldns_buffer* buf, [all...] |
| outside_network.c | 61 #include "util/edns.h" 2882 /* add edns section */ 2883 struct edns_data edns; local 2885 edns.edns_present = 1; 2886 edns.ext_rcode = 0; 2887 edns.edns_version = EDNS_ADVERTISED_VERSION; 2888 edns.opt_list_in = NULL; 2889 edns.opt_list_out = sq->opt_list; 2890 edns.opt_list_inplace_cb_out = NULL; 2891 edns.udp_size = serviced_query_udp_size(sq, sq->status) [all...] |
| /src/external/bsd/unbound/dist/util/data/ |
| msgencode.c | 808 calc_edns_field_size(struct edns_data* edns) 812 if(!edns || !edns->edns_present) 814 for(opt = edns->opt_list_inplace_cb_out; opt; opt = opt->next) { 817 for(opt = edns->opt_list_out; opt; opt = opt->next) { 825 calc_edns_option_size(struct edns_data* edns, uint16_t code) 829 if(!edns || !edns->edns_present) 831 for(opt = edns->opt_list_inplace_cb_out; opt; opt = opt->next) { 835 for(opt = edns->opt_list_out; opt; opt = opt->next) 1142 (r & 0xFFF0), edns); local [all...] |
| /src/external/bsd/unbound/dist/daemon/ |
| worker.c | 71 #include "util/edns.h" 554 struct edns_data* edns) 565 uint16_t udpsize = edns->udp_size; 593 edns->edns_version = EDNS_ADVERTISED_VERSION; 594 edns->udp_size = EDNS_ADVERTISED_SIZE; 595 edns->ext_rcode = 0; 596 edns->bits &= EDNS_DO; 598 msg->rep, LDNS_RCODE_SERVFAIL, edns, repinfo, worker->scratchpad, 604 edns_opt_list_append_ede(&edns->opt_list_out, 609 &msg->qinfo, id, flags, edns); 1456 struct edns_data edns; local [all...] |
| /src/external/bsd/unbound/dist/iterator/ |
| iterator.c | 4291 struct edns_data edns; local 4337 memset(&edns, 0, sizeof(edns)); 4345 /* edns is not examined, but removed from message to help cache */ 4346 if(parse_extract_edns_from_response_msg(prs, &edns, qstate->env->scratch) != 4352 /* Copy the edns options we may got from the back end */ 4354 if(edns.opt_list_in) { 4355 qstate->edns_opts_back_in = edns_opt_copy_region(edns.opt_list_in,
|
| /src/external/bsd/unbound/dist/validator/ |
| autotrust.c | 2379 struct edns_data edns; local 2393 edns.edns_present = 1; 2394 edns.ext_rcode = 0; 2395 edns.edns_version = 0; 2396 edns.bits = EDNS_DO; 2397 edns.opt_list_in = NULL; 2398 edns.opt_list_out = NULL; 2399 edns.opt_list_inplace_cb_out = NULL; 2400 edns.padding_block_size = 0; 2401 edns.cookie_present = 0 [all...] |