From owner-freebsd-net Tue Apr 24 5:23:51 2001 Delivered-To: freebsd-net@freebsd.org Received: from Awfulhak.org (awfulhak.demon.co.uk [194.222.196.252]) by hub.freebsd.org (Postfix) with ESMTP id 75D2F37B42C for ; Tue, 24 Apr 2001 05:23:48 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.3/8.11.3) with ESMTP id f3OCNI306178; Tue, 24 Apr 2001 13:23:18 +0100 (BST) (envelope-from brian@lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.3/8.11.3) with ESMTP id f3OCOX612742; Tue, 24 Apr 2001 13:24:33 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200104241224.f3OCOX612742@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: "Zixiong WANG" Cc: freebsd-net@FreeBSD.ORG, brian@Awfulhak.org Subject: Re: NEEDED: Source code (C or C++) for fetching MAC Address ? In-Reply-To: Message from "Zixiong WANG" of "Tue, 24 Apr 2001 11:52:06 +0200." <005801c0cca4$38a871c0$5801a8c0@larine> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 24 Apr 2001 13:24:33 +0100 From: Brian Somers Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Hi, > > I need source code for fetching MAC address on a FreeBSD 4.2/PC/Ethernet > platform. > > Where can I find it ? Have a look at src/usr.sbin/ppp/arp.c - get_ether_addr(). > Thanks in advance. -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message