From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 26 13:37:12 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D5A416A4CE for ; Sat, 26 Jun 2004 13:37:12 +0000 (GMT) Received: from geri.cc.fer.hr (geri.cc.fer.hr [161.53.72.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B71D43D1F for ; Sat, 26 Jun 2004 13:37:11 +0000 (GMT) (envelope-from ivoras@fer.hr) Received: from [127.0.0.1] (root@geri.cc.fer.hr [161.53.72.107]) by geri.cc.fer.hr (8.12.9p2/8.12.8) with ESMTP id i5QDYosU089152 for ; Sat, 26 Jun 2004 15:34:51 +0200 (CEST) (envelope-from ivoras@fer.hr) Message-ID: <40DD7BBF.9020204@fer.hr> Date: Sat, 26 Jun 2004 15:35:59 +0200 From: Ivan Voras User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@freebsd.org References: <40DCC57F.5090209@fer.hr> <20040626104947.T93253@woozle.rinet.ru> <40DD3EC1.9000106@fer.hr> <200406261351.16778.dfr@nlsystems.com> In-Reply-To: <200406261351.16778.dfr@nlsystems.com> X-Enigmail-Version: 0.84.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Getting MAC address? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jun 2004 13:37:12 -0000 Doug Rabson wrote: > > Its really not that hard: > [code] Don't get me wrong - it's not hard, and I've done it already, it's just that I felt there could/should be an ioctl for it :) Onto another subject: despite the recommendations (thanks!) I wanted to try the non-bpf,non-ng approach to things (if I fail it'll be a lesson...). I'm stuck at square one: despite that many other things seem to work, the most basic part fails: sock = socket(PF_LINK, SOCK_RAW, /*htons(ETH_P_EAPOL)*/ 0); it fails with errno 43: Protocol not supported (with either EAPOL or 0 for protocol). My question is: how is PF_LINK meant to be used? (and, if I'm bothering this list with such questions, please suggest another :) ) -- What part of "Ph'nglui mglw'nath Cthulhu R'lyeh wgah'nagl fhtagn" don't you understand?