From: Florian Westphal <fw@strlen.de>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: Shyam Saini <mayhs11saini@gmail.com>,
netfilter-devel@vger.kernel.org, arturo@debian.org, fw@strlen.de
Subject: Re: [PATCH 1/1] extensions: libxt_cluster: Add translation to nft
Date: Wed, 24 May 2017 17:46:15 +0200 [thread overview]
Message-ID: <20170524154615.GB32408@breakpoint.cc> (raw)
In-Reply-To: <20170524154419.GA24697@salvia>
Pablo Neira Ayuso <pablo@netfilter.org> wrote:
> On Wed, May 24, 2017 at 06:01:51PM +0530, Shyam Saini wrote:
> > Add translation for cluster to nft
>
> I think this should be:
>
> -m cluster --cluster-total-nodes 2 --cluster-local-node 1 --cluster-hash-seed 0xdeadbeef
>
> should be translated to:
>
> jhash ct original saddr mod 2 seed 0xdeadbeef eq 0
>
> if --cluster-local-node is 2, then:
>
> jhash ct original saddr mod 2 seed 0xdeadbeef eq 1
Looks good. But I think we need to take care of mangling pkttype as
well, right?
next prev parent reply other threads:[~2017-05-24 15:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-24 12:31 [PATCH 1/1] extensions: libxt_cluster: Add translation to nft Shyam Saini
2017-05-24 15:43 ` Florian Westphal
2017-05-25 10:10 ` Shyam Saini
2017-05-24 15:44 ` Pablo Neira Ayuso
2017-05-24 15:46 ` Florian Westphal [this message]
2017-05-24 16:05 ` Pablo Neira Ayuso
2017-05-25 10:12 ` Shyam Saini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170524154615.GB32408@breakpoint.cc \
--to=fw@strlen.de \
--cc=arturo@debian.org \
--cc=mayhs11saini@gmail.com \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.