NetBSD Problem Report #39581
From www@NetBSD.org Thu Sep 18 19:56:33 2008
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id D9CE963BC83
for <gnats-bugs@gnats.netbsd.org>; Thu, 18 Sep 2008 19:56:33 +0000 (UTC)
Message-Id: <20080918195633.089DA63B842@narn.NetBSD.org>
Date: Thu, 18 Sep 2008 19:56:33 +0000 (UTC)
From: M.Drochner@fz-juelich.de
Reply-To: M.Drochner@fz-juelich.de
To: gnats-bugs@NetBSD.org
Subject: net-snmp server doesn't work on -current
X-Send-Pr-Version: www-1.0
>Number: 39581
>Category: kern
>Synopsis: net-snmp server doesn't work on -current
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Sep 18 20:00:00 +0000 2008
>Closed-Date: Mon Oct 07 04:35:51 +0000 2013
>Last-Modified: Mon Oct 07 04:35:51 +0000 2013
>Originator: Matthias Drochner
>Release: current
>Organization:
FZJ
>Environment:
NetBSD zelz27 4.99.72 NetBSD 4.99.72 (MIST+MP) #188: Thu Sep 18 14:29:48 MEST 20
08 drochner@zelz27:/home/drochner/netbsd/work.src.usbdev/sys/arch/i386/compile/
MIST+MP i386
>Description:
Since the structure definitions for network / IP related counters
were removed from the kernel headers, a net-snmpd server doesn't
report useful values for affected variables.
(It might be considered an application problem, but it was
caused by removal of classical APIs.)
>How-To-Repeat:
Start an snmpd built on -current:
snmpd -f -c snmpd.conf
Query some IP related counter, eg:
$ snmpwalk -Os -c public -v 1 localhost ipInReceives
ipInReceives.0 = Counter32: 3217022904
$ snmpwalk -Os -c public -v 1 localhost tcpPassiveOpens
tcpPassiveOpens.0 = Counter32: 0
(The counters don't change.)
>Fix:
Either put back the BSD statistics definitions, as
"struct ipstat" in <netinet/ip_var.h>, or provide
patches for net-snmp to use the (NetBSD specific)
IP_STAT_* etc definitions.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: christos@NetBSD.org
State-Changed-When: Thu, 04 Apr 2013 19:57:25 -0400
State-Changed-Why:
verified it works on head.
State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 07 Oct 2013 04:35:51 +0000
State-Changed-Why:
6-month feedback timeout
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.