DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Developing SMUX peers for SNMP agents

Objects

MIB objects are modeled by the OT (Object Type) structure:

typedef struct object_type { char *ot_text; /* OBJECT DESCRIPTOR */ char *ot_id; /* OBJECT IDENTIFIER */ OID ot_name; /* .. */

OS ot_syntax; /* SYNTAX */

int ot_access; /* ACCESS */ #define OT_NONE 0x00 #define OT_RDONLY 0x01 #define OT_RDWRITE 0x02

int ot_status; /* STATUS */ #define OT_OBSOLETE 0x00 #define OT_MANDATORY 0x01 #define OT_OPTIONAL 0x02 #define OT_DEPRECATED 0x03

... } object_type, *OT; #define NULLOT ((OT) 0)

There are many routines to manipulate MIB objects; these are described in smux_util(SLIB).
Next topic: Instances
Previous topic: IPAddress and NetworkAddress

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003