[Bug 1506] New: bitwise operator operand display is incorrect when followed by or

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Thu Mar 4 21:29:04 CET 2021


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

            Bug ID: 1506
           Summary: bitwise operator operand display is incorrect when
                    followed by or
           Product: nftables
           Version: unspecified
          Hardware: x86_64
                OS: Ubuntu
            Status: NEW
          Severity: minor
          Priority: P5
         Component: nft
          Assignee: pablo at netfilter.org
          Reporter: daniele at orlandi.com

The third rule has the AND-ed mask displayed incorrectly although it is
arithmetically equivalent:

# nft create table ttt
# nft create chain ttt ccc
# nft "add rule ip ttt ccc dnat to ip daddr  & 0.0.0.255"
# nft "add rule ip ttt ccc dnat to ip daddr  & 255.255.255.0 | 1.2.3.0"
# nft "add rule ip ttt ccc dnat to ip daddr  & 0.0.0.255 | 1.2.3.0"
# nft list ruleset
table ip ttt {
        chain ccc {
                dnat to ip daddr & 0.0.0.255
                dnat to ip daddr & 255.255.255.0 | 1.2.3.0
                dnat to ip daddr & 1.2.3.255 | 1.2.3.0
        }
}

-- 
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/20210304/297671fb/attachment.html>


More information about the netfilter-buglog mailing list