Commit 95430fbd authored by Vladimír Čunát's avatar Vladimír Čunát

.

parent 595f4a14
This diff is collapsed.
...@@ -797,3 +797,8 @@ void kr_qry_print(const struct kr_query *qry, const char *prefix, const char *po ...@@ -797,3 +797,8 @@ void kr_qry_print(const struct kr_query *qry, const char *prefix, const char *po
kr_rrtype_print(qry->stype, " ", postfix); kr_rrtype_print(qry->stype, " ", postfix);
} }
int knot_dname_lf2wire(knot_dname_t *dst, uint8_t len, const uint8_t *lf)
{
//FIXME
assert(false);
}
...@@ -120,9 +120,10 @@ struct ranked_rr_array_entry { ...@@ -120,9 +120,10 @@ struct ranked_rr_array_entry {
uint32_t qry_uid; uint32_t qry_uid;
uint8_t rank; /**< enum kr_rank */ uint8_t rank; /**< enum kr_rank */
uint8_t revalidation_cnt; uint8_t revalidation_cnt;
bool cached; /**< whether it has been stashed to cache already */ bool cached : 1; /**< whether it has been stashed to cache already */
bool yielded; bool yielded : 1;
bool to_wire; /**< whether to be put into the answer */ bool to_wire : 1; /**< whether to be put into the answer */
bool expiring : 1; /**< low remaining TTL; see is_expiring; only used in cache ATM */
knot_rrset_t *rr; knot_rrset_t *rr;
}; };
typedef struct ranked_rr_array_entry ranked_rr_array_entry_t; typedef struct ranked_rr_array_entry ranked_rr_array_entry_t;
...@@ -288,3 +289,10 @@ static inline uint16_t kr_rrset_type_maysig(const knot_rrset_t *rr) ...@@ -288,3 +289,10 @@ static inline uint16_t kr_rrset_type_maysig(const knot_rrset_t *rr)
type = knot_rrsig_type_covered(&rr->rrs, 0); type = knot_rrsig_type_covered(&rr->rrs, 0);
return type; return type;
} }
/** Convert name from lookup format to wire. See knot_dname_lf
*
* \note len bytes are read and len+1 are written.
*/
int knot_dname_lf2wire(knot_dname_t *dst, uint8_t len, const uint8_t *lf);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment