| /src/external/bsd/nsd/dist/ |
| edns.c | 2 * edns.c -- EDNS definitions (RFC 2671). 20 #include "edns.h" 65 edns_init_record(edns_record_type *edns) 67 edns->status = EDNS_NOT_PRESENT; 68 edns->position = 0; 69 edns->maxlen = 0; 70 edns->opt_reserved_space = 0; 71 edns->dnssec_ok = 0; 72 edns->nsid = 0 [all...] |
| 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...] |
| /src/external/mpl/bind/dist/bin/tests/system/forward/ns9/ |
| named4.conf.j2 | 17 edns-udp-size 1232; 23 edns no;
|
| named.conf.j2 | 17 edns-udp-size 1232; 23 edns no; 27 edns no;
|
| named2.conf.j2 | 17 edns-udp-size 1232; 23 edns no; 27 edns no;
|
| named3.conf.j2 | 17 edns-udp-size 1232; 25 edns no;
|
| /src/external/mpl/bind/dist/lib/dns/ |
| ede.c | 44 dns_ednsopt_t *edns = NULL; local 81 edns = isc_mem_get(edectx->mctx, 82 sizeof(*edns) + sizeof(becode) + textlen); 83 *edns = (dns_ednsopt_t){ 86 .value = (uint8_t *)edns + sizeof(*edns), 89 memmove(edns->value, &becode, sizeof(becode)); 91 memmove(edns->value + sizeof(becode), text, textlen); 94 edectx->ede[edectx->nextede] = edns; 117 dns_ednsopt_t *edns = edectx->ede[i] local 169 dns_ednsopt_t *edns = isc_mem_get( local [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/fetchlimit/ns3/ |
| named.conf.j2 | 21 edns no;
|
| named2.conf.j2 | 22 edns no;
|
| named3.conf.j2 | 22 edns no;
|
| /src/external/bsd/unbound/dist/util/data/ |
| msgencode.h | 62 * @param udpsize: size of the answer, 512, from EDNS, or 64k for TCP. 63 * @param edns: EDNS data included in the answer, NULL for none. 72 struct edns_data* edns, int dnssec, int secure); 86 * @param udpsize: size of the answer, 512, from EDNS, or 64k for TCP. 105 * Estimate size of EDNS record in packet. EDNS record will be no larger. 106 * @param edns: edns data or NULL. 107 * @return octets to reserve for EDNS [all...] |
| msgencode.c | 824 calc_edns_field_size(struct edns_data* edns) 828 if(!edns || !edns->edns_present) 830 for(opt = edns->opt_list_inplace_cb_out; opt; opt = opt->next) { 833 for(opt = edns->opt_list_out; opt; opt = opt->next) { 841 calc_edns_option_size(struct edns_data* edns, uint16_t code) 845 if(!edns || !edns->edns_present) 847 for(opt = edns->opt_list_inplace_cb_out; opt; opt = opt->next) { 851 for(opt = edns->opt_list_out; opt; opt = opt->next) 1178 (r & 0xFFF0), edns); local [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/fetchlimit/ns5/ |
| named.conf.j2 | 23 edns no;
|
| named2.conf.j2 | 26 edns no;
|
| named3.conf.j2 | 27 edns no;
|
| /src/external/mpl/bind/dist/bin/tests/system/checkconf/ |
| good-server-christmas-tree.conf | 21 edns no; 22 edns-udp-size 512; 23 edns-version 0; 44 edns no; 45 edns-udp-size 512; 46 edns-version 0;
|
| /src/external/mpl/bind/dist/bin/tests/system/resolver/ns5/ |
| named.conf.j2 | 27 edns-version 0;
|
| /src/etc/ |
| named.conf | 19 # An EDNS buffer size of 1232 bytes will avoid fragmentation on 27 edns-udp-size 1232;
|
| /src/external/bsd/unbound/dist/daemon/ |
| stats.h | 115 * @param edns: edns record 119 uint16_t qtype, uint16_t qclass, struct edns_data* edns, 132 * @param edns: edns record 135 struct edns_data* edns);
|
| worker.c | 71 #include "util/edns.h" 300 * beforehand. The reply is without EDNS, and copies RD and sets QR flag. 594 struct edns_data* edns) 605 uint16_t udpsize = edns->udp_size; 633 edns->edns_version = EDNS_ADVERTISED_VERSION; 634 edns->udp_size = EDNS_ADVERTISED_SIZE; 635 edns->ext_rcode = 0; 636 edns->bits &= EDNS_DO; 638 msg->rep, LDNS_RCODE_SERVFAIL, edns, repinfo, worker->scratchpad, 644 edns_opt_list_append_ede(&edns->opt_list_out 1482 struct edns_data edns; local [all...] |
| /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/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/bsd/unbound/dist/pythonmod/examples/ |
| inplace_callbacks.py | 43 # with the same EDNS option 65002, but with hexdata 'deadbeef' as data. 47 # intentionally bogus. The reply will contain an empty EDNS option 77 def inplace_reply_callback(qinfo, qstate, rep, rcode, edns, opt_list_out, 88 :param edns: edns_data to be sent to the client side. It SHOULD NOT be 90 :param opt_list_out: the list with the EDNS options that will be sent as a 91 reply. It can be populated with EDNS options; 105 def inplace_cache_callback(qinfo, qstate, rep, rcode, edns, opt_list_out, 115 :param edns: edns_data sent from the client side. The list with the EDNS 116 options is accessible through edns.opt_list. It SHOULD NOT b [all...] |
| /src/external/mpl/bind/dist/bin/tests/system/glue/ |
| tests_glue.py | 13 import dns.edns namespace 107 options=[dns.edns.GenericOption(dns.edns.OptionType.COOKIE, b"0xda13cc")],
|
| /src/external/mpl/bind/dist/bin/tests/system/resend_loop/ans3/ |
| ans.py | 14 import dns.edns namespace 50 def _get_cookie(self, qctx: QueryContext) -> dns.edns.CookieOption | None: 52 if o.otype == dns.edns.OptionType.COOKIE:
|