[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: get MAC address from userspace program
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: Re: get MAC address from userspace program
- From: "S.Aeschbacher" <s_(_dot_)_aeschbacher_(_at_)_bturtle_(_dot_)_ch>
- Date: Fri, 19 Jul 2002 11:40:15 +0000
- Cc: Martin Schmachtel <schmadde_(_at_)_syscall_(_dot_)_de>
- Mail-followup-to: tech_(_at_)_openbsd_(_dot_)_org, Martin Schmachtel <schmadde_(_at_)_syscall_(_dot_)_de>
On Fri, Jul 19, 2002 at 11:19:59AM +0200, Martin Schmachtel wrote:
> Hello,
>
> I need to find out the MAC address of a given ethernet interface from
> a userspace program. I cannot, however, find out how to get this data.
> I thought it should be in struct if_data, but it's not there.
> Can anyone tell me where to look?
try getifaddrs(3).
regards
Stefan
Visit your host, monkey.org