From owner-freebsd-questions@FreeBSD.ORG Mon Jan 31 10:51:06 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD5EF1065674 for ; Mon, 31 Jan 2011 10:51:06 +0000 (UTC) (envelope-from freebsd-questions@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) by mx1.freebsd.org (Postfix) with ESMTP id 643888FC18 for ; Mon, 31 Jan 2011 10:51:06 +0000 (UTC) Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.186]) by mail.unitedinsong.com.au (Postfix) with ESMTP id 652695C44 for ; Mon, 31 Jan 2011 20:58:11 +1000 (EST) Message-ID: <4D46934B.7060505@herveybayaustralia.com.au> Date: Mon, 31 Jan 2011 20:47:39 +1000 From: Da Rock User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.16) Gecko/20101227 Thunderbird/3.0.11 ThunderBrowse/3.3.4 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: linux PF_PACKET compatibility X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Jan 2011 10:51:06 -0000 On 01/31/11 20:22, b. f. wrote: > Da Rock wrote: > ... > >> I've been chasing the answer to a FreeBSD version of this (approx. >> anyway), but I needed to find out what exactly PF_PACKET was first. >> Finally found this answer here: http://www.linuxjournal.com/article/4659 >> >> I looked up man socket and I can see possibilities (in my mind anyway), >> but I thought I'd be best to check if the gurus here might have a better >> idea. My reason for this is I'm attempting to build l2tpns (which >> supposedly builds on 7.2?! with no trouble), and I'm chasing the errors >> which appear to be linuxisms mostly. >> >> So in man socket simply looking at the list of protocol families I'd say >> network driver level would be PF_LINK link layer interface? Is there >> another man page I should be looking at as well? >> > In the past, those wishing to use similar functionality on FreeBSD > have turned to pcap(3), bpf(4), or ng_etf(4), and the underlying code. > This kind of question is better directed to the freebsd-hackers and > freebsd-net lists. > > I figured it might be. Having trouble with hackers atm though- can't subscribe... :( Thx