[Bug 994] New: Named sets with type "ipv4_addr" do not allow adding CIDR elements

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Thu Jan 8 20:14:23 CET 2015


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

            Bug ID: 994
           Summary: Named sets with type "ipv4_addr" do not allow adding
                    CIDR elements
           Product: nftables
           Version: unspecified
          Hardware: x86_64
                OS: other
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: nft
          Assignee: pablo at netfilter.org
          Reporter: admin at rollinix.net

Overview: 
  Attempting to add an element in CIDR notation to a named set with type
"ipv4_addr" fails with "nft: netlink.c:216: alloc_nft_setelem: Assertion
`expr->ops->type == EXPR_MAPPING' failed."  

Steps to reproduce:
  nft add set inet filter test { type ipv4_addr\; }
  nft add element inet filter test { 10.0.0.1 }
  nft add element inet filter test { 192.168.0.0/16 }

Actual result:
  (Error) nft: netlink.c:216: alloc_nft_setelem: Assertion `expr->ops->type ==
EXPR_MAPPING' failed.
  Aborted (core dumped)

Expected result:
  Should be able to create a named set identical to the anonymous set in the
following command that works:
    nft add rule inet filter test ip saddr { 10.0.0.1, 192.168.0.0/16 } counter

-- 
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/20150108/c8855cf4/attachment.html>


More information about the netfilter-buglog mailing list