Lines Matching refs:opt
393 m->opt = NULL;
478 if (msg->opt != NULL) {
483 INSIST(dns_rdataset_isassociated(msg->opt));
484 dns_rdataset_disassociate(msg->opt);
485 isc_mempool_put(msg->rdspool, msg->opt);
486 msg->opt = NULL;
1281 msg->opt != NULL)
1509 * the extended rcode. Note that msg->opt will only be set
1512 if (rdtype == dns_rdatatype_opt && msg->opt == NULL) {
1515 msg->opt = rdataset;
1519 ((msg->opt->ttl & DNS_MESSAGE_EDNSRCODE_MASK)
2067 if ((msg->rcode & ~DNS_MESSAGE_RCODE_MASK) != 0 && msg->opt == NULL) {
2080 if ((msg->tsigkey != NULL || msg->sig0key != NULL || msg->opt) &&
2101 if (msg->opt != NULL) {
2107 msg->opt->ttl &= ~DNS_MESSAGE_EDNSRCODE_MASK;
2108 msg->opt->ttl |= ((msg->rcode << 20) &
2114 result = dns_rdataset_towire(msg->opt, dns_rootname,
2547 return (msg->opt);
2551 dns_message_setopt(dns_message_t *msg, dns_rdataset_t *opt) {
2574 REQUIRE(opt->type == dns_rdatatype_opt);
2580 result = dns_rdataset_first(opt);
2583 dns_rdataset_current(opt, &rdata);
2591 msg->opt = opt;
2596 dns_rdataset_disassociate(opt);
2597 dns_message_puttemprdataset(msg, &opt);