
Taken from a thread on mibs@ops.ietf.org so that it does not get lost. The libsmi does not complain on constructions like the following:
sFlowCollectorAddress OBJECT-TYPE SYNTAX InetAddress MAX-ACCESS read-write STATUS current DESCRIPTION "The IP address of the sFlow collector. If set to 0.0.0.0 all sampling is disabled." DEFVAL { "0.0.0.0" } ::= { sFlowEntry 9 }
[This is taken from the SFLOW-MIB published in RFC 3176.]
In general, I am not sure how smart libsmi checks DEFVAL values against the type constraints. But since libsmi has some build-in knowledge of well known types such as InetAddress, it might be able to at least detect some special cases like this one.
[Frank, it is fine to just add this to one of these TODO lists. ;-]
/js