
HI,
Actually, the range for the object ipCidrRouteTo should be 0..255, since the the TOS field in IPv4 is only 8 bits wide. The same holds true for index object ipForwardPolicy.
At 06:02 PM 12/4/2001 +0100, Frank Strauss wrote:
Hi!
Vivekanandan> When Iam compiling Ip-forward.mib (Rfc:2096), using Vivekanandan> smilint 0.2.6, I get the following error message:
index element 'ipCidrRouteTos' of row 'ipCidrRouteEntry' must have a range restriction.
Vivekanandan> Whether it is mandatory to impose a range restriction on Vivekanandan> all index elements of a table ??? If so, can you please Vivekanandan> let me know where this has been mentioned in any Rfc.
There are two rules that affect restrictions on index objects that are a bit tricky and become clear when you look at the restrictions on OID values:
(a) The length of OIDs (including instance identifiers) must not exceed 128 sub-identifiers. Therefore, objects of type OBJECT IDENTIFIERS or OCTET STRING can cause problems when used as index objects.
(b) The value of each sub-identifier must be in the range 0 .. 2^32-1. Hence, objects that allow negitive values can cause problems when used as index objects.
Here, rule (b) is the problem. ipCidrRouteTos is of type Integer32 without a range restrictions, i.e., it's instances may represent a negative value. It should have been defined to be of type Unsigned32 right from the beginning or it should be restricted to `SYNTAX Integer32 (0..2147483647)'.
-frank
Regards, /david t. perkins
-- !! This message is brought to you via the `libsmi' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to libsmi-request@ibr.cs.tu-bs.de. !! See http://www.ibr.cs.tu-bs.de/projects/libsmi/ for more information.