From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Gopal Yadav <gopunop@gmail.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [nftables] counter not working on kernel 5.6
Date: Mon, 28 Sep 2020 10:41:35 +0200 [thread overview]
Message-ID: <20200928084135.GA13120@salvia> (raw)
In-Reply-To: <CAAUOv8iOGYqi9YvvszTJ40b8bqAWT3dzhDbjdHHJTPQtnaseSw@mail.gmail.com>
On Mon, Sep 28, 2020 at 12:48:39PM +0530, Gopal Yadav wrote:
> Running the below commands:
>
> nft add table inet dev
> nft add set inet dev ports_udp { type inet_service\; size 65536\;
> flags dynamic, timeout\; timeout 30d\; }
> nft add element inet dev ports_udp { 53 timeout 30d counter }
> nft list ruleset
>
> Output:
> table inet dev {
> set ports_udp {
> type inet_service
> size 65536
> flags dynamic,timeout
> timeout 30d
> elements = { 53 expires 29d23h59m56s184ms }
> }
> }
>
> Expected Output:
> table inet dev {
> set ports_udp {
> type inet_service
> size 65536
> flags dynamic,timeout
> timeout 30d
> elements = { 53 expires 29d23h59m56s184ms counter packets 0 bytes 0 }
> }
> }
>
> Am I doing something wrong?
You need a 5.7 kernel.
prev parent reply other threads:[~2020-09-28 8:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-28 7:18 [nftables] counter not working on kernel 5.6 Gopal Yadav
2020-09-28 8:41 ` 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=20200928084135.GA13120@salvia \
--to=pablo@netfilter.org \
--cc=gopunop@gmail.com \
--cc=netfilter-devel@vger.kernel.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 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).