From owner-freebsd-net@FreeBSD.ORG Tue Dec 27 15:13:22 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6C8A106564A for ; Tue, 27 Dec 2011 15:13:22 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-annu.mail.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 8EFBB8FC0C for ; Tue, 27 Dec 2011 15:13:22 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap4EAAfg+U6DaFvO/2dsb2JhbABCFoR5qD6BcgEBBSNWGxgCAg0ZAlkZiAKjdJElgS+CToR4ggSBFgSIN4xLklI X-IronPort-AV: E=Sophos;i="4.71,415,1320642000"; d="scan'208";a="150012150" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-annu-pri.mail.uoguelph.ca with ESMTP; 27 Dec 2011 10:13:21 -0500 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 757EBB3F06; Tue, 27 Dec 2011 10:13:21 -0500 (EST) Date: Tue, 27 Dec 2011 10:13:21 -0500 (EST) From: Rick Macklem To: perryh@pluto.rain.com Message-ID: <1274472810.645142.1324998801469.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <4ef9c41f.rC8YkQQx738CJ3EN%perryh@pluto.rain.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.202] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692) Cc: iwc2010005@gmail.com, freebsd-net@freebsd.org, jhell@DataIX.net Subject: Re: Can we do perform a C style file Read/Write from within a ARP module 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: Tue, 27 Dec 2011 15:13:22 -0000 perryh wrote: > Jason Hellenthal wrote: > > > > See siftr(4). This module writes to a file. > > Is siftr(4) new since 8.1? > > $ man siftr > No manual entry for siftr > $ cd /usr/ports > $ ls -d */*siftr* > ls: */*siftr*: No such file or directory > You can look at: http://people.freebsd.org/~rmacklem/nfs_clpackrat.c I won't say it is the best or even a good way to do it, but this code reads/writes files directly in the kernel. rick