📄 mtetriggertable.c
字号:
read_config_read_data(ASN_OCTET_STR, line, &StorageTmp->mteTriggerObjectsOwner, &StorageTmp->mteTriggerObjectsOwnerLen); if (StorageTmp->mteTriggerObjectsOwner == NULL) { config_perror("invalid specification for mteTriggerObjectsOwner"); return; } line = read_config_read_data(ASN_OCTET_STR, line, &StorageTmp->mteTriggerObjects, &StorageTmp->mteTriggerObjectsLen); if (StorageTmp->mteTriggerObjects == NULL) { config_perror("invalid specification for mteTriggerObjects"); return; } line = read_config_read_data(ASN_INTEGER, line, &StorageTmp->mteTriggerEnabled, &tmpint); line = read_config_read_data(ASN_INTEGER, line, &StorageTmp->mteTriggerEntryStatus, &tmpint); /* * delta table */ line = read_config_read_data(ASN_OBJECT_ID, line, &StorageTmp->mteTriggerDeltaDiscontinuityID, &StorageTmp-> mteTriggerDeltaDiscontinuityIDLen); if (StorageTmp->mteTriggerDeltaDiscontinuityID == NULL) { config_perror ("invalid specification for mteTriggerDeltaDiscontinuityID"); return; } line = read_config_read_data(ASN_INTEGER, line, &StorageTmp-> mteTriggerDeltaDiscontinuityIDWildcard, &tmpint); line = read_config_read_data(ASN_INTEGER, line, &StorageTmp-> mteTriggerDeltaDiscontinuityIDType, &tmpint); /* * existence table */ line = read_config_read_data(ASN_OCTET_STR, line, &StorageTmp->mteTriggerExistenceTest, &StorageTmp->mteTriggerExistenceTestLen); if (StorageTmp->mteTriggerExistenceTest == NULL) { config_perror("invalid specification for mteTriggerExistenceTest"); return; } line = read_config_read_data(ASN_OCTET_STR, line, &StorageTmp->mteTriggerExistenceStartup, &StorageTmp->mteTriggerExistenceStartupLen); if (StorageTmp->mteTriggerExistenceStartup == NULL) { config_perror ("invalid specification for mteTriggerExistenceStartup"); return; } line = read_config_read_data(ASN_OCTET_STR, line, &StorageTmp->mteTriggerExistenceObjectsOwner, &StorageTmp-> mteTriggerExistenceObjectsOwnerLen); if (StorageTmp->mteTriggerExistenceObjectsOwner == NULL) { config_perror ("invalid specification for mteTriggerExistenceObjectsOwner"); return; } line = read_config_read_data(ASN_OCTET_STR, line, &StorageTmp->mteTriggerExistenceObjects, &StorageTmp->mteTriggerExistenceObjectsLen); if (StorageTmp->mteTriggerExistenceObjects == NULL) { config_perror ("invalid specification for mteTriggerExistenceObjects"); return; } line = read_config_read_data(ASN_OCTET_STR, line, &StorageTmp->mteTriggerExistenceEventOwner, &StorageTmp-> mteTriggerExistenceEventOwnerLen); if (StorageTmp->mteTriggerExistenceEventOwner == NULL) { config_perror ("invalid specification for mteTriggerExistenceEventOwner"); return; } line = read_config_read_data(ASN_OCTET_STR, line, &StorageTmp->mteTriggerExistenceEvent, &StorageTmp->mteTriggerExistenceEventLen); if (StorageTmp->mteTriggerExistenceEvent == NULL) { config_perror ("invalid specification for mteTriggerExistenceEvent"); return; } /* * boolean table */ line = read_config_read_data(ASN_INTEGER, line, &StorageTmp->mteTriggerBooleanComparison, &tmpint); line = read_config_read_data(ASN_INTEGER, line, &StorageTmp->mteTriggerBooleanValue, &tmpint); line = read_config_read_data(ASN_INTEGER, line, &StorageTmp->mteTriggerBooleanStartup, &tmpint); line = read_config_read_data(ASN_OCTET_STR, line, &StorageTmp->mteTriggerBooleanObjectsOwner, &StorageTmp-> mteTriggerBooleanObjectsOwnerLen); if (StorageTmp->mteTriggerBooleanObjectsOwner == NULL) { config_perror ("invalid specification for mteTriggerBooleanObjectsOwner"); return; } line = read_config_read_data(ASN_OCTET_STR, line, &StorageTmp->mteTriggerBooleanObjects, &StorageTmp->mteTriggerBooleanObjectsLen); if (StorageTmp->mteTriggerBooleanObjects == NULL) { config_perror ("invalid specification for mteTriggerBooleanObjects"); return; } line = read_config_read_data(ASN_OCTET_STR, line, &StorageTmp->mteTriggerBooleanEventOwner, &StorageTmp->mteTriggerBooleanEventOwnerLen); if (StorageTmp->mteTriggerBooleanEventOwner == NULL) { config_perror ("invalid specification for mteTriggerBooleanEventOwner"); return; } line = read_config_read_data(ASN_OCTET_STR, line, &StorageTmp->mteTriggerBooleanEvent, &StorageTmp->mteTriggerBooleanEventLen); if (StorageTmp->mteTriggerBooleanEvent == NULL) { config_perror("invalid specification for mteTriggerBooleanEvent"); return; } /* * threshold table */ line = read_config_read_data(ASN_INTEGER, line, &StorageTmp->mteTriggerThresholdStartup, &tmpint); line = read_config_read_data(ASN_INTEGER, line, &StorageTmp->mteTriggerThresholdRising, &tmpint); line = read_config_read_data(ASN_INTEGER, line, &StorageTmp->mteTriggerThresholdFalling, &tmpint); line = read_config_read_data(ASN_INTEGER, line, &StorageTmp->mteTriggerThresholdDeltaRising, &tmpint); line = read_config_read_data(ASN_INTEGER, line, &StorageTmp->mteTriggerThresholdDeltaFalling, &tmpint); line = read_config_read_data(ASN_OCTET_STR, line, &StorageTmp->mteTriggerThresholdObjectsOwner, &StorageTmp-> mteTriggerThresholdObjectsOwnerLen); if (StorageTmp->mteTriggerThresholdObjectsOwner == NULL) { config_perror ("invalid specification for mteTriggerThresholdObjectsOwner"); return; } line = read_config_read_data(ASN_OCTET_STR, line, &StorageTmp->mteTriggerThresholdObjects, &StorageTmp->mteTriggerThresholdObjectsLen); if (StorageTmp->mteTriggerThresholdObjects == NULL) { config_perror ("invalid specification for mteTriggerThresholdObjects"); return; } line = read_config_read_data(ASN_OCTET_STR, line, &StorageTmp-> mteTriggerThresholdRisingEventOwner, &StorageTmp-> mteTriggerThresholdRisingEventOwnerLen); if (StorageTmp->mteTriggerThresholdRisingEventOwner == NULL) { config_perror ("invalid specification for mteTriggerThresholdRisingEventOwner"); return; } line = read_config_read_data(ASN_OCTET_STR, line, &StorageTmp->mteTriggerThresholdRisingEvent, &StorageTmp-> mteTriggerThresholdRisingEventLen); if (StorageTmp->mteTriggerThresholdRisingEvent == NULL) { config_perror ("invalid specification for mteTriggerThresholdRisingEvent"); return; } line = read_config_read_data(ASN_OCTET_STR, line, &StorageTmp-> mteTriggerThresholdFallingEventOwner, &StorageTmp-> mteTriggerThresholdFallingEventOwnerLen); if (StorageTmp->mteTriggerThresholdFallingEventOwner == NULL) { config_perror ("invalid specification for mteTriggerThresholdFallingEventOwner"); return; } line = read_config_read_data(ASN_OCTET_STR, line, &StorageTmp->mteTriggerThresholdFallingEvent, &StorageTmp-> mteTriggerThresholdFallingEventLen); if (StorageTmp->mteTriggerThresholdFallingEvent == NULL) { config_perror ("invalid specification for mteTriggerThresholdFallingEvent"); return; } line = read_config_read_data(ASN_OCTET_STR, line, &StorageTmp-> mteTriggerThresholdDeltaRisingEventOwner, &StorageTmp-> mteTriggerThresholdDeltaRisingEventOwnerLen); if (StorageTmp->mteTriggerThresholdDeltaRisingEventOwner == NULL) { config_perror ("invalid specification for mteTriggerThresholdDeltaRisingEventOwner"); return; } line = read_config_read_data(ASN_OCTET_STR, line, &StorageTmp-> mteTriggerThresholdDeltaRisingEvent, &StorageTmp-> mteTriggerThresholdDeltaRisingEventLen); if (StorageTmp->mteTriggerThresholdDeltaRisingEvent == NULL) { config_perror ("invalid specification for mteTriggerThresholdDeltaRisingEvent"); return; } line = read_config_read_data(ASN_OCTET_STR, line, &StorageTmp-> mteTriggerThresholdDeltaFallingEventOwner, &StorageTmp-> mteTriggerThresholdDeltaFallingEventOwnerLen); if (StorageTmp->mteTriggerThresholdDeltaFallingEventOwner == NULL) { config_perror ("invalid specification for mteTriggerThresholdDeltaFallingEventOwner"); return; } line = read_config_read_data(ASN_OCTET_STR, line, &StorageTmp-> mteTriggerThresholdDeltaFallingEvent, &StorageTmp-> mteTriggerThresholdDeltaFallingEventLen); if (StorageTmp->mteTriggerThresholdDeltaFallingEvent == NULL) { config_perror ("invalid specification for mteTriggerThresholdDeltaFallingEvent"); return; } /* * local internal variables */ line = read_config_read_data(ASN_INTEGER, line, &StorageTmp->have_copied_auth_info, &tmpint); if (StorageTmp->have_copied_auth_info) { line = read_config_read_data(ASN_INTEGER, line, &StorageTmp->pdu_version, &tmpint); line = read_config_read_data(ASN_INTEGER, line, &StorageTmp->pdu_securityModel, &tmpint); line = read_config_read_data(ASN_INTEGER, line, &StorageTmp->pdu_securityLevel, &tmpint); line = read_config_read_data(ASN_OBJECT_ID, line, &tmpoid, &tmpint); if (!netsnmp_tdomain_support (tmpoid, tmpint, &StorageTmp->pdu_tDomain, &StorageTmp->pdu_tDomainLen)) { config_perror ("unsupported transport domain for mteTriggerEntry"); return; } if (tmpoid != NULL) { free(tmpoid); } /* * can be NULL? Yes. */ line = read_config_read_data(ASN_OCTET_STR, line, &(StorageTmp->pdu_transport), &StorageTmp->pdu_transportLen); line = read_config_read_data(ASN_OCTET_STR, line, &StorageTmp->pdu_community, &StorageTmp->pdu_community_len); if (StorageTmp->pdu_community == NULL) {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -