From owner-freebsd-questions Tue Sep 11 0:49:35 2001 Delivered-To: freebsd-questions@freebsd.org Received: from server1.lordlegacy.org (lordlegacy.org [209.61.182.147]) by hub.freebsd.org (Postfix) with ESMTP id 6FA1C37B40B for ; Tue, 11 Sep 2001 00:49:30 -0700 (PDT) Received: from sharon ([216.13.207.127]) by server1.lordlegacy.org (8.9.3/8.9.3) with SMTP id WAA30182; Mon, 10 Sep 2001 22:00:24 -0500 From: "Stephen Hurd" To: "Bobby Krupczak" , Subject: RE: programatically getting MAC addr for interface? Date: Tue, 11 Sep 2001 01:57:19 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-reply-to: <200109102024.QAA01408@pikachu.empire.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > 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