Lines Matching defs:zPhysicalEntry

214     entPhysicalEntry_t *zPhysicalEntry;
229 zPhysicalEntry = (entPhysicalEntry_t *) netsnmp_extract_iterator_context(request);
230 if ((zPhysicalEntry==NULL)||(zPhysicalEntry->entPhysicalIndex <= 0) ) {
258 snmp_set_var_typed_value(var, ASN_OCTET_STR, (u_char *) zPhysicalEntry->entPhysicalDescr, strlen(zPhysicalEntry->entPhysicalDescr));
262 snmp_set_var_typed_value(var, ASN_OBJECT_ID, (u_char *) zPhysicalEntry->entPhysicalVendorType, zPhysicalEntry->entPhysicalVendorTypeSize);
266 snmp_set_var_typed_value(var, ASN_INTEGER, (u_char *)&zPhysicalEntry->entPhysicalContainedIn, sizeof(zPhysicalEntry->entPhysicalContainedIn));
270 snmp_set_var_typed_value(var, ASN_INTEGER, (u_char *)&zPhysicalEntry->entPhysicalClass, sizeof(zPhysicalEntry->entPhysicalClass));
274 snmp_set_var_typed_value(var, ASN_INTEGER, (u_char *)&zPhysicalEntry->entPhysicalParentRelPos, sizeof(zPhysicalEntry->entPhysicalParentRelPos));
278 snmp_set_var_typed_value(var, ASN_OCTET_STR, (u_char *) zPhysicalEntry->entPhysicalName, strlen(zPhysicalEntry->entPhysicalName));
282 snmp_set_var_typed_value(var, ASN_OCTET_STR, (u_char *) zPhysicalEntry->entPhysicalHardwareRev, strlen(zPhysicalEntry->entPhysicalHardwareRev));
286 snmp_set_var_typed_value(var, ASN_OCTET_STR, (u_char *) zPhysicalEntry->entPhysicalFirmwareRev, strlen(zPhysicalEntry->entPhysicalFirmwareRev));
290 snmp_set_var_typed_value(var, ASN_OCTET_STR, (u_char *) zPhysicalEntry->entPhysicalSoftwareRev, strlen(zPhysicalEntry->entPhysicalSoftwareRev));
294 snmp_set_var_typed_value(var, ASN_OCTET_STR, (u_char *) zPhysicalEntry->entPhysicalSerialNum, strlen(zPhysicalEntry->entPhysicalSerialNum));
298 snmp_set_var_typed_value(var, ASN_OCTET_STR, (u_char *) zPhysicalEntry->entPhysicalMfgName, strlen(zPhysicalEntry->entPhysicalMfgName));
302 snmp_set_var_typed_value(var, ASN_OCTET_STR, (u_char *) zPhysicalEntry->entPhysicalModelName, strlen(zPhysicalEntry->entPhysicalModelName));
306 snmp_set_var_typed_value(var, ASN_OCTET_STR, (u_char *) zPhysicalEntry->entPhysicalAlias, strlen(zPhysicalEntry->entPhysicalAlias));
310 snmp_set_var_typed_value(var, ASN_OCTET_STR, (u_char *) zPhysicalEntry->entPhysicalAssetID, strlen(zPhysicalEntry->entPhysicalAssetID));
314 snmp_set_var_typed_value(var, ASN_INTEGER, (u_char *) &zPhysicalEntry->entPhysicalIsFRU, sizeof(zPhysicalEntry->entPhysicalIsFRU));
377 zOldentPhySerialNum = strdup(zPhysicalEntry->entPhysicalSerialNum);
386 zOldentPhyAlias = strdup(zPhysicalEntry->entPhysicalAlias);
395 zOldentPhyAssetId = strdup(zPhysicalEntry->entPhysicalAssetID);
429 free (zPhysicalEntry->entPhysicalSerialNum);
430 zPhysicalEntry->entPhysicalSerialNum = (char *)malloc(sizeof(char) * (var->val_len + 1));
431 if (zPhysicalEntry->entPhysicalSerialNum == NULL)
434 strncpy(zPhysicalEntry->entPhysicalSerialNum, (const char *)var->val.string, var->val_len);
435 zPhysicalEntry->entPhysicalSerialNum[var->val_len] = 0;
439 free (zPhysicalEntry->entPhysicalAlias);
440 zPhysicalEntry->entPhysicalAlias = (char *)malloc(sizeof(char) * (var->val_len + 1));
441 if (zPhysicalEntry->entPhysicalAlias == NULL)
444 strncpy(zPhysicalEntry->entPhysicalAlias, (const char *)var->val.string, var->val_len);
445 zPhysicalEntry->entPhysicalAlias[var->val_len] = 0;
449 free (zPhysicalEntry->entPhysicalAssetID);
450 zPhysicalEntry->entPhysicalAssetID = (char *)malloc(sizeof(char) * (var->val_len + 1));
451 if (zPhysicalEntry->entPhysicalAssetID == NULL)
454 strncpy(zPhysicalEntry->entPhysicalAssetID, (const char *)var->val.string, var->val_len);
455 zPhysicalEntry->entPhysicalAssetID[var->val_len] = 0;
483 free(zPhysicalEntry->entPhysicalSerialNum);
485 zPhysicalEntry->entPhysicalSerialNum = zentPhySerialNum;
488 free(zPhysicalEntry->entPhysicalAlias);
490 zPhysicalEntry->entPhysicalAlias = zentPhyAlias;
493 free(zPhysicalEntry->entPhysicalAssetID);
495 zPhysicalEntry->entPhysicalAssetID = zentPhyAssetId;