mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-18 18:25:10 -05:00
Switch from SVCB to IDELEG(65280)
This commit is contained in:
parent
c3c54f04b4
commit
4d384333ae
2 changed files with 8 additions and 5 deletions
|
|
@ -2618,11 +2618,11 @@ processQueryTargets(struct module_qstate* qstate, struct iter_qstate* iq,
|
|||
|
||||
|
||||
iq->dp->namelen = delnamelen;
|
||||
iq->qchase.qtype = 64;
|
||||
iq->qchase.qtype = LDNS_RR_TYPE_IDELEG;
|
||||
iq->qchase.qname = delname;
|
||||
iq->qchase.qname_len = delnamelen;
|
||||
|
||||
iq->qinfo_out.qtype = 64;
|
||||
iq->qinfo_out.qtype = LDNS_RR_TYPE_IDELEG;
|
||||
iq->qinfo_out.qname = delname;
|
||||
iq->qinfo_out.qname_len = delnamelen;
|
||||
} else if (root_len > 0 && iq->deleg_state == 2) { //in this state create deleg prime query
|
||||
|
|
@ -2640,11 +2640,11 @@ processQueryTargets(struct module_qstate* qstate, struct iter_qstate* iq,
|
|||
memcpy(delname, deleg_wireformat, deleg_len);
|
||||
memcpy(delname+deleg_len, iq->qchase.qname, iq->qchase.qname_len);
|
||||
|
||||
iq->qchase.qtype = 64;
|
||||
iq->qchase.qtype = LDNS_RR_TYPE_IDELEG;
|
||||
iq->qchase.qname = delname;
|
||||
iq->qchase.qname_len = delnamelen;
|
||||
|
||||
iq->qinfo_out.qtype = 64;
|
||||
iq->qinfo_out.qtype = LDNS_RR_TYPE_IDELEG;
|
||||
iq->qinfo_out.qname = delname;
|
||||
iq->qinfo_out.qname_len = delnamelen;
|
||||
}
|
||||
|
|
@ -3302,7 +3302,7 @@ processQueryResponse(struct module_qstate* qstate, struct iter_qstate* iq,
|
|||
// make sure you identify those answers correclty and treat
|
||||
// them the same way as referrals below.
|
||||
/* handle each of the type cases */
|
||||
uint16_t SVCB_QTYPE = 64;
|
||||
// uint16_t SVCB_QTYPE = LDNS_RR_TYPE_IDELEG;
|
||||
|
||||
//check wether it was a deleg query
|
||||
uint8_t deleg_wireformat[] = {6, 95, 100, 101, 108, 101, 103}; //{06}_deleg
|
||||
|
|
|
|||
|
|
@ -234,6 +234,9 @@ enum sldns_enum_rr_type
|
|||
/* RFC 4431, 5074, DNSSEC Lookaside Validation */
|
||||
LDNS_RR_TYPE_DLV = 32769,
|
||||
|
||||
/* draft-homburg-deleg-inctremental-deleg */
|
||||
LDNS_RR_TYPE_IDELEG = 65280,
|
||||
|
||||
/* type codes from nsec3 experimental phase
|
||||
LDNS_RR_TYPE_NSEC3 = 65324,
|
||||
LDNS_RR_TYPE_NSEC3PARAMS = 65325, */
|
||||
|
|
|
|||
Loading…
Reference in a new issue