On Tue, 29 Mar 2005 09:17:55 +0100 Dave wrote:
DS> HL> How can I tell snmp_add_var this is a hex value?
DS> 
DS> RS> prefix it with '0x'.
DS> 
DS> Are you sure, Robert?

Nope, but it was a good guess! I would have actually looked at code if they
came back and said "that didn't work."

DS> I'd have suggested using the 'x' type as the fourth parameter:
DS> 
DS>   snmp_add_var(pdu, smNetPartitionConfigSubnetPrefix_oid               
DS> sizeof(smNetPartitionConfigSubnetPrefix_oid)/sizeof(oid),
DS>    'x', subnet_prefix.data());
DS>    ^^^
DS> 
DS> I'm not convinced that all of the internal library routines
DS> try to interpret a leading '0x' in that way.

Sigh. Some do, some don't. I can't keep track.

-- 
NOTE: messages sent directly to me, instead of the lists, will be deleted
      unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/Info/Sentarus/hamr30
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to