* [PATCH] Add ip6t_ aliases
@ 2007-10-10 11:44 Jan Engelhardt
2007-10-10 23:33 ` David Miller
0 siblings, 1 reply; 5+ messages in thread
From: Jan Engelhardt @ 2007-10-10 11:44 UTC (permalink / raw)
To: kaber; +Cc: Netfilter Developer Mailing List, davem
Hi,
I think this latecomer patch should go into 2.6.24.
===
Add missing ip6t_modulename aliases.
The patch will add MODULE_ALIAS("ip6t_<modulename>") where missing,
otherwise you will get
ip6tables: No chain/target/match by that name
when xt_<modulename> is not already loaded.
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
---
net/netfilter/xt_CLASSIFY.c | 1 +
net/netfilter/xt_CONNMARK.c | 1 +
net/netfilter/xt_NOTRACK.c | 1 +
net/netfilter/xt_connbytes.c | 1 +
net/netfilter/xt_connmark.c | 1 +
net/netfilter/xt_conntrack.c | 1 +
net/netfilter/xt_dccp.c | 1 +
net/netfilter/xt_sctp.c | 1 +
net/netfilter/xt_tcpmss.c | 1 +
9 files changed, 9 insertions(+)
Index: linux-2.6.23/net/netfilter/xt_CLASSIFY.c
===================================================================
--- linux-2.6.23.orig/net/netfilter/xt_CLASSIFY.c
+++ linux-2.6.23/net/netfilter/xt_CLASSIFY.c
@@ -24,6 +24,7 @@ MODULE_AUTHOR("Patrick McHardy <kaber@tr
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("iptables qdisc classification target module");
MODULE_ALIAS("ipt_CLASSIFY");
+MODULE_ALIAS("ip6t_CLASSIFY");
static unsigned int
target(struct sk_buff **pskb,
Index: linux-2.6.23/net/netfilter/xt_CONNMARK.c
===================================================================
--- linux-2.6.23.orig/net/netfilter/xt_CONNMARK.c
+++ linux-2.6.23/net/netfilter/xt_CONNMARK.c
@@ -27,6 +27,7 @@ MODULE_AUTHOR("Henrik Nordstrom <hno@mar
MODULE_DESCRIPTION("IP tables CONNMARK matching module");
MODULE_LICENSE("GPL");
MODULE_ALIAS("ipt_CONNMARK");
+MODULE_ALIAS("ip6t_CONNMARK");
#include <linux/netfilter/x_tables.h>
#include <linux/netfilter/xt_CONNMARK.h>
Index: linux-2.6.23/net/netfilter/xt_NOTRACK.c
===================================================================
--- linux-2.6.23.orig/net/netfilter/xt_NOTRACK.c
+++ linux-2.6.23/net/netfilter/xt_NOTRACK.c
@@ -9,6 +9,7 @@
MODULE_LICENSE("GPL");
MODULE_ALIAS("ipt_NOTRACK");
+MODULE_ALIAS("ip6t_NOTRACK");
static unsigned int
target(struct sk_buff **pskb,
Index: linux-2.6.23/net/netfilter/xt_connbytes.c
===================================================================
--- linux-2.6.23.orig/net/netfilter/xt_connbytes.c
+++ linux-2.6.23/net/netfilter/xt_connbytes.c
@@ -14,6 +14,7 @@ MODULE_LICENSE("GPL");
MODULE_AUTHOR("Harald Welte <laforge@netfilter.org>");
MODULE_DESCRIPTION("iptables match for matching number of pkts/bytes per connection");
MODULE_ALIAS("ipt_connbytes");
+MODULE_ALIAS("ip6t_connbytes");
static bool
match(const struct sk_buff *skb,
Index: linux-2.6.23/net/netfilter/xt_connmark.c
===================================================================
--- linux-2.6.23.orig/net/netfilter/xt_connmark.c
+++ linux-2.6.23/net/netfilter/xt_connmark.c
@@ -29,6 +29,7 @@ MODULE_AUTHOR("Henrik Nordstrom <hno@mar
MODULE_DESCRIPTION("IP tables connmark match module");
MODULE_LICENSE("GPL");
MODULE_ALIAS("ipt_connmark");
+MODULE_ALIAS("ip6t_connmark");
static bool
match(const struct sk_buff *skb,
Index: linux-2.6.23/net/netfilter/xt_conntrack.c
===================================================================
--- linux-2.6.23.orig/net/netfilter/xt_conntrack.c
+++ linux-2.6.23/net/netfilter/xt_conntrack.c
@@ -18,6 +18,7 @@ MODULE_LICENSE("GPL");
MODULE_AUTHOR("Marc Boucher <marc@mbsi.ca>");
MODULE_DESCRIPTION("iptables connection tracking match module");
MODULE_ALIAS("ipt_conntrack");
+MODULE_ALIAS("ip6t_conntrack");
static bool
match(const struct sk_buff *skb,
Index: linux-2.6.23/net/netfilter/xt_dccp.c
===================================================================
--- linux-2.6.23.orig/net/netfilter/xt_dccp.c
+++ linux-2.6.23/net/netfilter/xt_dccp.c
@@ -24,6 +24,7 @@ MODULE_LICENSE("GPL");
MODULE_AUTHOR("Harald Welte <laforge@netfilter.org>");
MODULE_DESCRIPTION("Match for DCCP protocol packets");
MODULE_ALIAS("ipt_dccp");
+MODULE_ALIAS("ip6t_dccp");
#define DCCHECK(cond, option, flag, invflag) (!((flag) & (option)) \
|| (!!((invflag) & (option)) ^ (cond)))
Index: linux-2.6.23/net/netfilter/xt_sctp.c
===================================================================
--- linux-2.6.23.orig/net/netfilter/xt_sctp.c
+++ linux-2.6.23/net/netfilter/xt_sctp.c
@@ -13,6 +13,7 @@ MODULE_LICENSE("GPL");
MODULE_AUTHOR("Kiran Kumar Immidi");
MODULE_DESCRIPTION("Match for SCTP protocol packets");
MODULE_ALIAS("ipt_sctp");
+MODULE_ALIAS("ip6t_sctp");
#ifdef DEBUG_SCTP
#define duprintf(format, args...) printk(format , ## args)
Index: linux-2.6.23/net/netfilter/xt_tcpmss.c
===================================================================
--- linux-2.6.23.orig/net/netfilter/xt_tcpmss.c
+++ linux-2.6.23/net/netfilter/xt_tcpmss.c
@@ -22,6 +22,7 @@ MODULE_LICENSE("GPL");
MODULE_AUTHOR("Marc Boucher <marc@mbsi.ca>");
MODULE_DESCRIPTION("iptables TCP MSS match module");
MODULE_ALIAS("ipt_tcpmss");
+MODULE_ALIAS("ip6t_tcpmss");
static bool
match(const struct sk_buff *skb,
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Add ip6t_ aliases
2007-10-10 11:44 [PATCH] Add ip6t_ aliases Jan Engelhardt
@ 2007-10-10 23:33 ` David Miller
2007-10-10 23:39 ` Jan Engelhardt
2007-10-11 4:05 ` Patrick McHardy
0 siblings, 2 replies; 5+ messages in thread
From: David Miller @ 2007-10-10 23:33 UTC (permalink / raw)
To: jengelh; +Cc: kaber, netfilter-devel
From: Jan Engelhardt <jengelh@computergmbh.de>
Date: Wed, 10 Oct 2007 13:44:49 +0200 (CEST)
> Hi,
>
>
> I think this latecomer patch should go into 2.6.24.
>
> ===
>
> Add missing ip6t_modulename aliases.
>
> The patch will add MODULE_ALIAS("ip6t_<modulename>") where missing,
> otherwise you will get
>
> ip6tables: No chain/target/match by that name
>
> when xt_<modulename> is not already loaded.
>
> Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Patrick?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Add ip6t_ aliases
2007-10-10 23:33 ` David Miller
@ 2007-10-10 23:39 ` Jan Engelhardt
2007-10-11 4:08 ` Patrick McHardy
2007-10-11 4:05 ` Patrick McHardy
1 sibling, 1 reply; 5+ messages in thread
From: Jan Engelhardt @ 2007-10-10 23:39 UTC (permalink / raw)
To: David Miller; +Cc: kaber, netfilter-devel
On Oct 10 2007 16:33, David Miller wrote:
>>
>> I think this latecomer patch should go into 2.6.24.
>>
>> ===
>>
>> Add missing ip6t_modulename aliases.
>>
>> The patch will add MODULE_ALIAS("ip6t_<modulename>") where missing,
>> otherwise you will get
>>
>> ip6tables: No chain/target/match by that name
>>
>> when xt_<modulename> is not already loaded.
>>
>> Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
>
>Patrick?
>
Oops. But please remove the hunk for xt_conntrack.c before applyign, I
just noticed it does not do AF_INET6.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Add ip6t_ aliases
2007-10-10 23:33 ` David Miller
2007-10-10 23:39 ` Jan Engelhardt
@ 2007-10-11 4:05 ` Patrick McHardy
1 sibling, 0 replies; 5+ messages in thread
From: Patrick McHardy @ 2007-10-11 4:05 UTC (permalink / raw)
To: David Miller; +Cc: jengelh, netfilter-devel
David Miller wrote:
> From: Jan Engelhardt <jengelh@computergmbh.de>
> Date: Wed, 10 Oct 2007 13:44:49 +0200 (CEST)
>
>> Hi,
>>
>>
>> I think this latecomer patch should go into 2.6.24.
Its never too late for bugfixes ..
>> ===
>>
>> Add missing ip6t_modulename aliases.
>>
>> The patch will add MODULE_ALIAS("ip6t_<modulename>") where missing,
>> otherwise you will get
>>
>> ip6tables: No chain/target/match by that name
>>
>> when xt_<modulename> is not already loaded.
>>
>> Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
>
> Patrick?
I got it, don't worry :)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Add ip6t_ aliases
2007-10-10 23:39 ` Jan Engelhardt
@ 2007-10-11 4:08 ` Patrick McHardy
0 siblings, 0 replies; 5+ messages in thread
From: Patrick McHardy @ 2007-10-11 4:08 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: David Miller, netfilter-devel
Jan Engelhardt wrote:
>>> Add missing ip6t_modulename aliases.
>
> Oops. But please remove the hunk for xt_conntrack.c before applyign, I
> just noticed it does not do AF_INET6.
Done and applied, thanks Jan.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-10-11 4:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-10 11:44 [PATCH] Add ip6t_ aliases Jan Engelhardt
2007-10-10 23:33 ` David Miller
2007-10-10 23:39 ` Jan Engelhardt
2007-10-11 4:08 ` Patrick McHardy
2007-10-11 4:05 ` Patrick McHardy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).