mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
netfilter: xt_recent: add address masking option
The mask option allows you put all address belonging that mask into the same recent slot. This can be useful in case that recent is used to detect attacks from the same network segment. Tested for backward compatibility. Signed-off-by: Denys Fedoryshchenko <denys@visp.net.lb> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
committed by
Pablo Neira Ayuso
parent
1da6dd0798
commit
efdedd5426
@@ -32,4 +32,14 @@ struct xt_recent_mtinfo {
|
||||
__u8 side;
|
||||
};
|
||||
|
||||
struct xt_recent_mtinfo_v1 {
|
||||
__u32 seconds;
|
||||
__u32 hit_count;
|
||||
__u8 check_set;
|
||||
__u8 invert;
|
||||
char name[XT_RECENT_NAME_LEN];
|
||||
__u8 side;
|
||||
union nf_inet_addr mask;
|
||||
};
|
||||
|
||||
#endif /* _LINUX_NETFILTER_XT_RECENT_H */
|
||||
|
||||
Reference in New Issue
Block a user