Date: Fri, 6 Jan 2017 09:27:28 +0000 (UTC) From: Ngie Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r311508 - projects/bsnmp-ipv6-mib/usr.sbin/bsnmpd/modules/snmp_ipv6 Message-ID: <201701060927.v069RSNg099811@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Fri Jan 6 09:27:28 2017 New Revision: 311508 URL: https://svnweb.freebsd.org/changeset/base/311508 Log: Fill in stub for LEAF_ipv6IfTableLastChange a bit more Modified: projects/bsnmp-ipv6-mib/usr.sbin/bsnmpd/modules/snmp_ipv6/ipv6.c Modified: projects/bsnmp-ipv6-mib/usr.sbin/bsnmpd/modules/snmp_ipv6/ipv6.c ============================================================================== --- projects/bsnmp-ipv6-mib/usr.sbin/bsnmpd/modules/snmp_ipv6/ipv6.c Fri Jan 6 08:44:47 2017 (r311507) +++ projects/bsnmp-ipv6-mib/usr.sbin/bsnmpd/modules/snmp_ipv6/ipv6.c Fri Jan 6 09:27:28 2017 (r311508) @@ -39,6 +39,8 @@ static struct lmodule *module; static const struct asn_oid oid_ipv6MIB = OIDX_ipv6MIB; +uint64_t mib_ipv6_ipv6IfTableLastChange; + static u_int ipv6_reg; int @@ -81,8 +83,11 @@ op_ipv6MIBObjects(struct snmp_context *c break; case LEAF_ipv6IfTableLastChange: { - /* XXX (ngie): this needs to be implemented */ - value->v.uint32 = 0; + if (mib_ipv6_ipv6IfTableLastChange > start_tick) + value->v.uint32 = + mib_ipv6_ipv6IfTableLastChange - start_tick; + else + value->v.uint32 = 0; break; } case LEAF_ipv6Interfaces:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701060927.v069RSNg099811>