summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorRussell Senior <russell@personaltelco.net>2013-07-13 10:08:07 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2013-07-15 02:47:15 +0200
commit8cf6fb833840d794289f2abf04b2c5cade5a37bf (patch)
treef48d162a56a15dd11d274104fb8e25f149ac496e /extensions
parentd7aeda5ed45ac7ca959f12180690caa371b5b14b (diff)
libxt_recent: restore reap functionality to recent module
The reap functionality appears to have been accidentally disabled by (74ded72 libxt_recent: add --mask netmask) since iptables 1.4.15 and later. This adds a patch to restore reap functionality for recent_opts_v1. Patch obtained via: http://patchwork.openwrt.org/patch/3812/ Signed-off-by: Russell Senior <russell@personaltelco.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/libxt_recent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/extensions/libxt_recent.c b/extensions/libxt_recent.c
index f4ebe6a3..42c866cd 100644
--- a/extensions/libxt_recent.c
+++ b/extensions/libxt_recent.c
@@ -63,6 +63,8 @@ static const struct xt_option_entry recent_opts_v1[] = {
.excl = F_ANY_OP, .flags = XTOPT_INVERT},
{.name = "seconds", .id = O_SECONDS, .type = XTTYPE_UINT32,
.flags = XTOPT_PUT, XTOPT_POINTER(s, seconds)},
+ {.name = "reap", .id = O_REAP, .type = XTTYPE_NONE,
+ .also = F_SECONDS },
{.name = "hitcount", .id = O_HITCOUNT, .type = XTTYPE_UINT32,
.flags = XTOPT_PUT, XTOPT_POINTER(s, hit_count)},
{.name = "rttl", .id = O_RTTL, .type = XTTYPE_NONE,