From owner-freebsd-questions Tue Dec 5 12:30:57 2000 From owner-freebsd-questions@FreeBSD.ORG Tue Dec 5 12:30:55 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 22C7737B698 for ; Tue, 5 Dec 2000 12:30:55 -0800 (PST) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id eB5KUrY27280; Tue, 5 Dec 2000 12:30:53 -0800 (PST) Date: Tue, 5 Dec 2000 12:30:53 -0800 From: Alfred Perlstein To: Chris Gage Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Writing a kernel module Message-ID: <20001205123052.C8051@fw.wintelcom.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from cgage@us.ibm.com on Tue, Dec 05, 2000 at 03:25:27PM -0500 Sender: bright@fw.wintelcom.net Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Chris Gage [001205 12:25] wrote: > I've been looking, so far in vain, for some kind of guidelines about how I > would go about writing a kernel module for FreeBSD. What I need to do is > more or less what a firewall or a router does, ie intercept packets at the > lowest level inside IP and either return them to the stack if I don't want > them, or forward them to some other IP address if I do want them. If > anyone could point me to a place where this jewel of rather fundamental > information resides, I'd be very grateful. Although this page is written from the 'black hat' point of view, it does get pretty technical and can be useful: http://thc.pimmel.com/files/thc/bsdkern.html -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message