Re: Handling "BITS" data types in SNMP.xs
Wes Hardaker <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Organization | Sparta |
| Message-ID | <[email protected]> |
>>>>> On Wed, 11 Jan 2006 15:55:50 -0800, "Andrew Teklemariam" <[email protected]> said: Andrew> Does the Net-SNMP perl wrapper handle data of type "BITS" correctly? Andrew> Looking at the code in SNMP.xs __add_var_val_str function (V 5.2.2), it Andrew> seems the BITS data type is handled as a character string. If for Andrew> example, I set the field to" 'FC000000', SNMP.xs sends an 8 byte Andrew> character string to the agent. Andrew> snmp_api.c on the other hand, handles it correctly. That is bad, as Thomas said. However, I think it's actually legal... I think agent's are supposed to assume that any missing bits are 0... -- Wes Hardaker Sparta, Inc. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ 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