Trap MIB strangeness

Keith Dart (kdart@cisco.com)
Tue, 27 May 1997 21:33:47 -0700 (PDT)

I was having some trouble including some mib files from Cisco (*.my) into
tkined. It can't parse the trap entries. I get messages like this:

/usr/lib/tnm2.1.5/site/autoloadmibs/CISCO-FLASH-MIB-V1SMI.my: no parent
ciscoFlashMIBTrapPrefixTraps for node ciscoFlashCopyCompletionTrap

However, there is a "ciscoFlashMIBTrapPrefix" entry. After investigating
this, I found the culprit in the source file "tnmMibParser.c":

case ENTERPRISE: {
if ((syntax = ReadKeyword(fp, keyword)) != LABEL) {
fprintf(stderr, "unable to parse ENTERPRISE %s\n", keyword);
return NULL;
}
enterprise = ckstrdup(keyword);
nodePtr->parentName = ckalloc(strlen(enterprise) + 8);
strcpy(nodePtr->parentName, enterprise);
==> strcat(nodePtr->parentName, "Traps");
break;
}

This is appending the string "Traps" to the mib entry! Can anyone explain
why this is necessary?

Thanks!

============================================================================
Keith Dart, Network Systems Engineer email: kdart@ins.com
International Network Services
Current client: kdart@cisco.com
Cisco Systems, Access Business Unit pager: +1.800.467.1467
Access DevTest/Solution Testing phone: +1.408.527.1391
fax: +1.408.527.3778
=---------------------------------------------------------------------------
Linux: Computing without limits.
============================================================================

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.