From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 25 20:22:36 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 8717116A4CE for ; Fri, 25 Jun 2004 20:22:36 +0000 (GMT) Received: from geri.cc.fer.hr (geri.cc.fer.hr [161.53.72.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C37C43D45 for ; Fri, 25 Jun 2004 20:22:35 +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 i5PKKQsU078063; Fri, 25 Jun 2004 22:20:26 +0200 (CEST) (envelope-from ivoras@fer.hr) Message-ID: <40DC8948.9090406@fer.hr> Date: Fri, 25 Jun 2004 22:21:28 +0200 From: Ivan Voras User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lev Walkin References: <40DC83A0.3060509@fer.hr> <40DC8742.5000100@netli.com> In-Reply-To: <40DC8742.5000100@netli.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 cc: hackers@freebsd.org Subject: Re: PF_PACKET 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: Fri, 25 Jun 2004 20:22:36 -0000 Lev Walkin wrote: > Ivan Voras wrote: > >> I'm trying to port open1x xsupplicant, and it uses PF_PACKET to get >> relevant packets (of appropriate ethernet type). I looked around in >> /usr/include and can't find the support, at least not under that and >> similar names. Is there support for it in FreeBSD? >> >> (I only need to catch & send a few packets now and then, not anything >> complex or bandwidth demanding). > > > man bpf I've no experience with bpf, but It looks way too complex. And besides, the program is relaying on using sendto/recvfrom all over the place. -- What part of "Ph'nglui mglw'nath Cthulhu R'lyeh wgah'nagl fhtagn" don't you understand?