From: Patrick McHardy <kaber@trash.net>
To: Jan Engelhardt <jengelh@computergmbh.de>
Cc: netfilter-devel@lists.netfilter.org,
Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Subject: Re: Follow packets in rules
Date: Mon, 25 Jun 2007 14:52:11 +0200 [thread overview]
Message-ID: <467FBA7B.4050100@trash.net> (raw)
In-Reply-To: <Pine.LNX.4.64.0706251445390.3137@fbirervta.pbzchgretzou.qr>
Jan Engelhardt wrote:
>
> +static const char *hooknames[] = {
> + [NF_IP_PRE_ROUTING] = "PREROUTING",
> + [NF_IP_LOCAL_IN] = "INPUT",
> + [NF_IP_FORWARD] = "FORWARD",
> + [NF_IP_LOCAL_OUT] = "OUTPUT",
> + [NF_IP_POST_ROUTING] = "POSTROUTING",
> +};
>
> Align it up.
>
Yeah, I like that better as well.
>
>
>> --- a/net/netfilter/Kconfig
>> @@ -343,6 +343,18 @@ config NETFILTER_XT_TARGET_NOTRACK
>>
>> [...]
>>
>> --- a/net/netfilter/Makefile
>> +++ b/net/netfilter/Makefile
>> @@ -44,6 +44,7 @@ obj-$(CONFIG_NETFILTER_XT_TARGET_MARK) += xt_MARK.o
>> obj-$(CONFIG_NETFILTER_XT_TARGET_NFQUEUE) += xt_NFQUEUE.o
>> obj-$(CONFIG_NETFILTER_XT_TARGET_NFLOG) += xt_NFLOG.o
>> obj-$(CONFIG_NETFILTER_XT_TARGET_NOTRACK) += xt_NOTRACK.o
>> +obj-$(CONFIG_NETFILTER_XT_TARGET_TRACE) += xt_TRACE.o
>> obj-$(CONFIG_NETFILTER_XT_TARGET_SECMARK) += xt_SECMARK.o
>> obj-$(CONFIG_NETFILTER_XT_TARGET_TCPMSS) += xt_TCPMSS.o
>> obj-$(CONFIG_NETFILTER_XT_TARGET_CONNSECMARK) += xt_CONNSECMARK.o
>>
>
> I don't know about your locale, but in mine,
> SECMARK < TCPMSS < TRACE holds.
> (Including CONNSECMARK < SECMARK, but that seems to be another thing.)
>
They're not strictly alphabetically ordered. TRACE is next to NOTRACK
because they're both raw table targets. In the TRACE case I think it
would make sense to lift that restriction though.
>
>> +MODULE_LICENSE("GPL");
>> +MODULE_ALIAS("ipt_TRACE");
>> +MODULE_ALIAS("ip6t_TRACE");
>>
>
> No MODULE_AUTHOR/MODULE_DESCRIPTION?
>
Not required. How really reads those anyway?
>
>> +static struct xt_target xt_trace_target[] = {
>> + {
>> + .name = "TRACE",
>>
> ^ spaces?
>
Thanks, will fix.
next prev parent reply other threads:[~2007-06-25 12:52 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-12 18:08 Follow packets in rules Fabrice Rafart
2007-06-12 21:41 ` Simon
2007-06-13 7:31 ` Fabrice Rafart
2007-06-18 16:12 ` Simon
2007-06-18 16:14 ` Patrick McHardy
2007-06-13 8:57 ` Pablo Neira Ayuso
2007-06-13 15:43 ` Juan León
2007-06-13 16:28 ` Samuel Jean
2007-06-13 16:53 ` Patrick McHardy
2007-06-13 19:43 ` Jozsef Kadlecsik
2007-06-14 7:55 ` Fabrice Rafart
2007-06-14 13:13 ` Patrick McHardy
2007-06-14 14:18 ` Jozsef Kadlecsik
2007-06-14 14:23 ` Patrick McHardy
2007-06-18 10:16 ` Jozsef Kadlecsik
2007-06-18 12:49 ` Patrick McHardy
2007-06-18 13:05 ` Jozsef Kadlecsik
2007-06-18 13:08 ` Patrick McHardy
2007-06-22 14:20 ` Patrick McHardy
2007-06-23 16:45 ` Jozsef Kadlecsik
2007-06-24 14:48 ` Patrick McHardy
2007-06-25 12:19 ` Patrick McHardy
2007-06-25 12:49 ` Jan Engelhardt
2007-06-25 12:52 ` Patrick McHardy [this message]
2007-06-25 13:00 ` Patrick McHardy
2007-06-25 13:52 ` Jan Engelhardt
2007-06-25 13:55 ` Patrick McHardy
2007-07-03 15:07 ` Fabrice Rafart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=467FBA7B.4050100@trash.net \
--to=kaber@trash.net \
--cc=jengelh@computergmbh.de \
--cc=kadlec@blackhole.kfki.hu \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.