From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [PATCH] libipt_statistic Date: Tue, 03 Jul 2007 13:46:34 +0200 Message-ID: <468A371A.3000006@trash.net> References: <46891294.9030405@trash.net> <4689387A.4050207@trash.net> <46894116.9000203@trash.net> <46894E8C.4070306@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: Jan Engelhardt , Netfilter Development Mailinglist To: NICOLAS BOULIANE Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org NICOLAS BOULIANE wrote: > On 7/2/07, Jan Engelhardt wrote: > >> >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 >> -- >> > > same result, less intuitive. why should I do that ? Indeed. What would make sense is to use a couple of symbolic constants for the flag values.