/* C code produced by gperf version 2.5 (GNU C++ version) */
/* Command-line: gperf -a -C -k1,8-31 -p -r -S1 -t dpiconst.gperf  */
struct DpiConst { const char *name; long val; };

#define TOTAL_KEYWORDS 103
#define MIN_WORD_LENGTH 9
#define MAX_WORD_LENGTH 48
#define MIN_HASH_VALUE 258
#define MAX_HASH_VALUE 1561
/* maximum key range = 1304, duplicates = 0 */

static unsigned int
hash (register const char *str, register int len)
{
  static const unsigned short asso_values[] =
    {
     1562, 1562, 1562, 1562, 1562, 1562, 1562, 1562, 1562, 1562,
     1562, 1562, 1562, 1562, 1562, 1562, 1562, 1562, 1562, 1562,
     1562, 1562, 1562, 1562, 1562, 1562, 1562, 1562, 1562, 1562,
     1562, 1562, 1562, 1562, 1562, 1562, 1562, 1562, 1562, 1562,
     1562, 1562, 1562, 1562, 1562, 1562, 1562, 1562, 1562,  119,
      123,   54,   91, 1562,   77, 1562, 1562, 1562, 1562, 1562,
     1562, 1562, 1562, 1562, 1562,   43,   82,   54,  107,   91,
       46,   39,   64,   80,   85,   39,  114,  103,  117,  103,
        3, 1562,   36,   35,   55,   88,    3,    9,   22,   34,
       22, 1562, 1562, 1562, 1562,   31, 1562,   36,   63,   65,
      101,   46,   12,   10,   53,   19,  116,    4,   72,   91,
        5,  119,   63,   74,   51,   20,   93,  103,   70,   95,
     1562,   79,   81, 1562, 1562, 1562, 1562, 1562,
    };
  register int hval = len;

  switch (hval)
    {
      default:
      case 31:
        hval += asso_values[str[30]];
      case 30:
        hval += asso_values[str[29]];
      case 29:
        hval += asso_values[str[28]];
      case 28:
        hval += asso_values[str[27]];
      case 27:
        hval += asso_values[str[26]];
      case 26:
        hval += asso_values[str[25]];
      case 25:
        hval += asso_values[str[24]];
      case 24:
        hval += asso_values[str[23]];
      case 23:
        hval += asso_values[str[22]];
      case 22:
        hval += asso_values[str[21]];
      case 21:
        hval += asso_values[str[20]];
      case 20:
        hval += asso_values[str[19]];
      case 19:
        hval += asso_values[str[18]];
      case 18:
        hval += asso_values[str[17]];
      case 17:
        hval += asso_values[str[16]];
      case 16:
        hval += asso_values[str[15]];
      case 15:
        hval += asso_values[str[14]];
      case 14:
        hval += asso_values[str[13]];
      case 13:
        hval += asso_values[str[12]];
      case 12:
        hval += asso_values[str[11]];
      case 11:
        hval += asso_values[str[10]];
      case 10:
        hval += asso_values[str[9]];
      case 9:
        hval += asso_values[str[8]];
      case 8:
        hval += asso_values[str[7]];
      case 7:
      case 6:
      case 5:
      case 4:
      case 3:
      case 2:
      case 1:
        hval += asso_values[str[0]];
    }
  return hval;
}

const struct DpiConst *
in_word_set (register const char *str, register int len)
{
  static const struct DpiConst wordlist[] =
    {
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"",}, {"",}, {"",}, {"",}, {"",}, {"",}, 
      {"DPI_RC_OK", DPI_RC_OK},
      {"SNMP_DPI_TRAP", SNMP_DPI_TRAP},
      {"DPI_VIEW_YES", DPI_VIEW_YES},
      {"SNMP_DPI_SET", SNMP_DPI_SET},
      {"SNMP_DPI_GET", SNMP_DPI_GET},
      {"DPI_BULK_YES", DPI_BULK_YES},
      {"DPI_RC_EOF", DPI_RC_EOF},
      {"DPI_RC_NOK", DPI_RC_NOK},
      {"DPI_VIEW_NO", DPI_VIEW_NO},
      {"SNMP_TYPE_MASK", SNMP_TYPE_MASK},
      {"DPI_BULK_NO", DPI_BULK_NO},
      {"SNMP_DPI_TRAPV1", SNMP_DPI_TRAPV1},
      {"SNMP_DPI_TRAPV2", SNMP_DPI_TRAPV2},
      {"dpiPortForTCP", dpiPortForTCP},
      {"SNMP_DPI_OPEN", SNMP_DPI_OPEN},
      {"SNMP_ERROR_genErr", SNMP_ERROR_genErr},
      {"dpiPortForUDP", dpiPortForUDP},
      {"DPI_ASCII_CSET", DPI_ASCII_CSET},
      {"SNMP_TYPE_TimeTicks", SNMP_TYPE_TimeTicks},
      {"SNMP_DPI_CLOSE", SNMP_DPI_CLOSE},
      {"DPI_NATIVE_CSET", DPI_NATIVE_CSET},
      {"DPI_RC_NO_PORT", DPI_RC_NO_PORT},
      {"SNMP_DPI_UNDO", SNMP_DPI_UNDO},
      {"SNMP_TYPE_Gauge32", SNMP_TYPE_Gauge32},
      {"SNMP_TYPE_Opaque", SNMP_TYPE_Opaque},
      {"SNMP_DPI_BUFSIZE", SNMP_DPI_BUFSIZE},
      {"SNMP_TYPE_NULL", SNMP_TYPE_NULL},
      {"SNMP_DPI_REGISTER", SNMP_DPI_REGISTER},
      {"SNMP_DPI_VERSION", SNMP_DPI_VERSION},
      {"SNMP_DPI_GETNEXT", SNMP_DPI_GETNEXT},
      {"DPI_RC_IO_ERROR", DPI_RC_IO_ERROR},
      {"SNMP_ERROR_noAccess", SNMP_ERROR_noAccess},
      {"SNMP_DPI_INFORM", SNMP_DPI_INFORM},
      {"SNMP_DPI_COMMIT", SNMP_DPI_COMMIT},
      {"SNMP_DPI_RELEASE", SNMP_DPI_RELEASE},
      {"SNMP_DPI_GETBULK", SNMP_DPI_GETBULK},
      {"SNMP_DPI_RESPONSE", SNMP_DPI_RESPONSE},
      {"SNMP_TYPE_Integer32", SNMP_TYPE_Integer32},
      {"DPI_RC_TIMEOUT", DPI_RC_TIMEOUT},
      {"SNMP_ERROR_tooBig", SNMP_ERROR_tooBig},
      {"SNMP_TYPE_IpAddress", SNMP_TYPE_IpAddress},
      {"SNMP_ERROR_badValue", SNMP_ERROR_badValue},
      {"SNMP_DPI_PROTOCOL", SNMP_DPI_PROTOCOL},
      {"SNMP_CLOSE_byManager", SNMP_CLOSE_byManager},
      {"SNMP_ERROR_noError", SNMP_ERROR_noError},
      {"SNMP_ERROR_readOnly", SNMP_ERROR_readOnly},
      {"SNMP_TYPE_UInteger32", SNMP_TYPE_UInteger32},
      {"SNMP_ERROR_wrongType", SNMP_ERROR_wrongType},
      {"SNMP_TYPE_BIT_STRING", SNMP_TYPE_BIT_STRING},
      {"SNMP_TYPE_DisplayString", SNMP_TYPE_DisplayString},
      {"SNMP_TYPE_endOfMibView", SNMP_TYPE_endOfMibView},
      {"SNMP_TYPE_NsapAddress", SNMP_TYPE_NsapAddress},
      {"SNMP_ERROR_wrongValue", SNMP_ERROR_wrongValue},
      {"SNMP_CLOSE_goingDown", SNMP_CLOSE_goingDown},
      {"SNMP_ERROR_noCreation", SNMP_ERROR_noCreation},
      {"SNMP_TYPE_Counter64", SNMP_TYPE_Counter64},
      {"SNMP_TYPE_Counter32", SNMP_TYPE_Counter32},
      {"SNMP_DPI_UNREGISTER", SNMP_DPI_UNREGISTER},
      {"SNMP_ERROR_wrongLength", SNMP_ERROR_wrongLength},
      {"SNMP_ERROR_notWritable", SNMP_ERROR_notWritable},
      {"SNMP_CLOSE_timeout", SNMP_CLOSE_timeout},
      {"SNMP_ERROR_undoFailed", SNMP_ERROR_undoFailed},
      {"SNMP_CLOSE_openError", SNMP_CLOSE_openError},
      {"SNMP_TYPE_noSuchInstance", SNMP_TYPE_noSuchInstance},
      {"SNMP_ERROR_noSuchName", SNMP_ERROR_noSuchName},
      {"SNMP_TYPE_OCTET_STRING", SNMP_TYPE_OCTET_STRING},
      {"SNMP_CLOSE_otherReason", SNMP_CLOSE_otherReason},
      {"SNMP_ERROR_wrongEncoding", SNMP_ERROR_wrongEncoding},
      {"SNMP_DPI_ARE_YOU_THERE", SNMP_DPI_ARE_YOU_THERE},
      {"SNMP_ERROR_DPI_noError", SNMP_ERROR_DPI_noError},
      {"SNMP_UNREGISTER_byManager", SNMP_UNREGISTER_byManager},
      {"SNMP_ERROR_inconsistentValue", SNMP_ERROR_inconsistentValue},
      {"SNMP_UNREGISTER_goingDown", SNMP_UNREGISTER_goingDown},
      {"SNMP_TYPE_noSuchObject", SNMP_TYPE_noSuchObject},
      {"DPI_RC_PACKET_TOO_LARGE", DPI_RC_PACKET_TOO_LARGE},
      {"SNMP_ERROR_commitFailed", SNMP_ERROR_commitFailed},
      {"SNMP_ERROR_inconsistentName", SNMP_ERROR_inconsistentName},
      {"SNMP_ERROR_DPI_notFound", SNMP_ERROR_DPI_notFound},
      {"SNMP_UNREGISTER_timeout", SNMP_UNREGISTER_timeout},
      {"SNMP_DPI_VIEW_SELECTION", SNMP_DPI_VIEW_SELECTION},
      {"SNMP_UNREGISTER_otherReason", SNMP_UNREGISTER_otherReason},
      {"SNMP_ERROR_DPI_otherError", SNMP_ERROR_DPI_otherError},
      {"DPI_RC_INVALID_HANDLE", DPI_RC_INVALID_HANDLE},
      {"SNMP_ERROR_DPI_mustOpenFirst", SNMP_ERROR_DPI_mustOpenFirst},
      {"SNMP_ERROR_DPI_higherPriorityRegistered", SNMP_ERROR_DPI_higherPriorityRegistered},
      {"SNMP_UNREGISTER_newRegistration", SNMP_UNREGISTER_newRegistration},
      {"SNMP_DPI_BULK_SELECTION", SNMP_DPI_BULK_SELECTION},
      {"DPI_RC_NO_CONNECTION", DPI_RC_NO_CONNECTION},
      {"SNMP_UNREGISTER_higherPriorityRegistered", SNMP_UNREGISTER_higherPriorityRegistered},
      {"SNMP_ERROR_DPI_alreadyRegistered", SNMP_ERROR_DPI_alreadyRegistered},
      {"SNMP_ERROR_resourceUnavailable", SNMP_ERROR_resourceUnavailable},
      {"SNMP_UNREGISTER_justUnregister", SNMP_UNREGISTER_justUnregister},
      {"SNMP_ERROR_DPI_invalidDisplayString", SNMP_ERROR_DPI_invalidDisplayString},
      {"SNMP_CLOSE_unsupportedVersion", SNMP_CLOSE_unsupportedVersion},
      {"SNMP_ERROR_DPI_characterSetSelectionNotSupported", SNMP_ERROR_DPI_characterSetSelectionNotSupported},
      {"SNMP_CLOSE_protocolError", SNMP_CLOSE_protocolError},
      {"SNMP_ERROR_DPI_duplicateSubAgentIdentifier", SNMP_ERROR_DPI_duplicateSubAgentIdentifier},
      {"SNMP_ERROR_DPI_getBulkSelectionNotSupported", SNMP_ERROR_DPI_getBulkSelectionNotSupported},
      {"SNMP_ERROR_DPI_notAuthorized", SNMP_ERROR_DPI_notAuthorized},
      {"SNMP_CLOSE_authenticationFailure", SNMP_CLOSE_authenticationFailure},
      {"SNMP_ERROR_authorizationError", SNMP_ERROR_authorizationError},
      {"SNMP_TYPE_OBJECT_IDENTIFIER", SNMP_TYPE_OBJECT_IDENTIFIER},
      {"SNMP_ERROR_DPI_viewSelectionNotSupported", SNMP_ERROR_DPI_viewSelectionNotSupported},
    };

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

      if (key <= MAX_HASH_VALUE && key >= MIN_HASH_VALUE)
        {
            {
              const struct DpiConst  *resword; 

              switch (key)
                {
                case   258:
                  resword = &wordlist[258]; break;
                case   296:
                  resword = &wordlist[259]; break;
                case   319:
                  resword = &wordlist[260]; break;
                case   339:
                  resword = &wordlist[261]; break;
                case   343:
                  resword = &wordlist[262]; break;
                case   349:
                  resword = &wordlist[263]; break;
                case   357:
                  resword = &wordlist[264]; break;
                case   376:
                  resword = &wordlist[265]; break;
                case   378:
                  resword = &wordlist[266]; break;
                case   394:
                  resword = &wordlist[267]; break;
                case   408:
                  resword = &wordlist[268]; break;
                case   420:
                  resword = &wordlist[269]; break;
                case   424:
                  resword = &wordlist[270]; break;
                case   442:
                  resword = &wordlist[271]; break;
                case   473:
                  resword = &wordlist[272]; break;
                case   512:
                  resword = &wordlist[273]; break;
                case   528:
                  resword = &wordlist[274]; break;
                case   547:
                  resword = &wordlist[275]; break;
                case   553:
                  resword = &wordlist[276]; break;
                case   557:
                  resword = &wordlist[277]; break;
                case   562:
                  resword = &wordlist[278]; break;
                case   569:
                  resword = &wordlist[279]; break;
                case   574:
                  resword = &wordlist[280]; break;
                case   588:
                  resword = &wordlist[281]; break;
                case   601:
                  resword = &wordlist[282]; break;
                case   606:
                  resword = &wordlist[283]; break;
                case   607:
                  resword = &wordlist[284]; break;
                case   626:
                  resword = &wordlist[285]; break;
                case   627:
                  resword = &wordlist[286]; break;
                case   632:
                  resword = &wordlist[287]; break;
                case   638:
                  resword = &wordlist[288]; break;
                case   643:
                  resword = &wordlist[289]; break;
                case   646:
                  resword = &wordlist[290]; break;
                case   659:
                  resword = &wordlist[291]; break;
                case   663:
                  resword = &wordlist[292]; break;
                case   670:
                  resword = &wordlist[293]; break;
                case   674:
                  resword = &wordlist[294]; break;
                case   687:
                  resword = &wordlist[295]; break;
                case   696:
                  resword = &wordlist[296]; break;
                case   700:
                  resword = &wordlist[297]; break;
                case   704:
                  resword = &wordlist[298]; break;
                case   720:
                  resword = &wordlist[299]; break;
                case   734:
                  resword = &wordlist[300]; break;
                case   744:
                  resword = &wordlist[301]; break;
                case   746:
                  resword = &wordlist[302]; break;
                case   753:
                  resword = &wordlist[303]; break;
                case   776:
                  resword = &wordlist[304]; break;
                case   784:
                  resword = &wordlist[305]; break;
                case   790:
                  resword = &wordlist[306]; break;
                case   792:
                  resword = &wordlist[307]; break;
                case   797:
                  resword = &wordlist[308]; break;
                case   799:
                  resword = &wordlist[309]; break;
                case   802:
                  resword = &wordlist[310]; break;
                case   804:
                  resword = &wordlist[311]; break;
                case   809:
                  resword = &wordlist[312]; break;
                case   818:
                  resword = &wordlist[313]; break;
                case   827:
                  resword = &wordlist[314]; break;
                case   833:
                  resword = &wordlist[315]; break;
                case   864:
                  resword = &wordlist[316]; break;
                case   869:
                  resword = &wordlist[317]; break;
                case   877:
                  resword = &wordlist[318]; break;
                case   910:
                  resword = &wordlist[319]; break;
                case   911:
                  resword = &wordlist[320]; break;
                case   914:
                  resword = &wordlist[321]; break;
                case   932:
                  resword = &wordlist[322]; break;
                case   933:
                  resword = &wordlist[323]; break;
                case   941:
                  resword = &wordlist[324]; break;
                case   960:
                  resword = &wordlist[325]; break;
                case   962:
                  resword = &wordlist[326]; break;
                case   971:
                  resword = &wordlist[327]; break;
                case   983:
                  resword = &wordlist[328]; break;
                case  1038:
                  resword = &wordlist[329]; break;
                case  1043:
                  resword = &wordlist[330]; break;
                case  1048:
                  resword = &wordlist[331]; break;
                case  1061:
                  resword = &wordlist[332]; break;
                case  1062:
                  resword = &wordlist[333]; break;
                case  1067:
                  resword = &wordlist[334]; break;
                case  1076:
                  resword = &wordlist[335]; break;
                case  1116:
                  resword = &wordlist[336]; break;
                case  1123:
                  resword = &wordlist[337]; break;
                case  1180:
                  resword = &wordlist[338]; break;
                case  1212:
                  resword = &wordlist[339]; break;
                case  1239:
                  resword = &wordlist[340]; break;
                case  1243:
                  resword = &wordlist[341]; break;
                case  1249:
                  resword = &wordlist[342]; break;
                case  1253:
                  resword = &wordlist[343]; break;
                case  1263:
                  resword = &wordlist[344]; break;
                case  1269:
                  resword = &wordlist[345]; break;
                case  1271:
                  resword = &wordlist[346]; break;
                case  1282:
                  resword = &wordlist[347]; break;
                case  1315:
                  resword = &wordlist[348]; break;
                case  1320:
                  resword = &wordlist[349]; break;
                case  1343:
                  resword = &wordlist[350]; break;
                case  1354:
                  resword = &wordlist[351]; break;
                case  1379:
                  resword = &wordlist[352]; break;
                case  1383:
                  resword = &wordlist[353]; break;
                case  1407:
                  resword = &wordlist[354]; break;
                case  1415:
                  resword = &wordlist[355]; break;
                case  1416:
                  resword = &wordlist[356]; break;
                case  1439:
                  resword = &wordlist[357]; break;
                case  1460:
                  resword = &wordlist[358]; break;
                case  1471:
                  resword = &wordlist[359]; break;
                case  1561:
                  resword = &wordlist[360]; break;
                default: return 0;
                }
              if (*str == *resword->name && !strcmp (str + 1, resword->name + 1))
                return resword;
              return 0;
            }
         }
    }
  return 0;
}
