From owner-freebsd-questions@FreeBSD.ORG Mon Jan 31 10:22:32 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 1E5DB106564A for ; Mon, 31 Jan 2011 10:22:32 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id D38358FC21 for ; Mon, 31 Jan 2011 10:22:31 +0000 (UTC) Received: by gwj21 with SMTP id 21so2058467gwj.13 for ; Mon, 31 Jan 2011 02:22:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:date:message-id:subject :from:to:cc:content-type; bh=1d8+vzHQMBZMNTqY9Y8zj82Q02ZEVXbcUkzd2inbUZo=; b=Bz1SlaH3wKOycE2+wQrM2rzapOvLEBGG39s0LVW4XpLbJklV+nUayFQ/lat5AW5c/q 0hXIj/4MeBOVT8rbOZwF70a4B15MjFw4wr3dKa10hRlmu4y8rGD6/kkHw7Dwmn/wvoV9 Lmg0CHdctmxA7FiW+GhHV4E6kPgcKGzWWJw+E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:cc :content-type; b=k25jVpbGsLV9qTTIBk/PzVJ3hdgp/DTBH+cLorH4LsSUeWRvdeHs3RgFHXMssEVlaa UTxfBblIeIbhYJgJhQfFjuK+bcD1qUY/YE69s8STzRP/GF0N4KDSriDt6ZhsPbSsc2Cx DYxnbpaI7sCNCvp5D8N9WzzAK+vmfsDfJ65pk= MIME-Version: 1.0 Received: by 10.236.108.167 with SMTP id q27mr12068878yhg.36.1296469350222; Mon, 31 Jan 2011 02:22:30 -0800 (PST) Received: by 10.236.105.197 with HTTP; Mon, 31 Jan 2011 02:22:30 -0800 (PST) Date: Mon, 31 Jan 2011 05:22:30 -0500 Message-ID: From: "b. f." To: Da Rock Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@FreeBSD.org Subject: Re: linux PF_PACKET compatibility X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Jan 2011 10:22:32 -0000 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. b.