Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1651147rwb; Thu, 8 Dec 2022 13:29:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf6JY8zpWFJQOIO8k+Jsy+z+FKaQ+FUQGIfoHMLNc0rRB9UPaadLDpZuGdUcEPFirn6LOAHG X-Received: by 2002:aa7:c1d0:0:b0:46b:431f:f2d4 with SMTP id d16-20020aa7c1d0000000b0046b431ff2d4mr17434792edp.198.1670534967807; Thu, 08 Dec 2022 13:29:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670534967; cv=none; d=google.com; s=arc-20160816; b=LwO0qo726X+OWH5G/9c0pFjLrNbDdcQmzxw1Dke/OIR2FUrqB/vhc91f//I7iAiMD8 A5SwGyZTWdFceV5NcZgPG7yjOUbJeO5dJ6Q2YuZpfFtZv6MOT9eWqe2SijRjLqnsEJXw K3swYcZSkyIBIQ/zTKByFaKnqrfXZ8OZVXcFxpel9KBIxmK9ZxqC6U3z57Mk1W6p0213 qUsusbtsWxN03x0PPPv7L3RUXdw5znPngOFESNhkXt7pJU/bZDEOfUUMogn5fLZ6XEO4 3Uc6wQfsJCe8ykgIIyms4Ac7JuOnT7PtmISrcCDcw9ANf0BOFXOSE85OK6PX/51DxoeH oknQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=pVLF6J/GVw9f7ZEzrs3k4qMD9aKXSqNKHCQjkyQtyf0=; b=wSnDHjniom/QWqTFKQfRfM/3Yq+T3PM2yqQfciPjU90Cq4MMziB0MEBB/i9GUwAH/m siE1JnWSnM3VoVE/wLCh1INwOh5fCGK2rni9ytkJzgDEzqhlYV0LbyFqBBPGBSrqApid n7xKlGHUZgApbwOkQJCuVAg5nKVsd9TW2xI267b+WcXuhqXdoF41wKVTSExGwAochZVi B0dPZx/9u3lJ99ES5deDhJFJZo7OyGdyGCfkwWE1ehMQq/0KsosffLqGGUbZ/elJrdzM MIDZqyZPG4bifJxLc7P2l7j18Tsq/MJPA5ORedImjQNQkRw2PSXJ4eI0GPr7K5iYz62j 0bwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd30-20020a170907629e00b007bef6c96ebfsi624817ejc.152.2022.12.08.13.29.09; Thu, 08 Dec 2022 13:29:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229804AbiLHUqT (ORCPT + 73 others); Thu, 8 Dec 2022 15:46:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbiLHUqR (ORCPT ); Thu, 8 Dec 2022 15:46:17 -0500 Received: from mail.netfilter.org (mail.netfilter.org [217.70.188.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E435818E32; Thu, 8 Dec 2022 12:46:16 -0800 (PST) Date: Thu, 8 Dec 2022 21:46:13 +0100 From: Pablo Neira Ayuso To: Qingfang DENG Cc: Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] netfilter: flowtable: really fix NAT IPv6 offload Message-ID: References: <20221208123529.567883-1-dqfext@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221208123529.567883-1-dqfext@gmail.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 08, 2022 at 08:35:29PM +0800, Qingfang DENG wrote: > The for-loop was broken from the start. It translates to: > > for (i = 0; i < 4; i += 4) > > which means the loop statement is run only once, so only the highest > 32-bit of the IPv6 address gets mangled. > > Fix the loop increment. Applied, thanks