bugzilla-daemon at netfilter.org
2023-Nov-10  11:22 UTC
[Bug 1722] New: Rule delete with open interval does not work
https://bugzilla.netfilter.org/show_bug.cgi?id=1722
            Bug ID: 1722
           Summary: Rule delete with open interval does not work
           Product: ebtables
           Version: unspecified
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: ebtables-nft
          Assignee: pablo at netfilter.org
          Reporter: phil at nwl.cc
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"
-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20231110/de556d54/attachment.html>
