From owner-freebsd-net@FreeBSD.ORG Fri Nov 3 01:45:53 2006 Return-Path: X-Original-To: net@freebsd.org Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8148E16A416 for ; Fri, 3 Nov 2006 01:45:53 +0000 (UTC) (envelope-from newroswell@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id E915A43D4C for ; Fri, 3 Nov 2006 01:45:52 +0000 (GMT) (envelope-from newroswell@gmail.com) Received: by nf-out-0910.google.com with SMTP id p77so1194394nfc for ; Thu, 02 Nov 2006 17:45:51 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=WWZixVhIMOohx07MD2+Gv0cEOeTD6ooR8SXCtFhssuqrs6uS25n6E6fDG3kRKK9uk9vu3boLF6V/6VMY4O/2MXWaaM+TY3L3+J6Mu0NRLtxvJqVlb0i1SnZAOM3dTbqLPlK3Dj+1cZ4Kw1MJHoSkFbyvPCGRoFB9xecQ00MQbFw= Received: by 10.78.128.11 with SMTP id a11mr1851604hud.1162518350781; Thu, 02 Nov 2006 17:45:50 -0800 (PST) Received: by 10.78.192.15 with HTTP; Thu, 2 Nov 2006 17:45:50 -0800 (PST) Message-ID: <375baf50611021745m6d097245y4670d5741ffbd64a@mail.gmail.com> Date: Thu, 2 Nov 2006 17:45:50 -0800 From: "Kevin Sanders" To: net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: pfil on bridge interface, looking for ether_header X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Nov 2006 01:45:53 -0000 I've written a kernel module that has pfil_add_hook'ed into the pfil framework. When my input packet filter function is called, I can mtod(*m, struct IP *) to the IP header, but haven't found a way to find the original ethernet header. (*m)->m_pkthdr.header always seems to be NULL (I'm not even sure what it's used for but I gave it try). Any advice sure would be welcome, thanks in advance. Kevin