From owner-freebsd-hackers Mon Jun 17 11:21:29 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by hub.freebsd.org (Postfix) with ESMTP id B994737B40F for ; Mon, 17 Jun 2002 11:21:25 -0700 (PDT) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc53.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020617182027.OUNX11659.rwcrmhc53.attbi.com@InterJet.elischer.org>; Mon, 17 Jun 2002 18:20:27 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id LAA15443; Mon, 17 Jun 2002 11:08:15 -0700 (PDT) Date: Mon, 17 Jun 2002 11:08:15 -0700 (PDT) From: Julian Elischer To: Gautham Ganapathy Cc: "FreeBSD.org - Hackers" Subject: Re: Inserting a kernel module b/w IP and ethernet In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I forgot... you can intercept the packets at te top of the ethernet with netgraph and fiddle with them to your heart's content as well. Even send them to user space for extra processing.. On Mon, 17 Jun 2002, Gautham Ganapathy wrote: > Hi > > How can I add an extra layer of processing b/w the IP and ethernet layers > using a kernel module ? If I load a module, I should be able to access the > functions exported by IP and ethernet. Also, I think the ethernet layer can > be configured to use my module as the protocol by patching ifconfig. Am I > right so far ? So, how do I get IP to use my module as it's link layer ? If > I am wrong, what's the proper way ? Or is there any other simpler way ? My > requirement is to add a compression layer (RFC 2507) > > Regards > Gautham To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message