* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: lwres.h,v 1.5 2024/08/14 17:37:40 florian Exp $ */
+/* $Id: lwres.h,v 1.6 2024/08/14 17:38:57 florian Exp $ */
#ifndef LWRES_LWRES_H
#define LWRES_LWRES_H 1
char *search[LWRES_CONFMAXSEARCH];
uint8_t searchnxt; /*%< index for next free slot */
- uint8_t resdebug; /*%< non-zero if 'options debug' set */
uint8_t ndots; /*%< set to n in 'options ndots:n' */
- uint8_t no_tld_query; /*%< non-zero if 'options no_tld_query' */
int flags;
} lwres_conf_t;
confdata->nsnext = 0;
confdata->domainname = NULL;
confdata->searchnxt = 0;
- confdata->resdebug = 0;
confdata->ndots = 1;
- confdata->no_tld_query = 0;
confdata->flags = lwresflags;
for (i = 0; i < LWRES_CONFMAXNAMESERVERS; i++)
confdata->nsnext = 0;
confdata->domainname = NULL;
confdata->searchnxt = 0;
- confdata->resdebug = 0;
confdata->ndots = 1;
- confdata->no_tld_query = 0;
}
static lwres_result_t
return (LWRES_R_FAILURE); /* Empty line after keyword. */
while (strlen(word) > 0U) {
- if (strcmp("debug", word) == 0) {
- confdata->resdebug = 1;
- } else if (strcmp("no_tld_query", word) == 0) {
- confdata->no_tld_query = 1;
- } else if (strncmp("ndots:", word, 6) == 0) {
+ if (strncmp("ndots:", word, 6) == 0) {
ndots = strtol(word + 6, &p, 10);
if (*p != '\0') /* Bad string. */
return (LWRES_R_FAILURE);