Skip site navigation (1)Skip section navigation (2)
Date:      06 Dec 2000 10:09:12 -0500
From:      Lowell Gilbert <lowell@world.std.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Writing a kernel module
Message-ID:  <44itox37tz.fsf@lowellg.ne.mediaone.net>
In-Reply-To: cgage@us.ibm.com's message of "5 Dec 2000 21:25:47 %2B0100"
References:  <OF3896758C.070B46CA-ON852569AC.006FC320@raleigh.ibm.com>

next in thread | previous in thread | raw e-mail | index | archive | help
cgage@us.ibm.com (Chris Gage) writes:

> 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.

The recommended way of doing what you're suggesting isn't a kernel
module at all; it's a divert(4) socket in userland.  


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44itox37tz.fsf>