<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 - __netlink_gen_concat_key assertion raised by attempt to expand set-defining variable as a set key"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1715">1715</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>__netlink_gen_concat_key assertion raised by attempt to expand set-defining variable as a set key
          </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>x86_64
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </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>kfm@plushkava.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Consider the following ruleset.

define ext_if = { "eth0", "eth1" }
table ip filter {
    chain c {
        iifname . tcp dport { $ext_if . 22 } accept
    }
}

Attempting to load this ruleset results in SIGABRT.

BUG: invalid expression type 'set' in setnft: netlink.c:304:
__netlink_gen_concat_key: Assertion `0' failed.
Aborted (core dumped)

I presume that this is a consequence of ntables not knowing how to treat such a
variable, which implies the generation of multiple elements. Ideally, nftables
would be able to handle this and commpose the set as { "eth0" . 22, "eth1" . 22
}. Otherwise, it should instead print an informative diagnostic message and
exit, rather than die to a signal.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>