Subject: [Diffserv] Diffserv MIB - Dscp TC

From: "Wijnen, Bert (Bert)" <[email-masked]>
Date: Tue, 12 Dec 2000 05:35:56 +0100

One more comment on rev 06

The TC:
  Dscp ::= TEXTUAL-CONVENTION
      DISPLAY-HINT "d"
      STATUS   current
      DESCRIPTION
         "The IP header Diffserv Code-Point that may  be  used
         for  discriminating or marking a traffic stream.  The
         value  -1  ( 4294967295 for Integer32 )  is  used  to
         indicate a wildcard i.e. any value."
      SYNTAX   Integer32 (4294967295 | 0..63)

Needs change I think. An Interger32 is a signed value, and you are
trying to put the largest Unsigned32 value in this Integer to mean -1.
That is not valid. Either your base type should be Unsigned32 (in which
case you cannot speak about -1 any more). Or you should just specift -1.
So:
       SYNTAX   Integer32 (-1 | 0..63)

I think the latter is the best way to go.

Or maybe you might want two TCs, a Dscp with values 0..63 and 
another TC(say DscpValueOrAny) which would be 0..63 plus -1
and -1 would mean any Dscp value.
This would be similar to how we defined InterfaceIndex (which can only
contain a VALID IfIndex) and InterfaceIndexOrZero.

Bert

_______________________________________________
diffserv mailing list
[email-masked]
http://www1.ietf.org/mailman/listinfo/diffserv
Archive: http://www2.ietf.org/mail-archive/working-groups/diffserv/current/maillist.html