From owner-freebsd-net@FreeBSD.ORG Fri Aug 18 06:19:39 2006 Return-Path: X-Original-To: freebsd-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 4D40C16A4DA for ; Fri, 18 Aug 2006 06:19:39 +0000 (UTC) (envelope-from rajkumars@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAE4A43D53 for ; Fri, 18 Aug 2006 06:19:38 +0000 (GMT) (envelope-from rajkumars@gmail.com) Received: by nz-out-0102.google.com with SMTP id x3so460642nzd for ; Thu, 17 Aug 2006 23:19:38 -0700 (PDT) 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=do2f0gpeXv4vhudb09cUu3LUBHc9VRQ+KgpGNJwRukB9fKzwzSqDhTu2ZX4UZDbIxSTEp32rf+1xWZ6NFazH51qTcFKcdRiGom1e9+Bog44a+tZcvHL9Ji5N6l9UpYkb4qlY9IrYCMx98uU1eLY9wDyBq+/LGjy05ZIMSETuUSc= Received: by 10.64.241.3 with SMTP id o3mr3282116qbh; Thu, 17 Aug 2006 23:19:38 -0700 (PDT) Received: by 10.65.248.1 with HTTP; Thu, 17 Aug 2006 23:19:38 -0700 (PDT) Message-ID: <64de5c8b0608172319q63497574ue416409bb8b7fa42@mail.gmail.com> Date: Fri, 18 Aug 2006 11:49:38 +0530 From: "Rajkumar S" To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: netgraph to userspace? 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, 18 Aug 2006 06:19:39 -0000 Hi, Is it possible to take a packet from netgraph to userspace and drop it there? ie, can I insert some netgraph node between say lower and upper of a ng_ether push the packets to userspace [snort] for some processing and possibly either drop it there? I know that NgSendData and NgRecvData can be used to sent and receive data using ng_socket, but what I want to confirm is that does these work like a man in the middle, receiving from one end and sent it to next? And if I receive a packet and forgets to sent, it's effectievly dropped? With warm regards, raj