From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 26 00:38:35 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A6F1816A4CE for ; Sat, 26 Jun 2004 00:38:35 +0000 (GMT) Received: from geri.cc.fer.hr (geri.cc.fer.hr [161.53.72.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6F1543D55 for ; Sat, 26 Jun 2004 00:38:34 +0000 (GMT) (envelope-from ivoras@fer.hr) Received: from [127.0.0.1] (root@geri.cc.fer.hr [161.53.72.107]) by geri.cc.fer.hr (8.12.9p2/8.12.8) with ESMTP id i5Q0bNsU079598 for ; Sat, 26 Jun 2004 02:37:23 +0200 (CEST) (envelope-from ivoras@fer.hr) Message-ID: <40DCC57F.5090209@fer.hr> Date: Sat, 26 Jun 2004 02:38:23 +0200 From: Ivan Voras User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@freebsd.org X-Enigmail-Version: 0.84.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Getting MAC address? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jun 2004 00:38:35 -0000 How to get the MAC address for an (ethernet) interface? The linux code does this: retval = ioctl(thisint->sockInt, SIOCGIFHWADDR, &ifr); After some searching, I found SIOCSIFLLADDR ioctl, but it appears there isn't a "GET" counterpart. (I've got interface name & index available...) -- What part of "Ph'nglui mglw'nath Cthulhu R'lyeh wgah'nagl fhtagn" don't you understand?