Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Sep 2001 01:57:19 -0600
From:      "Stephen Hurd" <deuce@lordlegacy.org>
To:        "Bobby Krupczak" <rdk@empire.com>, <freebsd-questions@FreeBSD.ORG>
Subject:   RE: programatically getting MAC addr for interface?
Message-ID:  <NFBBJPHLGLNJEEECOCHAEEKLCCAA.deuce@lordlegacy.org>
In-Reply-To: <200109102024.QAA01408@pikachu.empire.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Hi!
> 
> Im porting an application to FreeBSD and it currently uses various
> sockio calls to get the MAC address of a network interface.  I cant
> seem to find an analogous call. 
> 
> Can anyone point me to an example c-program to get the mac addr for
> interfaces?

The getifaddrs() function should give you what your looking for...

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NFBBJPHLGLNJEEECOCHAEEKLCCAA.deuce>