Sending signed values problem
"corvace.fabrizio--- via Net-snmp-users" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hello, I'm currently struggling with a data problem. I have a system where i have to SET a value, the value is of type Integer (-32768.32767). When sending a value over 255 i have no problem with sign, if i scan with wireshark i see a transmission of ASN type 2(Integer) with 2 bytes of data, and the data is correctly sent with sign. But whenever i try to send a value that is less that 256, therefore fits in a byte, the transmission is still of type 2, but it sends out one single byte of data, thus cutting out the range from -129 to -255 and from +128 to +255. I would have thought that since the OID is of type Integer (explicitly 16bit) the data would still have been sent as 2bytes. I tried looking for a way of forcing 2 byte data send, but with no luck. Am i missing something? Thanks, Fabrizio ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users