From owner-freebsd-ports@freebsd.org Fri Oct 5 11:48:44 2018 Return-Path: Delivered-To: freebsd-ports@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 407FB10A893F for ; Fri, 5 Oct 2018 11:48:44 +0000 (UTC) (envelope-from patfbsd@davenulle.org) Received: from sender-of-o53.zoho.com (sender-of-o53.zoho.com [135.84.80.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A48B97D024 for ; Fri, 5 Oct 2018 11:48:43 +0000 (UTC) (envelope-from patfbsd@davenulle.org) ARC-Seal: i=1; a=rsa-sha256; t=1538739194; cv=none; d=zoho.com; s=zohoarc; b=Adqb90o0B3f29OvbwhImBhyb89C+zcs3y8JlFbn73xMvDp9SezpbY4DsAh+Tdkb7MSzxFKV2qnMjfbBHna9/1yC3f2aMiVBoPGnuebEkQFm5nrvEjwM6hbypITU6lYdU74Xqp0S8vsqRk6DP2rvEeZoHmxgNXfn+0G3ot9/3q68= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1538739194; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To:ARC-Authentication-Results; bh=ME62lMLfIokHE3iMmZgysDBFYsxF/7RlGlOogejKGMo=; b=HvCY41MchxuNnBy3AqjLJZhXyv15l4obgkyjUINbAEsUZRUcLc5em8kLyg6gwXr98xvyQQ+aEy0t2Dl8A7ouTaRTGgPg2V2o3Wd7udpb3hwGgAraizh599GDqGrmO6qIJcidHIQQAn2HqfwaVdp5iVx7XmQDBcWNT8O6DHMwenU= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=davenulle.org; spf=pass smtp.mailfrom=patfbsd@davenulle.org; dmarc=pass header.from= header.from= Received: from mr185033.univ-rennes1.fr (mr185033.cri.univ-rennes1.fr [129.20.185.33]) by mx.zohomail.com with SMTPS id 1538739191722271.1150279437304; Fri, 5 Oct 2018 04:33:11 -0700 (PDT) Date: Fri, 5 Oct 2018 13:33:02 +0200 From: Patrick Lamaiziere To: freebsd-ports@freebsd.org Cc: freebsd-net@freebsd.org Subject: [freebsd 11.2] net-snmpd incomplete mac addresses Message-ID: <20181005133302.5f518dc6@mr185033.univ-rennes1.fr> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-ZohoMailClient: External X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Oct 2018 11:48:44 -0000 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 ? Thanks, regards.