From owner-freebsd-stable@FreeBSD.ORG Tue Nov 25 22:42:48 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 489FEC05 for ; Tue, 25 Nov 2014 22:42:48 +0000 (UTC) Received: from saturn.lyxys.ka.sub.org (saturn.lyxys.ka.sub.org [217.29.35.151]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AC463287 for ; Tue, 25 Nov 2014 22:42:47 +0000 (UTC) Received: from juno.lyxys.ka.sub.org (juno.lyx [IPv6:fd2a:89ca:7d54:0:240:caff:fe92:4f47]) by saturn.lyxys.ka.sub.org (8.14.9/8.14.9) with ESMTP id sAPMRDm0043129 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Tue, 25 Nov 2014 23:27:13 +0100 (CET) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (localhost [127.0.0.1]) by juno.lyxys.ka.sub.org (8.14.9/8.14.9) with ESMTP id sAPMZ3Et055611 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 25 Nov 2014 23:35:04 +0100 (CET) (envelope-from wolfgang@lyxys.ka.sub.org) Received: (from wolfgang@localhost) by juno.lyxys.ka.sub.org (8.14.9/8.14.9/Submit) id sAPMZ3iG055608 for freebsd-stable@freebsd.org; Tue, 25 Nov 2014 23:35:03 +0100 (CET) (envelope-from wolfgang@lyxys.ka.sub.org) X-Authentication-Warning: juno.lyx: wolfgang set sender to wolfgang@lyxys.ka.sub.org using -f Date: Tue, 25 Nov 2014 23:35:03 +0100 From: Wolfgang Zenker To: freebsd-stable@freebsd.org Subject: bsnmpd returning strange IP address values Message-ID: <20141125223503.GA55437@lyxys.ka.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: private site User-Agent: Mutt/1.5.23 (2014-03-12) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (saturn.lyxys.ka.sub.org [IPv6:fd2a:89ca:7d54:1:200:24ff:feca:b4cc]); Tue, 25 Nov 2014 23:27:13 +0100 (CET) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Nov 2014 22:42:48 -0000 Hi, I just started to experiment with snmp on my systems, and one of the things I noticed is that bsnmpd returns strange values in the ipAddrTable. As far as I understand, this table is supposed to hold network parameters for the systems network interfaces. When requesting that table from a host running net-snmpd the values returned make sense: $ bsnmpwalk -v 2c -s reader@vulcan.lyx ipAddrTable ipAdEntAddr[127.0.0.1] = 127.0.0.1 ipAdEntAddr[192.168.203.27] = 192.168.203.27 ipAdEntIfIndex[127.0.0.1] = 2 ipAdEntIfIndex[192.168.203.27] = 1 ipAdEntNetMask[127.0.0.1] = 255.0.0.0 ipAdEntNetMask[192.168.203.27] = 255.255.255.0 ipAdEntBcastAddr[127.0.0.1] = 1 ipAdEntBcastAddr[192.168.203.27] = 1 ipAdEntReasmMaxSize[127.0.0.1] = -1 ipAdEntReasmMaxSize[192.168.203.27] = -1 However, if I try this with a host running bsnmpd, I get something strange: $ bsnmpwalk -v 2c -s reader@juno.lyx ipAddrTable ipAdEntAddr[0.0.0.0] = 0.0.0.0 ipAdEntIfIndex[0.0.0.0] = 1 ipAdEntNetMask[0.0.0.0] = 48.0.0.0 ipAdEntBcastAddr[0.0.0.0] = 0 ipAdEntReasmMaxSize[0.0.0.0] = 65535 All systems running 10.1-STABLE Is this because I'm looking in the wrong place for the Addresses? This could be, because ipAddrTable is deprecated and supposed to be replaced by ipAddressTable. However, bsnmpd appears to not know about ipAddressTable (while net-snmp does know it, but returns no data for it). Clue pointers appreciated. Wolfgang