Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6933EC04AAF for ; Sat, 18 May 2019 20:45:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 496F420675 for ; Sat, 18 May 2019 20:45:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729325AbfERUpO (ORCPT ); Sat, 18 May 2019 16:45:14 -0400 Received: from Chamillionaire.breakpoint.cc ([146.0.238.67]:52556 "EHLO Chamillionaire.breakpoint.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729316AbfERUpO (ORCPT ); Sat, 18 May 2019 16:45:14 -0400 Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.89) (envelope-from ) id 1hS6Ce-0000S0-HF; Sat, 18 May 2019 22:45:12 +0200 Date: Sat, 18 May 2019 22:45:12 +0200 From: Florian Westphal To: Fernando Fernandez Mancera Cc: Florian Westphal , netfilter-devel@vger.kernel.org Subject: Re: [PATCH 4/5 nf-next] netfilter: synproxy: extract IPv6 SYNPROXY infrastructure from ip6t_SYNPROXY Message-ID: <20190518204512.p2aah3b7ud7bzyzo@breakpoint.cc> References: <20190518182151.1231-1-ffmancera@riseup.net> <20190518182151.1231-5-ffmancera@riseup.net> <20190518202032.2bjv4e547kli56c6@breakpoint.cc> <0719D27E-7E34-4DD5-8D1A-7B34794F272E@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0719D27E-7E34-4DD5-8D1A-7B34794F272E@riseup.net> User-Agent: NeoMutt/20170113 (1.7.2) Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Fernando Fernandez Mancera wrote: > >If we would make it accessible via nf_ipv6_ops struct, then the > >dependency goes away and we could place ipv4 and ipv6 parts in a > >single module. > > > >Just saying, it would avoid adding extra modules. > > This would be awesome but I am not sure if it is possible right now. I am going to try it and send a new patch series. Thank you about this! You would need to make something similar as commit 960587285a56ec3cafb4d1e6b25c19eced4d0bce first. Let me know if you need help. > >We could then have > > > >nf_synproxy.ko # shared code > >nft_synproxy.ko # nftables frontend > >xt_SYNPROXY.ko # ip(6)tables frontends > > In this case, ip6t_synproxy wouldn't need to select IPV6 Cookie module right? Thanks! No, it would not need to do this. Basically all the .c code would have #if IS_ENABLED(CONFIG_IPV6) ipv6-code here #endif where needed, so in case the kernel is built with CONFIG_IPV6=m|y, the functionality is available.