diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2016-03-05 19:18:07 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2016-03-05 19:18:07 +0000 |
commit | 5bcd892e61c20957144a1786050eaecd6a8ad94e (patch) | |
tree | 36ee205d83b0e684b78dc69ccfeb27bcf0521aea /util/config_file.h | |
parent | e24c5f9706c7df9bbd9a49f3a6d2dddb9e80b480 (diff) | |
download | src-5bcd892e61c20957144a1786050eaecd6a8ad94e.tar.gz src-5bcd892e61c20957144a1786050eaecd6a8ad94e.zip |
Notes
Diffstat (limited to 'util/config_file.h')
-rw-r--r-- | util/config_file.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/util/config_file.h b/util/config_file.h index c758d647550e..ef823fb88d3a 100644 --- a/util/config_file.h +++ b/util/config_file.h @@ -78,6 +78,10 @@ struct config_file { int do_tcp; /** tcp upstream queries (no UDP upstream queries) */ int tcp_upstream; + /** maximum segment size of tcp socket which queries are answered */ + int tcp_mss; + /** maximum segment size of tcp socket for outgoing queries */ + int outgoing_tcp_mss; /** private key file for dnstcp-ssl service (enabled if not NULL) */ char* ssl_service_key; @@ -556,6 +560,17 @@ int cfg_strlist_insert(struct config_strlist** head, char* item); int cfg_str2list_insert(struct config_str2list** head, char* item, char* i2); /** + * Find stub in config list, also returns prevptr (for deletion). + * @param pp: call routine with pointer to a pointer to the start of the list, + * if the stub is found, on exit, the value contains a pointer to the + * next pointer that points to the found element (or to the list start + * pointer if it is the first element). + * @param nm: name of stub to find. + * @return: pointer to config_stub if found, or NULL if not found. + */ +struct config_stub* cfg_stub_find(struct config_stub*** pp, const char* nm); + +/** * Delete items in config string list. * @param list: list. */ @@ -568,6 +583,12 @@ void config_delstrlist(struct config_strlist* list); void config_deldblstrlist(struct config_str2list* list); /** + * Delete a stub item + * @param p: stub item + */ +void config_delstub(struct config_stub* p); + +/** * Delete items in config stub list. * @param list: list. */ |