From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Laura Garcia Liebana <nevola@gmail.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH libnftnl] expr: hash: support of symmetric hash
Date: Mon, 6 Mar 2017 17:59:37 +0100 [thread overview]
Message-ID: <20170306165937.GA5076@salvia> (raw)
In-Reply-To: <20170223111108.r2sw3wr6nbpuip7v@nevthink>
On Thu, Feb 23, 2017 at 12:11:08PM +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.
prev parent reply other threads:[~2017-03-06 17:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-23 11:11 [PATCH libnftnl] expr: hash: support of symmetric hash Laura Garcia Liebana
2017-03-06 16:59 ` 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=20170306165937.GA5076@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 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.