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
+9
View File
@@ -254,6 +254,15 @@ struct edns_option {
uint8_t* opt_data;
};
/**
* Search through an EDNS list to find if the specified option.
* @param option: The EDNS list which we search in
* @param code: the option code that we search for
* @return: returns the option if it is there, and NULL when it is not
*/
struct edns_option* edns_list_get_option(struct edns_option* option, uint16_t code);
/**
* Obtain size in the packet of an rr type, that is before dname type.
* Do TYPE_DNAME, and type STR, yourself. Gives size for most regular types.