
Hi!
I'm having a problem finding a node by the oid. After loading the mib, I'm using the following code segment:
scanf("%s", strNode); node = smiGetNode(NULL, strNode); child = smiGetNodeByOID(node->oidlen, node->oid); if (node) { printf("Node name: %s\n", node->name); } else { printf("Node not found"); }
With the input "enterprises", I'm getting the output "ccitt", which isn't even there in my mib (SNMPv2-SMI). With a mib loaded that imports this one, I can get correct output till the level of "enterprises", but below this I get the result "enterprises" for all inputs. I have verified that the node is being found correctly in the first call smiGetNode().
Thanks in advance, Mayank.
-- !! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to libsmi-request@ibr.cs.tu-bs.de. !! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.