<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 - Wrong error printed when trying to add base chain named same as existing regular chain"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1782">1782</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Wrong error printed when trying to add base chain named same as existing regular chain
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>1.0.x
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </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>anton.khazan@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When trying to add a base chain and a regular chain with matching name already
exists, wrong error is printed.

Steps to reproduce the issue:

nft add table test
nft add chain test t # add regular chain t
nft add chain test t { type filter hook postrouting priority 0\; policy
accept\; } # try to add base chain t

Output:
Error: Chain of type "filter" is not supported, perhaps kernel support is
missing?

Expected output: something like
Error: Regular chain "t" already exists.

When the regular chain "t" is removed, the above command works, so I believe
that the actual problem is not lack of support for chain of type "filter" but
rather the fact that same-named regular chain already exists.

Same behavior with  nft versions v1.0.8, v1.0.9</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>