Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Nov 2000 01:23:30 +0100 (CET)
From:      Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
To:        Luoqi Chen <luoqi@seven.watermarkgroup.com>
Cc:        <emulation@freebsd.org>, <ports@freebsd.org>
Subject:   Re: Wine port: How to obtain MAC address?
Message-ID:  <Pine.BSF.4.30.0011110121510.76064-100000@deneb.dbai.tuwien.ac.at>
In-Reply-To: <200011061904.OAA09537@seven.watermarkgroup.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.30.0011110121510.76064-100000>