From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: [PATCH v3 nft 1/4] src: make hash seed attribute optional Date: Wed, 9 Nov 2016 00:22:42 +0100 Message-ID: <20161108232242.GA32040@salvia> References: <20161104125927.GA20394@sonyv> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netfilter-devel@vger.kernel.org To: Laura Garcia Liebana Return-path: Received: from mail.us.es ([193.147.175.20]:33962 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750832AbcKHXWr (ORCPT ); Tue, 8 Nov 2016 18:22:47 -0500 Received: from antivirus1-rhel7.int (unknown [192.168.2.11]) by mail.us.es (Postfix) with ESMTP id A51DA8D0504 for ; Wed, 9 Nov 2016 00:22:45 +0100 (CET) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id 95BD0DA808 for ; Wed, 9 Nov 2016 00:22:45 +0100 (CET) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id 83D09DA80C for ; Wed, 9 Nov 2016 00:22:43 +0100 (CET) Content-Disposition: inline In-Reply-To: <20161104125927.GA20394@sonyv> Sender: netfilter-devel-owner@vger.kernel.org List-ID: On Fri, Nov 04, 2016 at 01:59:31PM +0100, Laura Garcia Liebana wrote: > The hash expression requires a seed attribute to call the jhash > operation, eg. > > # nft add rule x y meta mark set jhash ip saddr . ip daddr mod 2 \ > seed 0xdeadbeef > > With this patch the seed attribute is optional and it's generated by a > random function from userspace, eg. > > # nft add rule x y meta mark set jhash ip saddr . ip daddr mod 2 > > The kernel will take care of generate a random seed. Applied, thanks Laura.