From owner-svn-src-all@freebsd.org Sun Jan 10 08:30:28 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4416AA69357; Sun, 10 Jan 2016 08:30:28 +0000 (UTC) (envelope-from melifaro@ipfw.ru) Received: from forward17j.cmail.yandex.net (forward17j.cmail.yandex.net [5.255.227.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F33341D76; Sun, 10 Jan 2016 08:30:27 +0000 (UTC) (envelope-from melifaro@ipfw.ru) Received: from web1j.yandex.ru (web1j.yandex.ru [5.45.198.42]) by forward17j.cmail.yandex.net (Yandex) with ESMTP id A135620EC2; Sun, 10 Jan 2016 11:30:22 +0300 (MSK) Received: from 127.0.0.1 (localhost [127.0.0.1]) by web1j.yandex.ru (Yandex) with ESMTP id 816242181AE8; Sun, 10 Jan 2016 11:30:21 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfw.ru; s=mail; t=1452414622; bh=UHYEb5/WKnWJJwP+bjtFiLHHC6L5WlLycUu/fnu0LDM=; h=From:To:In-Reply-To:References:Subject:Date; b=gvs+fh9s+vAlQNePNPjE9XSam+iAIlRn3yDJg3lgxESV8XdJo0yzE6lBoXkHtIBFG NdW++XCfEubE6NHFrG987BQMDSXnbLdd0h0cNHv2VSe4Z3ch9GDok/RX3G0cMwWtl7 F0bx5H8exu/odeZlDU/DMfxgcz4Gp/Spl4IaUaV4= Received: by web1j.yandex.ru with HTTP; Sun, 10 Jan 2016 11:30:21 +0300 From: Alexander V. Chernikov To: Bjoern A. Zeeb , "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" In-Reply-To: <201601100814.u0A8EQXw022553@repo.freebsd.org> References: null <201601100814.u0A8EQXw022553@repo.freebsd.org> Subject: Re: svn commit: r293629 - head/sys/netpfil/ipfw MIME-Version: 1.0 Message-Id: <274801452414621@web1j.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Sun, 10 Jan 2016 11:30:21 +0300 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=koi8-r X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jan 2016 08:30:28 -0000 I thought IP-less kernels have no reason to compile ipfw at all, am I wrong? 10.01.2016, 11:14, "Bjoern A. Zeeb" : > Author: bz > Date: Sun Jan 10 08:14:25 2016 > New Revision: 293629 > URL: https://svnweb.freebsd.org/changeset/base/293629 > > Log: > ššInitialize error after r293626 in case neither INET nor INET6 is > ššcompiled into the kernel. Ideally lots more code would just not > ššbe called (or compiled in) in that case but that requires a lot > ššmore surgery. For now try to make IP-less kernels compile again. > > Modified: > ššhead/sys/netpfil/ipfw/ip_fw_table_algo.c > > Modified: head/sys/netpfil/ipfw/ip_fw_table_algo.c > ============================================================================== > --- head/sys/netpfil/ipfw/ip_fw_table_algo.c Sun Jan 10 07:50:35 2016 (r293628) > +++ head/sys/netpfil/ipfw/ip_fw_table_algo.c Sun Jan 10 08:14:25 2016 (r293629) > @@ -3826,6 +3826,9 @@ ta_lookup_kfib(struct table_info *ti, vo > šššššššššššššššššerror = fib6_lookup_nh_basic(ti->data, > ššššššššššššššššššššš(struct in6_addr *)key, 0, 0, 0, &nh6); > š#endif > +#if !defined(INET6) && !defined(INET) > + error = ENOENT; > +#endif > > šššššššššif (error != 0) > šššššššššššššššššreturn (0);