From owner-freebsd-net@FreeBSD.ORG Thu May 21 16:34:30 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A23295FA; Thu, 21 May 2015 16:34:30 +0000 (UTC) Received: from mail-ob0-x231.google.com (mail-ob0-x231.google.com [IPv6:2607:f8b0:4003:c01::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 652931568; Thu, 21 May 2015 16:34:30 +0000 (UTC) Received: by obfe9 with SMTP id e9so64333013obf.1; Thu, 21 May 2015 09:34:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=l9Bjt9PrGi3aGlWxz2r8hnzgs+aaD0AY7AYSOlQe6JI=; b=Dj9H3gcOXTgDyfRYXrVn/upO/11qhOukgSM4x3tO7TEPgkUXMU4ORtKlwsQ4xrKlcF c2FwCmgcIVsWSu6197t+0aWiaTYgX5O+CX9tznZH2A4iHM/CgX7kG1fCK6WuJ9/ZOfJq uUhnHtACXKJkPhsI3LQUpORdtemPmzu0CfAnzYQ8q1uxUUCELXDclqYhfEIotQW0b6Pz AG8y8OwkNPYpxPSUJh7DEi2+8bLd/EejHqDUwi/nSOA2pC57AJgkYhqk4xcJRlujIPd3 I/SkrbbK4K4B7An3vwOTCSo0NebQPXROZxg3Xt0jCW4ZM1kMzVwHyj2B09sj0Zton0p/ deWA== MIME-Version: 1.0 X-Received: by 10.182.70.74 with SMTP id k10mr3080050obu.2.1432226069741; Thu, 21 May 2015 09:34:29 -0700 (PDT) Received: by 10.202.216.3 with HTTP; Thu, 21 May 2015 09:34:29 -0700 (PDT) In-Reply-To: References: Date: Thu, 21 May 2015 19:34:29 +0300 Message-ID: Subject: Re: New CC modules not loading after Kernel recompilation From: Karlis Laivins To: "K. Macy" Cc: FreeBSD Net , Adrian Chadd Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 May 2015 16:34:30 -0000 Hi, The source of the module has netinet/tcp_var.h included, in which the variable is defined. Why it still gives me the aforementioned error? And more importantly, why did it work without problems before I recompiled the Kernel? BR, KL On Thu, May 21, 2015 at 6:45 PM, K. Macy wrote: > Your module references a variable that the kernel doesn't define. As soon > as you either define it or figure out what you should really be referencing > it as your module will load. > On May 21, 2015 3:53 AM, "Karlis Laivins" > wrote: > >> Hello again, >> >> A little update - the problem occurs only when trying to load a modified >> NewReno algorithm module. When I create a dummy module from, for example, >> Vegas implementation (with some trivial changes made besides the function >> and module names), the module can be loaded successfully. >> >> Is there a way (if no other way can be found to fix this right away), to >> trick the system into using my NewReno module instead of the one hard >> coded >> in the system? (I know, sounds silly - change the hard coded settings, >> but, >> maybe there is a way...) >> >> Thank you in advance! >> >> BR, >> Karlis >> >> On Thu, May 21, 2015 at 10:54 AM, Karlis Laivins < >> karlis.laivins@gmail.com> >> wrote: >> >> > Hello, >> > >> > Tried both, still the same issue... >> > >> > BR, >> > KL >> > >> > On Thu, May 21, 2015 at 7:30 AM, Adrian Chadd >> wrote: >> > >> >> Hi, >> >> >> >> Try kldxref /boot/kernel >> >> >> >> If it doesn't help, try recompiling the module. >> >> >> >> >> >> -a >> >> >> >> >> >> On 20 May 2015 at 19:41, Karlis Laivins >> wrote: >> >> > Good Morning, >> >> > >> >> > I have a following issue, maybe someone has encountered this and can >> >> > provide me with a quick solution to a following issue. >> >> > >> >> > I have compiled a module, which is a modified version of the NewReno >> >> > congestion control algorithm. I tried to load it into Kernel >> >> successfully >> >> > before I recompiled Kernel with a following config file, so I can use >> >> > Imunes and test the new module: >> >> > >> >> > include GENERIC >> >> > nooptions FLOWTABLE >> >> > options VIMAGE >> >> > options VNET_DEBUG >> >> > options MROUTING >> >> > >> >> > options IPSEC >> >> > device crypto >> >> > options IPSEC_DEBUG >> >> > >> >> > options DDB >> >> > options KDB >> >> > >> >> > The problem is - after the Kernel has been reompiled, I can no longer >> >> load >> >> > the module with kldload. The error I get is: >> >> > >> >> > link_elf: symbol tcp_do_rfc3465 undefined >> >> > kldload: can't load cc_changedreno.ko: No such file or directory >> >> > >> >> > And this is despite the fact the cc_changedreno.ko module is in >> >> > /boot/kernel/. >> >> > >> >> > Thank you in advance! >> >> > >> >> > BR, >> >> > Karlis >> >> > _______________________________________________ >> >> > freebsd-net@freebsd.org mailing list >> >> > http://lists.freebsd.org/mailman/listinfo/freebsd-net >> >> > To unsubscribe, send any mail to " >> freebsd-net-unsubscribe@freebsd.org" >> >> >> > >> > >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >> >