From 8cf6fb833840d794289f2abf04b2c5cade5a37bf Mon Sep 17 00:00:00 2001 From: Russell Senior Date: Sat, 13 Jul 2013 10:08:07 +0000 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- extensions/libxt_recent.c | 2 ++ 1 file changed, 2 insertions(+) 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, -- cgit v1.2.3