BER

2009-07-22 Thread pch0317
Hi

I have problem with decoding packet.
How to correctly decode this few byte:
43 04 39 D0 DB 06 (Hex)
I know that 43 is the type of time ticks, 04 is length, but how to
decode the rest.
It should be about 96xxx.

Thanks
pch0317

--
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: BER

2009-07-22 Thread Dave Shield
2009/7/22 pch0317 pch0...@gmail.com:
 I have problem with decoding packet.
 How to correctly decode this few byte:
 43 04 39 D0 DB 06 (Hex)
 I know that 43 is the type of time ticks, 04 is length, but how to
 decode the rest.

  39 d0 db 06 (hex) = 969988870 (decimal)

(
3 * 16 )
   + 9 ) * 16 )
   + 13 ) * 16 )
   + 0 ) * 16 )
+ 13 ) * 16)
   + 11 ) * 16)
   + 0 ) * 16)
  +6

Dave

--
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: BER

2009-07-22 Thread pch0317
Dave Shield wrote:
 2009/7/22 pch0317 pch0...@gmail.com:
   
 I have problem with decoding packet.
 How to correctly decode this few byte:
 43 04 39 D0 DB 06 (Hex)
 I know that 43 is the type of time ticks, 04 is length, but how to
 decode the rest.
 

   39 d0 db 06 (hex) = 969988870 (decimal)

 (
 3 * 16 )
+ 9 ) * 16 )
+ 13 ) * 16 )
+ 0 ) * 16 )
 + 13 ) * 16)
+ 11 ) * 16)
+ 0 ) * 16)
   +6

 Dave

   
Thanks Dave

--
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users