mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-22 17:54:57 +02:00
store complete cookie when receiving from downstream. Add function through search through an edns_option list
This commit is contained in:
@@ -597,6 +597,19 @@ parse_query_section(sldns_buffer* pkt, struct msg_parse* msg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct edns_option*
|
||||
edns_list_get_option(struct edns_option* option, uint16_t code)
|
||||
{
|
||||
while (option) {
|
||||
if (option->opt_code == code) {
|
||||
return option;
|
||||
}
|
||||
|
||||
option = option->next;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
size_t
|
||||
get_rdf_size(sldns_rdf_type rdf)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user