From owner-freebsd-questions Tue Sep 11 0: 0:12 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 C857437B40A for ; Tue, 11 Sep 2001 00:00:06 -0700 (PDT) Received: from sharon ([216.13.207.127]) by server1.lordlegacy.org (8.9.3/8.9.3) with SMTP id VAA30132; Mon, 10 Sep 2001 21:10:59 -0500 From: "Stephen Hurd" To: "Bobby Krupczak" , Subject: RE: programatically getting MAC addr for interface? Date: Tue, 11 Sep 2001 01:08:09 -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? > > Thanks, > > Bobby Off the top of my head, ifconfig will give the MAC (ether) address for interfaces to anyone... maybe dig through there... I'll have another look in a bit... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message