From owner-freebsd-emulation Fri Nov 10 16:23:39 2000 Delivered-To: freebsd-emulation@freebsd.org Received: from vexpert.dbai.tuwien.ac.at (vexpert.dbai.tuwien.ac.at [128.130.111.12]) by hub.freebsd.org (Postfix) with ESMTP id 68C9C37B4C5; Fri, 10 Nov 2000 16:23:35 -0800 (PST) Received: from [128.130.111.2] (deneb [128.130.111.2]) by vexpert.dbai.tuwien.ac.at (8.9.3/8.9.3) with ESMTP id BAA00843; Sat, 11 Nov 2000 01:23:30 +0100 (MET) Date: Sat, 11 Nov 2000 01:23:30 +0100 (CET) From: Gerald Pfeifer To: Luoqi Chen Cc: , Subject: Re: Wine port: How to obtain MAC address? In-Reply-To: <200011061904.OAA09537@seven.watermarkgroup.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 6 Nov 2000, Luoqi Chen wrote: > There's no easy way (that I know of) to get the mac address in FreeBSD. :-( > (time for a SIOCGIFLLADDR?) Yes, Yes, Yes. Please. But perhaps you could mimmick what Linux does? strcpy(ifInfo.ifr_name, ifName); if (ioctl(sock, SIOCGIFHWADDR, &ifInfo) < 0) : (Thanks to all you responded with helpful hints! I'll try to hack the Wine port accordingly.) Gerald -- Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message