From owner-svn-src-projects@freebsd.org Fri Jan 6 09:27:29 2017 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EBF8DCA0824 for ; Fri, 6 Jan 2017 09:27:29 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BE2B618F2; Fri, 6 Jan 2017 09:27:29 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v069RSgK099812; Fri, 6 Jan 2017 09:27:28 GMT (envelope-from ngie@FreeBSD.org) Received: (from ngie@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v069RSNg099811; Fri, 6 Jan 2017 09:27:28 GMT (envelope-from ngie@FreeBSD.org) Message-Id: <201701060927.v069RSNg099811@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ngie set sender to ngie@FreeBSD.org using -f From: Ngie Cooper Date: Fri, 6 Jan 2017 09:27:28 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r311508 - projects/bsnmp-ipv6-mib/usr.sbin/bsnmpd/modules/snmp_ipv6 X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jan 2017 09:27:30 -0000 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: