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?
RS> prefix it with '0x'. Are you sure, Robert? I'd have suggested using the 'x' type as the fourth parameter: snmp_add_var(pdu, smNetPartitionConfigSubnetPrefix_oid sizeof(smNetPartitionConfigSubnetPrefix_oid)/sizeof(oid), 'x', subnet_prefix.data()); ^^^ I'm not convinced that all of the internal library routines try to interpret a leading '0x' in that way. Dave ------------------------------------------------------- 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 Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders