From owner-freebsd-net@freebsd.org Fri Oct 5 13:16:53 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5CD3410ABCF6; Fri, 5 Oct 2018 13:16:53 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [IPv6:2a01:4f8:d12:604::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D9CC980910; Fri, 5 Oct 2018 13:16:52 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [IPv6:2a03:3100:c:13:0:0:0:5]) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w95DGdsq016413 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 5 Oct 2018 15:16:40 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: patfbsd@davenulle.org Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w95DGcnA004775 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 5 Oct 2018 20:16:39 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: [freebsd 11.2] net-snmpd incomplete mac addresses To: Patrick Lamaiziere , freebsd-ports@freebsd.org References: <20181005133302.5f518dc6@mr185033.univ-rennes1.fr> Cc: freebsd-net@freebsd.org From: Eugene Grosbein Message-ID: Date: Fri, 5 Oct 2018 20:16:32 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20181005133302.5f518dc6@mr185033.univ-rennes1.fr> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM,SPF_PASS autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.0 SPF_PASS SPF: sender matches SPF record * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Oct 2018 13:16:53 -0000 05.10.2018 18:33, Patrick Lamaiziere wrote: > Hello, > > freebsd 11.2/amd64 release > net-snmp-5.7.3_18 > > net-snmpd returns incomplete MAC addresses in IF-MIB::ifPhysAddress, > the first octet is always "0". > > $ snmpwalk -v 2c -c "xxx" localhost 1.3.6.1.2.1.2.2.1.6 > IF-MIB::ifPhysAddress.1 = STRING: 0:36:9f:93:7d:f8 > IF-MIB::ifPhysAddress.2 = STRING: 0:36:9f:93:7d:fa > IF-MIB::ifPhysAddress.3 = STRING: 0:f4:bb:ef:c8:e4 > ... > > $ ifconfig | grep ether > ether a0:36:9f:93:7d:f8 > ether a0:36:9f:93:7d:fa > ether ec:f4:bb:ef:c8:e4 > > tcpdump confirms that the problem is in net-snmpd (and not the client). > > Also when using the MIB IP-MIB::ipNetToMediaPhysAddress the MAC > addresses are correct. > > $ snmpwalk -v2c -c '***r***' localhost IP-MIB::ipNetToMediaPhysAddress | grep a0:36:9f:93:7d:f8 > IP-MIB::ipNetToMediaPhysAddress.13.10.10.1.118 = STRING: a0:36:9f:93:7d:f8 > > I've checked net-snmpd 5.7.3 under linux and the mac addresses are > correct. (So it's specific to FreeBSD.) > > Any clue ? We have bsnmpd in the base system. Does it exhibit same problem?