store complete cookie when receiving from downstream. Add function through search through an edns_option list

This commit is contained in:
TCY16
2022-05-19 13:24:00 +02:00
parent 23e04d7f39
commit 44af84dfc9
6 changed files with 97 additions and 17 deletions
+13
View File
@@ -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)
{