From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 3 15:01:34 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB18916A4CE for ; Thu, 3 Mar 2005 15:01:34 +0000 (GMT) Received: from msg-mx0.usc.edu (msg-mx0.usc.edu [128.125.137.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8561943D39 for ; Thu, 3 Mar 2005 15:01:34 +0000 (GMT) (envelope-from ary834@gmail.com) Received: from [192.168.0.109] ([24.30.100.180]) by msg-mx0.usc.edu (Sun Java System Messaging Server 6.1 HotFix 0.08 (built Dec 8 2004)) with ESMTPA id <0ICS0048N29D6N60@msg-mx0.usc.edu> for freebsd-hackers@freebsd.org; Thu, 03 Mar 2005 05:17:43 -0800 (PST) Date: Thu, 03 Mar 2005 05:17:33 -0800 From: ARY In-reply-to: <84dead7205030302567a0e7103@mail.gmail.com> Sender: amitky@usc.edu To: Joseph Koshy Message-id: <42270E6D.8060509@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en References: <4226EB2E.7080507@gmail.com> <84dead7205030302567a0e7103@mail.gmail.com> User-Agent: Mozilla Thunderbird 0.9 (X11/20041103) cc: freebsd-hackers@freebsd.org Subject: Re: Collecting data in userland from kernel X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2005 15:01:34 -0000 Joseph, > > Have you looked at netgraph(4) and ng_socket(4)? > Thanx for the reply. I looked into them now. But looks like it will be an overkill for me. Let me give a little more context of my problem. I need to evaluate a new congestion control protocol (which has been implemented as an extension to TCP) on a test-bed. So, everytime a packet is sent I just need to log a set a parameters, this applies to hosts and routers. All the logs are then analyzed offline by another application. So, there is primarily no interaction between my entities either in/between hosts or routers. Hence, I need to insert log stubs inline in the kernel. Hope, things are a little clearer now. Please let me know if have any other suggestions. Also, let me know if you still think netgraph can help and I have got it wrong. Thanks, Amit