From nobody@FreeBSD.org  Tue Mar 24 09:07:41 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id B3215106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 24 Mar 2009 09:07:41 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id A23A28FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 24 Mar 2009 09:07:41 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n2O97eKl017383
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 24 Mar 2009 09:07:40 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n2O97eAR017382;
	Tue, 24 Mar 2009 09:07:40 GMT
	(envelope-from nobody)
Message-Id: <200903240907.n2O97eAR017382@www.freebsd.org>
Date: Tue, 24 Mar 2009 09:07:40 GMT
From: Vitezslav Novy <vnovy@vnovy.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: bsnmpd - bad IfPoll timer interval
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         132993
>Category:       bin
>Synopsis:       [patch] bsnmpd(1) - bad IfPoll timer interval
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 24 09:10:01 UTC 2009
>Closed-Date:    
>Last-Modified:  Tue Mar 24 10:09:08 UTC 2009
>Originator:     Vitezslav Novy
>Release:        FreeBSD 7-stable
>Organization:
>Environment:
FreeBSD vn.chello.upc.cz 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #31: Fri Mar 20 15:50:12 CET 2009     rumik@vn.chello.upc.cz:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
begemotIfPoll timer interval is set to value 10 times higher then should be.

Timer interval is correctly counted in ticks (1/100 s) in function  mibif_reset_hc_timer (in file  contrib/bsnmp/snmp_mibII/mibII.c:375)
Then timer_start_repeat is called. This function expects ticks (1/100 s) as parameter, but is called with miliseconds.



>How-To-Repeat:
Start
/usr/sbin/bsnmpd -d -D events

and in debug output look at 1st parameter of poll_start_utimer.



>Fix:
contrib/bsnmp/snmp_mibII/mibII.c

406c406
<       if ((hc_update_timer = timer_start_repeat(ticks * 10, ticks * 10,
---
>       if ((hc_update_timer = timer_start_repeat(ticks, ticks,


>Release-Note:
>Audit-Trail:
>Unformatted:
