From owner-freebsd-questions Tue Dec 5 12:25:41 2000 From owner-freebsd-questions@FreeBSD.ORG Tue Dec 5 12:25:40 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from e23.nc.us.ibm.com (e23.nc.us.ibm.com [32.97.136.229]) by hub.freebsd.org (Postfix) with ESMTP id 40CA037B400 for ; Tue, 5 Dec 2000 12:25:39 -0800 (PST) Received: from southrelay02.raleigh.ibm.com (southrelay02.raleigh.ibm.com [9.37.3.209]) by e23.nc.us.ibm.com (8.9.3/8.9.3) with ESMTP id PAA16896 for ; Tue, 5 Dec 2000 15:22:49 -0600 Received: from d04nm300.raleigh.ibm.com (d04nm200.raleigh.ibm.com [9.67.228.37]) by southrelay02.raleigh.ibm.com (8.8.8m3/NCO v4.95) with ESMTP id PAA109838 for ; Tue, 5 Dec 2000 15:25:06 -0500 Importance: Normal To: freebsd-questions@freebsd.org Subject: Writing a kernel module X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 Message-ID: From: "Chris Gage" Date: Tue, 5 Dec 2000 15:25:27 -0500 X-MIMETrack: Serialize by Router on D04NM300/04/M/IBM(Release 5.0.3 (Intl)|21 March 2000) at 12/05/2000 03:25:32 PM, Serialize complete at 12/05/2000 03:25:32 PM MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_alternative 00703554852569AC_=" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multipart message in MIME format. --=_alternative 00703554852569AC_= Content-Type: text/plain; charset="us-ascii" 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. Chris Gage -- IBM Corporation -- RTP, NC -- cgage@us.ibm.com -- (919) 254 5572 -- t/l 444 5572 --=_alternative 00703554852569AC_= Content-Type: text/html; charset="us-ascii"
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.

Chris Gage -- IBM Corporation -- RTP, NC -- cgage@us.ibm.com -- (919) 254 5572 -- t/l 444 5572
--=_alternative 00703554852569AC_=-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message