Patch 2 lifts the restriction of 255 as max hitcount value by adjusting XT_RECENT_MAX_NSTAMPS value and increasing required struct field sizes accordingly. In struct recent_entry, field 'nstamps' was 16bit in size of unclear reasons. Patch 1 changes that to match field 'index' providing rationale why it is sufficient, thus pavin the way for keeping both at 32bit (and avoiding a larger size for 'nstamps'). Phil Sutter (2): netfilter: xt_reent: Reduce size of struct recent_entry::nstamps netfilter: xt_recent: Largely lift restrictions on max hitcount value net/netfilter/xt_recent.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) -- 2.43.0