From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 6 15:35:11 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B72D4F21 for ; Thu, 6 Mar 2014 15:35:11 +0000 (UTC) Received: from mail-ie0-f171.google.com (mail-ie0-f171.google.com [209.85.223.171]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8251D327 for ; Thu, 6 Mar 2014 15:35:11 +0000 (UTC) Received: by mail-ie0-f171.google.com with SMTP id ar20so2890104iec.2 for ; Thu, 06 Mar 2014 07:35:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=ENtx/uvi1cNhvXDJPWLiFDBDzoCm+esX71Ya10o88z8=; b=LZsarYLwtkLkZI5Q7jDVyB0dzB0kR+HDyQ/7x6rSj62/mgAe+MmDnE0HYpkOKj3auE L7Sbjh6pScPGiQM+TPuDF3K+finfdNfuddufInLso0moJcNOrtcYe4nkQ7rZf5YoCue7 1iaqFy0EhK2ll0cNN7fwm4BZI8cm9yDSESPrLszZXfHIi+DYnbGE5yaHIHKRPmQvoUrt Am1+gOKv1zMmeHMcILlOj7hT+8T41wRT7l61EZUfw02H6yae6YF/jg67zeCWt/R+gAie 1J4i7ZBwPL4b6GWNSl+taV6IQ58fcDs8/0exvXuuE54go+saTi+O/C2gces+16kZuoz/ yd/A== X-Gm-Message-State: ALoCoQlE3PEjUkZFzcLzCR+Lc/GohYAUViMJbPb0dIfEnwbylP5T2Hq2shtfsYwZH2jAvoorCCo1 X-Received: by 10.50.182.170 with SMTP id ef10mr16736360igc.9.1394120104490; Thu, 06 Mar 2014 07:35:04 -0800 (PST) Received: from netflix-mac.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id u1sm25341574igm.8.2014.03.06.07.35.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Mar 2014 07:35:04 -0800 (PST) Sender: Warner Losh Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: Reading burned-in NIC MAC address from the user space. From: Warner Losh In-Reply-To: <1394115222.8935.17.camel@eva02> Date: Thu, 6 Mar 2014 08:35:03 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <10C93415-7C49-459E-921E-EE358C3B886C@bsdimp.com> References: <1394115222.8935.17.camel@eva02> To: clutton X-Mailer: Apple Mail (2.1874) Cc: FreeBSD Hackers , freebsd-drivers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Mar 2014 15:35:11 -0000 On Mar 6, 2014, at 7:13 AM, clutton wrote: > Hi lists. >=20 > I'm porting a GNU macchanger to the FreeBSD. Everything has almost = done, > except restoring the mac to the original one. >=20 > The Linux users can exploit ioctl with SIOCETHTOOL pointing to a = proper > ifreq(ETHTOOL_GPERMADDR), I have no idea how to do this using FreeBSD, > is it even possible? I=92d check the source for ifconfig. ifconfig ep0 link 1:2:3:4:5:6 does the trick=85 Warner=