<html>
    <head>
      <base href="https://bugzilla.netfilter.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - bitwise operator operand display is incorrect when followed by or"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1507">1507</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>bitwise operator operand display is incorrect when followed by or
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>nftables
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86_64
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Ubuntu
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>minor
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>nft
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>pablo@netfilter.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>daniele@orlandi.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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
        }
}</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>