Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1017116imm; Tue, 5 Jun 2018 07:56:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJhdlr3x16zXp4Yj2+uM5g1oybccJ69IPKnoeGHvDkYwM9zcK3ABzTCh0FxxMnm0mdwKVfT X-Received: by 2002:a62:1656:: with SMTP id 83-v6mr25878331pfw.61.1528210617237; Tue, 05 Jun 2018 07:56:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528210617; cv=none; d=google.com; s=arc-20160816; b=mGy7j/VHzvrTRzR0ipRvDROQ1yB03b01eB7jMMDFX3dv7TQdC2Q0yWBDzu/dJNhLp3 FrZQVwesw3KyGm40WU+oUFzZ3kuTjrPuf4dHVzgmORP1wwMQ8c5/DgTjpglF/RJfXSQu cb3CmimOp2zoYc9MNWmm7gi9S6Sao8XubzbeuaxfPBMrVCzYBOrVBwGsEtOjH9YszzbW C28/TddPGlROwX0mUMsnXSu/Ru7XZ1s+NOGc+YJByQF0a8bwxSWN0rHfiKdb3zot/fhE DKLUW6dh45eldYOWogNfB4j8TZiT/jObRWBFUxjGdO+fUeVWAkVyXrvL6NZ2BTXAuFv2 KSNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=5MVtAKecvSi19Yj1YyaJWsWFKf+oj+3JPqh0lLKo/b8=; b=Y+Hawhy/ueKyoqpTSfHT3GQdsciWJ4mEKojV4UBb5mmplJ0f0mdPgM/8QorQ/jBehP oJ0Mr8P/UaIGBKDSZl2LD9TdONf9yoU8ksLqz6t6vGMuQ7TerM5nc7btSGM55mnaa9ro pCPOamz5dYdsYLXeZqJo9nulaaV8ZvsZI+/MTpZZgC1vhlzuDmxDJjpe96mEZZOqmd6o OsBqm6xNtHbkLn21kNifyYYw+PwlLr4EBm+w7byi5M8j/PUxbioehFItn95ZbAnUdu6a 0kkf0RjkYMYWdm3d8BJXIz3U/dBCyKHnZEq3VB7Wjq6KGNALyEEIs1It+FZbdeLMZbI5 57EQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a16-v6si4560671pff.43.2018.06.05.07.56.42; Tue, 05 Jun 2018 07:56:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752680AbeFEOy5 (ORCPT + 99 others); Tue, 5 Jun 2018 10:54:57 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:37258 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752085AbeFEOy4 (ORCPT ); Tue, 5 Jun 2018 10:54:56 -0400 Received: from localhost (unknown [66.187.232.66]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 834DE122B9553; Tue, 5 Jun 2018 07:54:54 -0700 (PDT) Date: Tue, 05 Jun 2018 10:54:53 -0400 (EDT) Message-Id: <20180605.105453.339908802413146875.davem@davemloft.net> To: arnd@arndb.de Cc: pablo@netfilter.org, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, ecklm94@gmail.com, pabeni@redhat.com, willemb@google.com, edumazet@google.com, dsahern@gmail.com, kafai@fb.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] netfilter: provide udp*_lib_lookup for nf_tproxy From: David Miller In-Reply-To: <20180605114056.1239571-1-arnd@arndb.de> References: <20180605114056.1239571-1-arnd@arndb.de> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 05 Jun 2018 07:54:56 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann Date: Tue, 5 Jun 2018 13:40:34 +0200 > It is now possible to enable the libified nf_tproxy modules without > also enabling NETFILTER_XT_TARGET_TPROXY, which throws off the > ifdef logic in the udp core code: > > net/ipv6/netfilter/nf_tproxy_ipv6.o: In function `nf_tproxy_get_sock_v6': > nf_tproxy_ipv6.c:(.text+0x1a8): undefined reference to `udp6_lib_lookup' > net/ipv4/netfilter/nf_tproxy_ipv4.o: In function `nf_tproxy_get_sock_v4': > nf_tproxy_ipv4.c:(.text+0x3d0): undefined reference to `udp4_lib_lookup' > > We can actually simplify the conditions now to provide the two functions > exactly when they are needed. > > Fixes: 45ca4e0cf273 ("netfilter: Libify xt_TPROXY") > Signed-off-by: Arnd Bergmann Pablo, I'm going to apply this directly to fix the link failure. Thanks Arnd.