[Bug 1717] New: Listing a set may or may not show the size of a set

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Wed Oct 25 06:42:11 CEST 2023


https://bugzilla.netfilter.org/show_bug.cgi?id=1717

            Bug ID: 1717
           Summary: Listing a set may or may not show the size of a set
           Product: nftables
           Version: 1.0.x
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: nft
          Assignee: pablo at netfilter.org
          Reporter: kfm at plushkava.net

Both of the following examples concern the exact same loaded ruleset.

Here is an example of listing a set where the size is not shown.

# nft -t list set netdev filter block_bogons | awk '$1 == "size" { print $1, $2
}'

Here is an example of listing a different set, where the size is shown.

# nft -t list set netdev filter dropped | awk '$1 == "size" { print $1, $2 }'
size 65535

Neither set was defined with an explicit size, which begets the question: why
does nft decide to report the size for one set and yet not the other? I think
that it should behave consistently, perhaps by always including the size.

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20231025/77086a08/attachment.html>


More information about the netfilter-buglog mailing list