From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: [PATCH RESEND] nft_flow_offload: Fix the peer route get from wrong daddr Date: Wed, 9 Jan 2019 20:03:58 +0100 Message-ID: <20190109190358.o2asukctfbijhbqw@salvia> References: <1547001611-26793-1-git-send-email-wenxu@ucloud.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netfilter-devel@vger.kernel.org, netdev@vger.kernel.org To: wenxu@ucloud.cn Return-path: Received: from mail.us.es ([193.147.175.20]:50202 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726469AbfAITEE (ORCPT ); Wed, 9 Jan 2019 14:04:04 -0500 Received: from antivirus1-rhel7.int (unknown [192.168.2.11]) by mail.us.es (Postfix) with ESMTP id 2861E160C08 for ; Wed, 9 Jan 2019 20:04:02 +0100 (CET) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id 19684DA86C for ; Wed, 9 Jan 2019 20:04:02 +0100 (CET) Content-Disposition: inline In-Reply-To: <1547001611-26793-1-git-send-email-wenxu@ucloud.cn> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, Jan 09, 2019 at 10:40:11AM +0800, wenxu@ucloud.cn wrote: > From: wenxu > > For nat example: > client 1.1.1.7 ---> 2.2.2.7 which dnat to 10.0.0.7 server > > When syn_rcv pkt from server it get the peer(client->server) route > through daddr = ct->tuplehash[!dir].tuple.dst.u3.ip, the value 2.2.2.7 > is not correct in this situation. it should be 10.0.0.7 > ct->tuplehash[dir].tuple.src.u3.ip Patch is correct, applied, thanks.