Re: [PATCH 021/103] netfilter: xtables: consolidate table hook functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 2009-08-10 10:58, Patrick McHardy wrote:
>Jan Engelhardt wrote:
>> For a following patch in this series, we will be requiring that a
>> single hook function per table does the processing.
>
>Which one?

"generate nf_hook_ops on-demand"

>>  {
>> -	return arpt_do_table(skb, hook, in, out,
>> -			     dev_net(in)->ipv4.arptable_filter);
>> -}
>> +	if (hook == NF_ARP_OUT)
>> +		return arpt_do_table(skb, hook, in, out,
>> +		       dev_net(out)->ipv4.arptable_filter);
>
>I have to say, I really dislike this strange formatting style (I
>think its an emacs thing, you're not the only one doing this).
>The arguments are all neatly aligned so far, please keep it that
>way.

Well only good I am not into Emacs ;)

The reasoning for such unconscious action may simply be that some
function names are a bit long and cause an unnecessary indentation to
the right in such cases. Or you could argue all "arguments" to 'return'
are actually aligned - with respect to the return keyword that is.

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux