From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Laura Garcia Liebana <nevola@gmail.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH nft v2] src: hash: support of symmetric hash
Date: Mon, 6 Mar 2017 18:26:25 +0100 [thread overview]
Message-ID: <20170306172625.GA16950@salvia> (raw)
In-Reply-To: <20170228174250.wx4sjfa6dr5kcno6@nevthink>
On Tue, Feb 28, 2017 at 06:42:50PM +0100, Laura Garcia Liebana wrote:
> This patch provides symmetric hash support according to source
> ip address and port, and destination ip address and port.
>
> The new attribute NFTA_HASH_TYPE has been included to support
> different types of hashing functions. Currently supported
> NFT_HASH_JENKINS through jhash and NFT_HASH_SYM through symhash.
>
> The main difference between both types are:
> - jhash requires an expression with sreg, symhash doesn't.
> - symhash supports modulus and offset, but not seed.
>
> Examples:
>
> nft add rule ip nat prerouting ct mark set jhash ip saddr mod 2
> nft add rule ip nat prerouting ct mark set symhash mod 2
Applied, thanks Laura.
prev parent reply other threads:[~2017-03-06 17:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-28 17:42 [PATCH nft v2] src: hash: support of symmetric hash Laura Garcia Liebana
2017-03-06 17:26 ` Pablo Neira Ayuso [this message]
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=20170306172625.GA16950@salvia \
--to=pablo@netfilter.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=nevola@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).