On Mon, 14 Mar 2005 15:44:38 -0500 Haizhu wrote:
HL> string subnet_prefix = "fe80000000000000"; -> should be all hex
HL> snmp_add_var(pdu, smNetPartitionConfigSubnetPrefix_oid,
HL>             sizeof(smNetPartitionConfigSubnetPrefix_oid)/sizeof(oid), 's', 
HL> subnet_prefix.data());
HL> 
HL> How can I tell snmp_add_var this is a hex value?

prefix it with '0x'.


-- 
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. 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to