Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1002449imm; Tue, 5 Jun 2018 07:44:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIkrex6xH985weBF1bYnSg2dqhGTc/c/63W8CRxzsPDcjJOK8t8UUEa1sRYeUqiyKzadnGl X-Received: by 2002:a63:770f:: with SMTP id s15-v6mr21611088pgc.30.1528209884258; Tue, 05 Jun 2018 07:44:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528209884; cv=none; d=google.com; s=arc-20160816; b=U3mPUp0ji1Xg5G9lQb7/fFKTwfdjNhrUOJ3O0kr7X/CRWye8bFskz7YNQ234+0z15X cqM0TYGWyRPCUmgqkNiknlAS63MWGEsUNh+qwiJdRDLnbnOgqcIEiUv3IPxlKA/KHsuU PmLOTQ22p2wttLv6TfxafEk9vH1c0yn7OZK26E12WpBMuFqE+kwpjE9LdmXWPpDzW/bS 08pQuNmotLAC3hV3ZffXrsqjNG0F6FjVbot8kAkgIeyEqdMmPFFt5fabASK9mg32qOHq nY7UOh8T5Mn19UAM85txLmScjaFbJMrF8Yz6YBZwz59+sXvWiY4OMGMUbqoFJzWMtPFO 8P3w== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:arc-authentication-results; bh=4RlnIfHg8aZv/dENxdptylXumw1Ts/n7Oz77ILe8/oA=; b=Z3m8IqhOYwyEmB7wzsDl9oDCycFSTIRmsMoKxvIxD+lkrYdGZA9evxwRJnLpyqd7jw 9O3s+HE+x5PjujXqzsuDlh40q68vG7q9VNgOjPv1Czz+yubhZW7JpSyPVkBN+yDWFy9G z7nSFjsRoxGipMd9T2zv3RS8w4NSMfbDxPqfbNhD42BT871qPtkFTFSljI53u6HmriEB /4hfChBoO1HkBv3oiTsfCxKfWWdJIIzlym5tiaYeAcqr7ld/gBHxr6JmkhLK4ySMlkV3 1+A+19Gyg7GJxNdmRfyayVtZKtJ0f3kWvC66FDkJUQ2RqE0jA0/KlvbNvoVlb1MM9rcr y6Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ju8OvTUx; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s17-v6si10336655pgv.639.2018.06.05.07.44.29; Tue, 05 Jun 2018 07:44:44 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ju8OvTUx; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752626AbeFEOm4 (ORCPT + 99 others); Tue, 5 Jun 2018 10:42:56 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:45663 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752178AbeFEOmz (ORCPT ); Tue, 5 Jun 2018 10:42:55 -0400 Received: by mail-lf0-f66.google.com with SMTP id n3-v6so3974530lfe.12; Tue, 05 Jun 2018 07:42:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=4RlnIfHg8aZv/dENxdptylXumw1Ts/n7Oz77ILe8/oA=; b=Ju8OvTUxXxwthU6y6O74UXV5v5twcJrO6yF0IVyHBUT2STDyWtlUmThwd+ajuwx2uo HUML+q2g5F8CcMUA4vNdwHm586A3SxldUS3qvGK8rLlk8XqFN+dhyW/wnvy2ckRbAK5R B6Jrxf8ctfLO2ZWsHh9MXl/MXFNs2U7CdMKAtBsplKTC1jgdhZL823dw0awSHpUBj74z UHZppKVbGiDU0EkaSMYbMzdmGXU/lwjI4ysXcNqZeZXpqU2aTRNLa7tlvWjh4MxRuRBk tQm8xUnaVEoGo0iG9zFUiq+xAkSrOJKh6Zq915r1q3KAyqimwXCnHskqtfqCCV6IJBjj raLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=4RlnIfHg8aZv/dENxdptylXumw1Ts/n7Oz77ILe8/oA=; b=rUrK3sm2cXTnW7jXWLvf8MOhYmTKRoiQLLVfudnxawKpGRLsGu08981SVcAZZJ+Pue yuR0vJbP3yDu0T6hh3s2SkN/NSZjyf1VJiSlf875zXNO3F6BJVZUJSdcabDEGJnrv3yy OlKT34AWTMi9YFdpKKy4dVSEYuAkjFpO5Zz/W7zewSXqQmvoR1AfxlkTZv5Ky66GfB9l N+Y1rHy6RxteDoALFlFYYm4MJoawxsxMmF/oLFE4B2mam1LT5C3k05QCCJZchoszkV5T aepIee6Q5mLQqRjg3iE5yLP4am0DH/t1X2ZiJZIXS1B/xszd3kxzDVo5dTJBoJ7Vd4kT H3iw== X-Gm-Message-State: ALKqPwfBrpYKV3Q4Wcq9sbooeZ3AzzN0RxoNSTao0ixcVwioCiagMCGZ fJuEP1lp62l6wr6w8gcGj3IPEMGFJF5S8eJBgOA= X-Received: by 2002:a2e:1092:: with SMTP id 18-v6mr19347753ljq.115.1528209773508; Tue, 05 Jun 2018 07:42:53 -0700 (PDT) MIME-Version: 1.0 References: <20180605114056.1239571-1-arnd@arndb.de> In-Reply-To: <20180605114056.1239571-1-arnd@arndb.de> From: =?UTF-8?B?RWNrbCwgTcOhdMOp?= Date: Tue, 5 Jun 2018 16:42:27 +0200 Message-ID: Subject: Re: [PATCH] netfilter: provide udp*_lib_lookup for nf_tproxy To: arnd@arndb.de Cc: pablo@netfilter.org, davem@davemloft.net, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, pabeni@redhat.com, willemb@google.com, edumazet@google.com, dsahern@gmail.com, kafai@fb.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arnd Bergmann ezt =C3=ADrta (id=C5=91pont: 2018. j=C3=BAn. = 5., K, 13:41): > > 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 Acked-by: M=C3=A1t=C3=A9 Eckl