Hi,

It's me again. I've checked the trunk source, and found the issue fixed.
I'm apologize for false alarm and would like to suggest another small fix:

--- agent.xs    2009-11-02 15:16:42.000000000 +0300
+++ agent.xs.perl-counter64     2009-11-02 15:18:15.000000000 +0300
@@ -892,7 +892,7 @@
              else if (SvPOKp(value)) {
                  /* Might be OK - got a string, so try to convert it,
allowing base 10, octal, and hex forms */
                  stringptr = SvPV(value, stringlen);
-                 ulltmp = strtoul( stringptr, NULL, 0 );
+                 ulltmp = strtoull( stringptr, NULL, 0 );
                  if (errno == EINVAL) {
                        snmp_log(LOG_ERR, "Could not convert string to
number in setValue: '%s'", stringptr);
                        RETVAL = 0;

Best regards,
Max

On Mon, Nov 2, 2009 at 1:36 PM, Max Romanov <[email protected]> wrote:
> Hi,
>
> Writing snmp AgentX subagent in perl, I've discovered Counter64 values
> are not passed correctly from perl to C library.
> Proposed patch attached.
>
> I'm using CentOS 5.3, with net-snmp-5.3.2.2.
>
> Best regards,
> Max
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to