Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 20db51d70e6b59a061db97ce9b89c771 > files > 98

net-snmp-5.3.2.2-14.el5.src.rpm

607074:  [6.0] snmpwalk reports an incorrect result of ipv6InterfaceForwarding

Source: upstream, SVN rev. 19082

Index: net-snmp/agent/mibgroup/ip-mib/ipv6InterfaceTable/ipv6InterfaceTable.c
===================================================================
--- net-snmp/agent/mibgroup/ip-mib/ipv6InterfaceTable/ipv6InterfaceTable.c	(revision 19081)
+++ net-snmp/agent/mibgroup/ip-mib/ipv6InterfaceTable/ipv6InterfaceTable.c	(revision 19082)
@@ -687,7 +687,7 @@
      * copy (* ipv6InterfaceForwarding_val_ptr ) from rowreq_ctx->data
      */
     (*ipv6InterfaceForwarding_val_ptr) =
-        rowreq_ctx->data.ipv6InterfaceForwarding;
+        (rowreq_ctx->data.ipv6InterfaceForwarding) ? 1 : 2;
 
     return MFD_SUCCESS;
 }                               /* ipv6InterfaceForwarding_get */