From owner-freebsd-questions@FreeBSD.ORG Fri Jun 15 14:50:59 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8361A16A46D for ; Fri, 15 Jun 2007 14:50:59 +0000 (UTC) (envelope-from gigi_8439@yahoo.fr) Received: from smtp009.mail.ukl.yahoo.com (smtp009.mail.ukl.yahoo.com [217.12.11.63]) by mx1.freebsd.org (Postfix) with SMTP id E302213C468 for ; Fri, 15 Jun 2007 14:50:58 +0000 (UTC) (envelope-from gigi_8439@yahoo.fr) Received: (qmail 2979 invoked from network); 15 Jun 2007 14:24:18 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Received:X-YMail-OSG:Mime-Version:Content-Transfer-Encoding:Message-Id:Content-Type:To:From:Subject:Date:X-Mailer; b=DEy/Vv77rpPqe1rtxiWa2VRzzFqpTpm8r1AYok1ziBDgWcg5EcVFuxzdMLO+n+WTOA67YVjXdY9palNerqPs4yxMcdtdMscZ7Ng3Z/znE/3QzDtGbQOZvOL//zBCbgGVLSnMM1OTxUDqLZWdy6dudgxgyFE5FGQVQcbKJ90SnzQ= ; Received: from unknown (HELO ?10.2.1.1?) (gigi_8439@217.128.170.68 with plain) by smtp009.mail.ukl.yahoo.com with SMTP; 15 Jun 2007 14:24:18 -0000 X-YMail-OSG: .FLhGI0VM1kNyY10fBQW7Cf0zj3CNwoLDgsIAlcRZ7a7Mn7aIeUKlXun0.Q0SLqHlKnWiVoyvg-- Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-questions@freebsd.org From: Ghislain Date: Fri, 15 Jun 2007 16:25:04 +0200 X-Mailer: Apple Mail (2.752.3) Subject: BPF and buffering 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: Fri, 15 Jun 2007 14:50:59 -0000 Hi, I'd like to write a specific BPF filter in order to read all packets ( before routing them ) on a network interface and buffering them in order to process them and after routing them if I decide that they are correct. But I don't know how to intercept them ( then they are not processed immediatly by the kernel ) in order to buffering them before giving them back to the kernel. Can you show me example, tutorials or documentation. Thanks Ghislain