/* ANSI-C code produced by gperf version 3.1 */
/* Command-line: gperf --output-file src/resolve/resolved-gperf.c ../git/src/resolve/resolved-gperf.gperf  */
/* Computed positions: -k'9' */

#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
      && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
      && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
      && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
      && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
      && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
      && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
      && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
      && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
      && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
      && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
      && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
      && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
      && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
      && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
      && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
      && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
      && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
      && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
      && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
      && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
      && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
      && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
/* The character set is not based on ISO-646.  */
#error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gperf@gnu.org>."
#endif

#line 2 "../git/src/resolve/resolved-gperf.gperf"

#if __GNUC__ >= 7
_Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
#endif
#include <stddef.h>
#include "conf-parser.h"
#include "resolved-conf.h"
#include "resolved-manager.h"
#include <string.h>

#define TOTAL_KEYWORDS 14
#define MIN_WORD_LENGTH 11
#define MAX_WORD_LENGTH 33
#define MIN_HASH_VALUE 11
#define MAX_HASH_VALUE 33
/* maximum key range = 23, duplicates = 0 */

#ifdef __GNUC__
__inline
#else
#ifdef __cplusplus
inline
#endif
#endif
static unsigned int
resolved_gperf_hash (register const char *str, register size_t len)
{
  static const unsigned char asso_values[] =
    {
      34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
      34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
      34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
      34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
      34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
      34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
      34, 34, 34, 34, 34, 34, 34,  0,  0, 34,
       0, 34, 34, 34, 34, 34,  4, 10, 34, 34,
      34, 34,  0,  0, 34, 34, 34, 34, 34, 34,
      34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
      34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
      34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
      34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
      34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
      34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
      34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
      34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
      34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
      34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
      34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
      34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
      34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
      34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
      34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
      34, 34, 34, 34, 34, 34, 34, 34, 34, 34,
      34, 34, 34, 34, 34, 34
    };
  return len + asso_values[(unsigned char)str[8]];
}

const struct ConfigPerfItem *
resolved_gperf_lookup (register const char *str, register size_t len)
{
  static const struct ConfigPerfItem wordlist[] =
    {
      {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
      {(char*)0}, {(char*)0}, {(char*)0}, {(char*)0},
      {(char*)0}, {(char*)0}, {(char*)0},
#line 22 "../git/src/resolve/resolved-gperf.gperf"
      {"Resolve.DNS",                       config_parse_dns_servers,             DNS_SERVER_SYSTEM,   0},
      {(char*)0},
#line 29 "../git/src/resolve/resolved-gperf.gperf"
      {"Resolve.Cache",                     config_parse_dns_cache_mode,          DNS_CACHE_MODE_YES,  offsetof(Manager, enable_cache)},
#line 27 "../git/src/resolve/resolved-gperf.gperf"
      {"Resolve.DNSSEC",                    config_parse_dnssec_mode,             0,                   offsetof(Manager, dnssec_mode)},
#line 24 "../git/src/resolve/resolved-gperf.gperf"
      {"Resolve.Domains",                   config_parse_search_domains,          0,                   0},
      {(char*)0},
#line 25 "../git/src/resolve/resolved-gperf.gperf"
      {"Resolve.LLMNR",                     config_parse_resolve_support,         0,                   offsetof(Manager, llmnr_support)},
#line 28 "../git/src/resolve/resolved-gperf.gperf"
      {"Resolve.DNSOverTLS",                config_parse_dns_over_tls_mode,       0,                   offsetof(Manager, dns_over_tls_mode)},
#line 23 "../git/src/resolve/resolved-gperf.gperf"
      {"Resolve.FallbackDNS",               config_parse_dns_servers,             DNS_SERVER_FALLBACK, 0},
#line 31 "../git/src/resolve/resolved-gperf.gperf"
      {"Resolve.ReadEtcHosts",              config_parse_bool,                    0,                   offsetof(Manager, read_etc_hosts)},
      {(char*)0}, {(char*)0},
#line 30 "../git/src/resolve/resolved-gperf.gperf"
      {"Resolve.DNSStubListener",           config_parse_dns_stub_listener_mode,  0,                   offsetof(Manager, dns_stub_listener_mode)},
      {(char*)0},
#line 35 "../git/src/resolve/resolved-gperf.gperf"
      {"Resolve.StaleRetentionSec",         config_parse_sec,                     0,                   offsetof(Manager, stale_retention_usec)},
#line 34 "../git/src/resolve/resolved-gperf.gperf"
      {"Resolve.CacheFromLocalhost",        config_parse_bool,                    0,                   offsetof(Manager, cache_from_localhost)},
      {(char*)0},
#line 33 "../git/src/resolve/resolved-gperf.gperf"
      {"Resolve.DNSStubListenerExtra",      config_parse_dns_stub_listener_extra, 0,                   offsetof(Manager, dns_extra_stub_listeners)},
      {(char*)0},
#line 26 "../git/src/resolve/resolved-gperf.gperf"
      {"Resolve.MulticastDNS",              config_parse_resolve_support,         0,                   offsetof(Manager, mdns_support)},
      {(char*)0}, {(char*)0},
#line 32 "../git/src/resolve/resolved-gperf.gperf"
      {"Resolve.ResolveUnicastSingleLabel", config_parse_bool,                    0,                   offsetof(Manager, resolve_unicast_single_label)}
    };

  if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
    {
      register unsigned int key = resolved_gperf_hash (str, len);

      if (key <= MAX_HASH_VALUE)
        {
          register const char *s = wordlist[key].section_and_lvalue;

          if (s && *str == *s && !strcmp (str + 1, s + 1))
            return &wordlist[key];
        }
    }
  return 0;
}
