Hate to reply to my own message, but I've looked at this a little closer...

Really the ASN1_GAUGE type is what I want here. But I think the code
in snmpsend.pas breaks for values > High(Integer).

If you look in TSNMPRec.EncodeBuf:

ASN1_COUNTER, ASN1_GAUGE, ASN1_TIMETICKS:
 s := ASNObject(MibToID(SNMPMib.OID), ASN1_OBJID) +
   ASNObject(ASNEncUInt(StrToIntDef(SNMPMib.Value, 0)), SNMPMib.ValueType);

The StrToIntDef will return '0' for any number > 2147483647, which
basically makes it impossible for you to really use the GAUGE type
with its full intended range.

Am I missing something?

-SG

-- 
Good news, everyone!

Seth Grover
sethdgrover[at]gmail[dot]com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to