Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
Knot Resolver
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jonathan Coetzee
Knot Resolver
Commits
95430fbd
Verified
Commit
95430fbd
authored
Oct 18, 2017
by
Vladimír Čunát
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
595f4a14
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
385 additions
and
219 deletions
+385
-219
lib/cache.c
lib/cache.c
+369
-216
lib/utils.c
lib/utils.c
+5
-0
lib/utils.h
lib/utils.h
+11
-3
No files found.
lib/cache.c
View file @
95430fbd
This diff is collapsed.
Click to expand it.
lib/utils.c
View file @
95430fbd
...
...
@@ -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
);
}
int
knot_dname_lf2wire
(
knot_dname_t
*
dst
,
uint8_t
len
,
const
uint8_t
*
lf
)
{
//FIXME
assert
(
false
);
}
lib/utils.h
View file @
95430fbd
...
...
@@ -120,9 +120,10 @@ struct ranked_rr_array_entry {
uint32_t
qry_uid
;
uint8_t
rank
;
/**< enum kr_rank */
uint8_t
revalidation_cnt
;
bool
cached
;
/**< whether it has been stashed to cache already */
bool
yielded
;
bool
to_wire
;
/**< whether to be put into the answer */
bool
cached
:
1
;
/**< whether it has been stashed to cache already */
bool
yielded
:
1
;
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
;
};
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)
type
=
knot_rrsig_type_covered
(
&
rr
->
rrs
,
0
);
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
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment