Re: Re: MIB Doctor review: publishdraft-ietf-disman-remops-mib-v2-06.tx t

"Randy Presuhn" <[email protected]> Sun, 10 Jul 2005 20:44:14 -0700
Newsgroups gmane.ietf.disman
Message-ID <002501c585ca$cf3b86c0$7f1afea9@oemcomputer>
Hi -

> From: "Juergen Schoenwaelder" <[email protected]>
> To: "Juergen Quittek" <[email protected]>
> Cc: <[email protected]>
> Sent: Sunday, July 10, 2005 10:44 AM
> Subject: Re: [Disman] Re: MIB Doctor review: publishdraft-ietf-disman-remops-mib-v2-06.tx t
...
> Ah, good point. Unsigned32 (0..255) normally maps to a single octet
> unless the sender prefers to send useless leading 0s, which according
> to ASN.1/BER would be legal I think.
...

nope.  If the interesting bits are abcdefgh, then depending on whether
"a" is a 1 or a zero, the only legal encodings of the BER value part are:

"0bcdefgh"   and  "00000000 1bcdefgh" on the wire

It's the length field itself that may be encoded non-optimally.

Randy