
Hi all, 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. Thanks.
_________________________________________________________________ The new Windows Live Messenger. You don’t want to miss this. http://www.microsoft.com/windows/windowslive/messenger.aspx

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
participants (2)
-
Juergen Schoenwaelder
-
Samer Vazdekis