<html>
    <head>
      <base href="https://bugzilla.netfilter.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:fw@strlen.de" title="Florian Westphal <fw@strlen.de>"> <span class="fn">Florian Westphal</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - ebtables-nft: regression in -o option"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1347">bug 1347</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>fw@strlen.de
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - ebtables-nft: regression in -o option"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1347#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - ebtables-nft: regression in -o option"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1347">bug 1347</a>
              from <span class="vcard"><a class="email" href="mailto:fw@strlen.de" title="Florian Westphal <fw@strlen.de>"> <span class="fn">Florian Westphal</span></a>
</span></b>
        <pre>(In reply to Arturo Borrero Gonzalez from <a href="show_bug.cgi?id=1347#c0">comment #0</a>)
<span class="quote">> This ruleset:

> # cat ebtables-fwd-no-o-options-allowed.rules
> *filter
> :PVEFW-FORWARD ACCEPT
> :PVEFW-FWBR-OUT ACCEPT
> -A PVEFW-FORWARD -p IPv4 -j ACCEPT
> -A PVEFW-FORWARD -p IPv6 -j ACCEPT
> -A PVEFW-FORWARD -o fwln+ -j PVEFW-FWBR-OUT
> -A FORWARD -j PVEFW-FORWARD

> works in ebtables-legacy but doesn't in ebtables-nft.</span >

Fix:

diff --git a/iptables/xtables-eb.c b/iptables/xtables-eb.c
--- a/iptables/xtables-eb.c
+++ b/iptables/xtables-eb.c
@@ -197,7 +197,8 @@ int ebt_get_current_chain(const char *chain)
        else if (strcmp(chain, "POSTROUTING") == 0)
                return NF_BR_POST_ROUTING;

-       return -1;
+       /* placeholder for user defined chain */
+       return NF_BR_NUMHOOKS;
 }

Let me know and I'll push it to iptables.git.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>