[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 16 bit numbers
>>>>> Jeff Parker writes:
Jeff> What is the prefered way to describe a 16 bit unsigned number?
Jeff> SNMPv2-SMI does not define Unsigned16. Is there anything better
Jeff> than to use an octet string of length 2?
Unsigned16 ::= TEXTUAL-CONVENTION
STATUS current
DESCRIPTION
"An Unsigned32 further restricted to 16 Bits. Note that
the ASN.1 BER encoding may still require 24 Bits for
some values."
SYNTAX Unsigned32 (0..65535)
The InetPortNumber (RFC 3291) is for example defined in this way.
/js
--
Juergen Schoenwaelder <http://www.informatik.uni-osnabrueck.de/schoenw/>