From owner-freebsd-net@FreeBSD.ORG Tue Jan 15 13:09:02 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5E49F614 for ; Tue, 15 Jan 2013 13:09:02 +0000 (UTC) (envelope-from lstewart@freebsd.org) Received: from lauren.room52.net (lauren.room52.net [210.50.193.198]) by mx1.freebsd.org (Postfix) with ESMTP id 0A4B2739 for ; Tue, 15 Jan 2013 13:09:02 +0000 (UTC) Received: from lstewart1.loshell.room52.net (ppp59-167-184-191.static.internode.on.net [59.167.184.191]) by lauren.room52.net (Postfix) with ESMTPSA id 8FD787E84A; Wed, 16 Jan 2013 00:09:00 +1100 (EST) Message-ID: <50F554EC.6070303@freebsd.org> Date: Wed, 16 Jan 2013 00:09:00 +1100 From: Lawrence Stewart User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120613 Thunderbird/13.0 MIME-Version: 1.0 To: "Eggert, Lars" Subject: Re: static kernel with mod_cc? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lauren.room52.net Cc: "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 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, 15 Jan 2013 13:09:02 -0000 Hi Lars, On 01/15/13 23:47, Eggert, Lars wrote: > Hi, > > mod_cc(4) says: > > Algorithm modules can be compiled into the kernel or loaded as kernel > modules using the kld(4) facility. > > Maybe I'm dense, but I can't figure out how to statically compile > mod_cc modules into the kernel? (I'm using a PAE kernel w/o > modules.) > > Hints appreciated. You're not dense - the build glue to allow an algorithm to be specified in a kernel config file doesn't exist. It probably should. The hacky way to achieve what you want would be to edit /sys/conf/files and manually add a line like so below the cc_newreno.c line: netinet/cc/cc_.c optional inet | inet6 That will compile the module into the kernel, assuming "options INET" or "options INET6" is in your kernel config file. Cheers, Lawrence