When I check the snoop pf the packets, i had confusion about the
encoding of the length integer and integer value in the OID. For
length it is said as 82 00 3E it means that next two bytes gives the
length of the packet. Then in the OID the integer value is given as
94 78 for 2680. it means that (0x14 *128) + 0x78 = 2680. now my doubt
is both the calculations are some or it has different method to
calculate.
Thanks in advance
Thanks,
Prakash
> When I check the snoop pf the packets, i had confusion about the
> encoding of the length integer and integer value in the OID. For
> length it is said as 82 00 3E it means that next two bytes gives the
> length of the packet. Then in the OID the integer value is given as
> 94 78 for 2680. it means that (0x14 *128) + 0x78 = 2680. now my doubt
> is both the calculations are some or it has different method to
> calculate.
An INTEGER is an INTEGER and an OBJECT IDENTIFIER is an OBJECT
IDENTIFIER. Search for the Basic Encoding Rules for these ASN.1
base types.
/js
--
Juergen Schoenwaelder Jacobs University Bremen gGmbH
Phone: +49 421 200 3587 Campus Ring 1, 28759 Bremen, Germany
Fax: +49 421 200 3103 <http://www.jacobs-university.de/>