
28 Jan
2009
28 Jan
'09
11:48 p.m.
On Wed, Jan 28, 2009 at 05:34:49PM -0500, Samer Vazdekis wrote:
When I retrieve a node, with smiGetNode (), I get the suboid. Is there a way to get the full oid?. I'm trying to get the OID from a node name.
To quote from the smiGetNode(3) manual page:
SmiNode *smiGetNode(SmiModule *smiModulePtr, char *node);
typedef struct SmiNode { SmiIdentifier name; int oidlen; SmiSubid *oid; /* array of length oidlen */ /* stuff not important here */ }
The smiGetNode() function returns a pointer to an SmiNode and the member oid of this structure contains an array of size oidlen of subids.
/js
--
Juergen Schoenwaelder Jacobs University Bremen gGmbH
Phone: +49 421 200 3587 Campus Ring 1, 28759 Bremen, Germany
Fax: +49 421 200 3103 http://www.jacobs-university.de/