Commit Message

Both extensions were very similar already, but now that they both are
translated into native nftables code, their actual difference (i.e.
match size) doesn't matter anymore.
This change comes with one caveat: Since ebtables limit match is not in
its own file anymore, match preloading automatically also loads the
NFPROTO_UNSPEC limit match. This is not a problem per se since match
lookup will prefer the family-specific one, but when parsing unknown
options, a match without 'parse' callback is encountered. Therefore
do_commandeb() has to check existence of that callback prior to
dereferencing it.
Signed-off-by: Phil Sutter <phil@nwl.cc>
---
extensions/libebt_limit.c | 205 ------------------
extensions/libxt_limit.c | 102 +++++++--
.../ebtables/0002-ebtables-save-restore_0 | 6 +-
.../ebtables/0003-ebtables-restore-defaults_0 | 4 +-
iptables/xtables-eb.c | 5 +-
5 files changed, 97 insertions(+), 225 deletions(-)
delete mode 100644 extensions/libebt_limit.c