[snmp] AsnUnsInteger64
Tim Panton
thp at westhawk.co.uk
Wed May 28 10:19:57 BST 2008
Yes, you are right - A while back we went through changing all the
UnsignedInt32's to be stored as long.
At the time I decided not to do the 64's as it would break the ability
to use the stack in J2ME.
(CLDC) as it didn't have any of the BigInteger classes.
Since (as far as I'm aware) no one is using the stack on J2ME I guess
we should fix it.
Tim.
On 28 May 2008, at 03:14, Josh Bers wrote:
> Yes, for unsigned 32 , however, I am talking about unsigned 64 bit
> integers,
> hence the title of my email. This is for HC counters in the ifXTable
> for
> example... you can probably fake it with long's however, it would be
> better
> to use BigInteger or the like...
>
> Josh
>
> -----Original Message-----
> From: snmp-bounces at snmp.westhawk.co.uk
> [mailto:snmp-bounces at snmp.westhawk.co.uk] On Behalf Of Andrew Chandler
> Sent: Tuesday, May 27, 2008 8:51 PM
> To: 'List for discussion of the Westhawk SNMP stack'
> Subject: RE: [snmp] AsnUnsInteger64
>
> Isn't Unsigned Int 32 bits? If so its below the threshold that
> would cause
> negative values on the long as you have 63 bits before the sign bit
> on the
> signed long.
>
> -----Original Message-----
> From: snmp-bounces at snmp.westhawk.co.uk
> [mailto:snmp-bounces at snmp.westhawk.co.uk] On Behalf Of Josh Bers
> Sent: Tuesday, May 27, 2008 7:06 PM
> To: 'List for discussion of the Westhawk SNMP stack'
> Subject: [snmp] AsnUnsInteger64
>
> I do not understand how you can use a long (64 byte SIGNED value) to
> represent the unsigned values.. it will have the wrong sign for half
> the
> range of the values. it's not clear that you can create an
> AsnUnsInteger
> correctly for the (negative) values.
>
>
>
> Josh
>
>
>
> Josh Bers
>
> Senior Engineer, Mobile Networking Systems
>
> BBN Technologies
>
> web: www.bbn.com ph: (617) 873-4262 fax: (617) 873-4523
>
>
>
> _______________________________________________
> snmp mailing list
> snmp at snmp.westhawk.co.uk
> http://snmp.westhawk.co.uk/mailman/listinfo/snmp
>
> --
> This message has been scanned for viruses and dangerous content by
> MailScanner, and is believed to be clean.
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> _______________________________________________
> snmp mailing list
> snmp at snmp.westhawk.co.uk
> http://snmp.westhawk.co.uk/mailman/listinfo/snmp
>
>
> _______________________________________________
> snmp mailing list
> snmp at snmp.westhawk.co.uk
> http://snmp.westhawk.co.uk/mailman/listinfo/snmp
More information about the snmp
mailing list