
24 Aug
2007
24 Aug
'07
10:42 a.m.
Hi Luis!
Luis EG Ontanon wrote:
I haven't been able to figure out how to obtain the fixed length of a non-implied object string index element given:
elNode = smiGetElementNode(smiElementPtr) && elType = smiGetNodeType(elNode) && elType->basetype == SMI_BASETYPE_OCTETSTRING
Length restrictions for strings are stored in smiRanges. Use smiGetFirstRange( smiTypePtr ) / smiGetNextRange( smiRangePtr ) to retrieve this information. In case of a fixed-length string there should be only one smiRange, and within this smiRange struct, minvalue and maxvalue should be equal. When dealing with non-implied types, also have a look at the ranges of the parent type (smiGetParentType( smiTypePtr )).
Best regards, Torsten
--
TU Braunschweig, Institut für Betriebssysteme und Rechnerverbund
Mühlenpfordtstr. 23 Phone: +49 531 391 3285
38106 Braunschweig, Germany Fax: +49 531 391 5936
http://www.ibr.cs.tu-bs.de/ Email: tklie@ibr.cs.tu-bs.de