[snmp] AsnUnsInteger64
Josh Bers
jbers at bbn.com
Tue May 27 23:14:20 BST 2008
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
More information about the snmp
mailing list