<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 - Rule delete with open interval does not work"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1722">1722</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Rule delete with open interval does not work
</td>
</tr>
<tr>
<th>Product</th>
<td>ebtables
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P5
</td>
</tr>
<tr>
<th>Component</th>
<td>ebtables-nft
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pablo@netfilter.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>phil@nwl.cc
</td>
</tr></table>
<p>
<div>
<pre>One of the many ebtables oddities:
| ebtables -D FORWARD 3:
is supposed to delete the third and all following rules in FORWARD chain.
delete_entry() in xtables-eb.c is not aware of this, though. In practice, the
code will only add a single rule delete command to the list, namely for the
start interval one.
Simple reproducer:
| ebtables -A FORWARD -j RETURN
| ebtables -A FORWARD -j RETURN
| ebtables -A FORWARD -j RETURN
| ebtables -D FORWARD 2:
| [[ $(ebtables -L FORWARD | grep -c RETURN) -eq 1 ]] || echo "fail"</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>