Lines Matching defs:newPhysEntry
516 allocPhysicalEntry(int physidx, entPhysicalEntry_t * newPhysEntry)
532 if (newPhysEntry->entPhysicalDescr == NULL)
535 if (newPhysEntry->entPhysicalVendorType == NULL) {
536 newPhysEntry->entPhysicalVendorType = zerooid;
537 newPhysEntry->entPhysicalVendorTypeSize = sizeof(zerooid);
540 if (newPhysEntry->entPhysicalName == NULL)
541 newPhysEntry->entPhysicalName = emptystring;
542 if (newPhysEntry->entPhysicalHardwareRev == NULL)
543 newPhysEntry->entPhysicalHardwareRev = emptystring;
544 if (newPhysEntry->entPhysicalFirmwareRev == NULL)
545 newPhysEntry->entPhysicalFirmwareRev = emptystring;
546 if (newPhysEntry->entPhysicalSoftwareRev == NULL)
547 newPhysEntry->entPhysicalSoftwareRev = emptystring;
548 if (newPhysEntry->entPhysicalSerialNum == NULL)
549 newPhysEntry->entPhysicalSerialNum = emptystring;
550 if (newPhysEntry->entPhysicalMfgName == NULL)
551 newPhysEntry->entPhysicalMfgName = emptystring;
552 if (newPhysEntry->entPhysicalModelName == NULL)
553 newPhysEntry->entPhysicalModelName = emptystring;
554 if (newPhysEntry->entPhysicalAlias == NULL)
555 newPhysEntry->entPhysicalAlias = emptystring;
556 if (newPhysEntry->entPhysicalAssetID == NULL)
557 newPhysEntry->entPhysicalAssetID = emptystring;
568 if (newPhysEntry->entPhysicalClass < ENTPHYSICAL_CLASS_OTHER || newPhysEntry->entPhysicalClass > ENTPHYSICAL_CLASS_STACK) {
576 if (newPhysEntry->entPhysicalParentRelPos < -1 || newPhysEntry->entPhysicalParentRelPos > MAX_ENTITY_INDEX)
578 if (newPhysEntry->entPhysicalContainedIn == 0 && newPhysEntry->entPhysicalParentRelPos != -1)
585 if (newPhysEntry->entPhysicalParentRelPos == -1
586 && newPhysEntry->entPhysicalContainedIn != 0)
593 if ((newPhysEntry->entPhysicalContainedIn < 0 || newPhysEntry->entPhysicalContainedIn > MAX_ENTITY_INDEX)) {
596 } else if (newPhysEntry->entPhysicalContainedIn != 0 && getPhysicalTableEntry(newPhysEntry->entPhysicalContainedIn) == NULL) {
597 /* If the intended parent (newPhysEntry->entPhysicalContainedIn) is */
607 if (strlen(newPhysEntry->entPhysicalDescr) > 255)
611 if (strlen(newPhysEntry->entPhysicalName) > 255)
615 if (strlen(newPhysEntry->entPhysicalHardwareRev) > 255)
619 if (strlen(newPhysEntry->entPhysicalFirmwareRev) > 255)
623 if (strlen(newPhysEntry->entPhysicalSoftwareRev) > 255)
627 if (strlen(newPhysEntry->entPhysicalSerialNum) > 32)
631 if (strlen(newPhysEntry->entPhysicalMfgName) > 255)
635 if (strlen(newPhysEntry->entPhysicalModelName) > 255)
639 if (strlen(newPhysEntry->entPhysicalAlias) > 32)
643 if (strlen(newPhysEntry->entPhysicalAssetID) > 32)
647 if (newPhysEntry->entPhysicalIsFRU < MIB_TRUE || newPhysEntry->entPhysicalIsFRU > MIB_FALSE)
659 physent->entPhysicalDescr = strdup(newPhysEntry->entPhysicalDescr);
668 malloc(newPhysEntry->entPhysicalVendorTypeSize);
679 newPhysEntry->entPhysicalVendorType,
680 newPhysEntry->entPhysicalVendorTypeSize);
682 newPhysEntry->entPhysicalVendorTypeSize;
684 physent->entPhysicalContainedIn = newPhysEntry->entPhysicalContainedIn;
685 physent->entPhysicalClass = newPhysEntry->entPhysicalClass;
687 newPhysEntry->entPhysicalParentRelPos;
688 physent->entPhysicalName = strdup(newPhysEntry->entPhysicalName);
698 strdup(newPhysEntry->entPhysicalHardwareRev);
709 strdup(newPhysEntry->entPhysicalFirmwareRev);
721 strdup(newPhysEntry->entPhysicalSoftwareRev);
734 strdup(newPhysEntry->entPhysicalSerialNum);
748 strdup(newPhysEntry->entPhysicalMfgName);
763 strdup(newPhysEntry->entPhysicalModelName);
779 strdup(newPhysEntry->entPhysicalAlias);
796 strdup(newPhysEntry->entPhysicalAssetID);
815 physent->entPhysicalIsFRU = newPhysEntry->entPhysicalIsFRU;