[PATCH] libipt_statistic

Jan Engelhardt jengelh at computergmbh.de
Mon Jul 2 21:55:21 CEST 2007


On Jul 2 2007 14:38, NICOLAS BOULIANE wrote:
>
> Signed-off-by: Nicolas Bouliane
>
> comments are welcome,
> thanks

inline patches preferred..

>Index: libipt_statistic.c
>===================================================================
>--- libipt_statistic.c	(revision 6898)
>+++ libipt_statistic.c	(working copy)
>@@ -113,6 +113,15 @@
> 	if (flags & 0x8 && info->mode != XT_STATISTIC_MODE_NTH)
> 		exit_error(PARAMETER_PROBLEM,
> 			   "--packet can only be used in nth mode");
>+	if ((flags & 0x8) && !(flags & 0x4))

This could perhaps be

	if ((flags & 0xC) == 0x8)


	Jan
-- 



More information about the netfilter-devel mailing list