Re: [PATCH nf-next-2.6] netfilter: add xt_cpu match

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jan Engelhardt
Date: Thursday, July 22, 2010 - 7:19 am

On Thursday 2010-07-22 16:03, Eric Dumazet wrote:


That is not so strange after all, we have many packet agnostic matches: 
xt_time, xt_condition, xt_IDLETIMER, xt_iface.
So this little comment looks a bit redundant.

Or it seems that academia can't come up with enough new protocols in time that
we have to resort to do -m coffeemaker :)


Please take a read in "Writing Netfilter Modules" e-book :-)
It will tell you that types other than fixed ones are a no-no.


Try to keep it alphabetic (KConfig too).


Well the commands you already have presented in the commit log, and the 
most efficient place for these is actually the manpage.


Looks simple enough that it could do it in a single line,

	return (info->cpu == smp_processor_id()) ^ !!info->invert;
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH nf-next-2.6] netfilter: add xt_cpu match, Eric Dumazet, (Thu Jul 22, 7:03 am)
Re: [PATCH nf-next-2.6] netfilter: add xt_cpu match, Jan Engelhardt, (Thu Jul 22, 7:19 am)
Re: [PATCH nf-next-2.6] netfilter: add xt_cpu match, Eric Dumazet, (Thu Jul 22, 8:18 am)
Re: [PATCH nf-next-2.6] netfilter: add xt_cpu match, Jan Engelhardt, (Thu Jul 22, 8:39 am)
Re: [PATCH nf-next-2.6] netfilter: add xt_cpu match, Eric Dumazet, (Thu Jul 22, 9:24 am)
Re: [PATCH nf-next-2.6] netfilter: add xt_cpu match, Patrick McHardy, (Fri Jul 23, 4:00 am)
[PATCH iptables] extension: add xt_cpu match, Eric Dumazet, (Fri Jul 23, 6:43 am)
Re: [PATCH iptables] extension: add xt_cpu match, Patrick McHardy, (Fri Jul 23, 7:13 am)
Re: [PATCH iptables] extension: add xt_cpu match, Jan Engelhardt, (Fri Jul 23, 9:46 am)
Re: [PATCH iptables] extension: add xt_cpu match, Eric Dumazet, (Fri Jul 23, 10:30 am)
Re: [PATCH iptables] extension: add xt_cpu match, Jan Engelhardt, (Fri Jul 23, 10:53 am)