From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [PATCH netfilter: nft] Add the connmark meta_key Date: Mon, 6 Jan 2014 18:19:28 +0000 Message-ID: <20140106181928.GA19666@macbook.localnet> References: <1389027476-16837-1-git-send-email-kristian.evensen@gmail.com> <20140106170523.GA9894@breakpoint.cc> <20140106171523.GC23002@macbook.localnet> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Florian Westphal , netfilter-devel@vger.kernel.org To: Kristian Evensen Return-path: Received: from stinky.trash.net ([213.144.137.162]:55955 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754947AbaAFSTc (ORCPT ); Mon, 6 Jan 2014 13:19:32 -0500 Content-Disposition: inline In-Reply-To: Sender: netfilter-devel-owner@vger.kernel.org List-ID: On Mon, Jan 06, 2014 at 07:09:58PM +0100, Kristian Evensen wrote: > Hello, > > On Mon, Jan 6, 2014 at 6:15 PM, Patrick McHardy wrote: > > Well, actually the ct expression already supports connmark, as does userspace. > > > > #ifdef CONFIG_NF_CONNTRACK_MARK > > case NFT_CT_MARK: > > dest->data[0] = ct->mark; > > return; > > #endif > > Thank you very much for pointing this out. I will change my approach > and add a set command in ct (similar to what was recently added to > meta). Or is someone already working on this? Not sure what you're trying to achieve, we already support the connmark in the ct expression: nft filter output ct mark 0x1 ...