From owner-freebsd-stable@FreeBSD.ORG Thu Nov 27 10:05:40 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5FC5E85F for ; Thu, 27 Nov 2014 10:05:40 +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 BEDAAA31 for ; Thu, 27 Nov 2014 10:05:39 +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 sARA5FgF083236 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Thu, 27 Nov 2014 11:05:15 +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 sARADhEn018621 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 27 Nov 2014 11:13:43 +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 sARADgnr018620 for freebsd-stable@freebsd.org; Thu, 27 Nov 2014 11:13:42 +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: Thu, 27 Nov 2014 11:13:42 +0100 From: Wolfgang Zenker To: freebsd-stable@freebsd.org Subject: Re: bsnmpd returning strange IP address values Message-ID: <20141127101342.GA18410@lyxys.ka.sub.org> References: <20141125223503.GA55437@lyxys.ka.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141125223503.GA55437@lyxys.ka.sub.org> 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]); Thu, 27 Nov 2014 11:05:15 +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: Thu, 27 Nov 2014 10:05:40 -0000 Hi, * Wolfgang Zenker [141125 23:35]: > [..] > When requesting that table from a host running net-snmpd the values returned > make sense: [..] > 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 this appears to be a regression. Testing against a host running 8.4-STABLE: $ bsnmpwalk -v 2c -s reader@saturn.lyxys.ka.sub.org ipAddrTable ipAdEntAddr[0.0.0.0] = 0.0.0.0 ipAdEntAddr[127.0.0.1] = 127.0.0.1 ipAdEntAddr[217.29.35.151] = 217.29.35.151 ipAdEntIfIndex[0.0.0.0] = 1 ipAdEntIfIndex[127.0.0.1] = 7 ipAdEntIfIndex[217.29.35.151] = 1 ipAdEntNetMask[0.0.0.0] = 0.0.0.0 ipAdEntNetMask[127.0.0.1] = 255.0.0.0 ipAdEntNetMask[217.29.35.151] = 255.255.255.0 ipAdEntBcastAddr[0.0.0.0] = 0 ipAdEntBcastAddr[127.0.0.1] = 1 ipAdEntBcastAddr[217.29.35.151] = 1 ipAdEntReasmMaxSize[0.0.0.0] = 65535 ipAdEntReasmMaxSize[127.0.0.1] = 65535 ipAdEntReasmMaxSize[217.29.35.151] = 65535 While the entries for [0.0.0.0] still look kind of weird, the other entries are ok and hold the information that I want to have. I'll open a PR. Wolfgang