* [PATCH] netfilter: remove IPvX specific parts from nf_conntrack_l4proto.h
@ 2009-03-09 16:14 Christoph Paasch
2009-03-10 16:15 ` Jan Engelhardt
0 siblings, 1 reply; 3+ messages in thread
From: Christoph Paasch @ 2009-03-09 16:14 UTC (permalink / raw)
To: netfilter-devel; +Cc: Christoph Paasch
Moving the structure definitions to the corresponding IPvX specific header files.
---
include/net/netfilter/nf_conntrack_l4proto.h | 5 +----
net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c | 1 +
net/netfilter/nf_conntrack_proto_tcp.c | 2 ++
net/netfilter/nf_conntrack_proto_udp.c | 2 ++
4 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/include/net/netfilter/nf_conntrack_l4proto.h b/include/net/netfilter/nf_conntrack_l4proto.h
index debdaf7..16ab604 100644
--- a/include/net/netfilter/nf_conntrack_l4proto.h
+++ b/include/net/netfilter/nf_conntrack_l4proto.h
@@ -90,10 +90,7 @@ struct nf_conntrack_l4proto
struct module *me;
};
-/* Existing built-in protocols */
-extern struct nf_conntrack_l4proto nf_conntrack_l4proto_tcp6;
-extern struct nf_conntrack_l4proto nf_conntrack_l4proto_udp4;
-extern struct nf_conntrack_l4proto nf_conntrack_l4proto_udp6;
+/* Existing built-in generic protocol */
extern struct nf_conntrack_l4proto nf_conntrack_l4proto_generic;
#define MAX_NF_CT_PROTO 256
diff --git a/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c b/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c
index 727b953..e6852f6 100644
--- a/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c
+++ b/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c
@@ -26,6 +26,7 @@
#include <net/netfilter/nf_conntrack_l4proto.h>
#include <net/netfilter/nf_conntrack_l3proto.h>
#include <net/netfilter/nf_conntrack_core.h>
+#include <net/netfilter/ipv6/nf_conntrack_ipv6.h>
static bool ipv6_pkt_to_tuple(const struct sk_buff *skb, unsigned int nhoff,
struct nf_conntrack_tuple *tuple)
diff --git a/net/netfilter/nf_conntrack_proto_tcp.c b/net/netfilter/nf_conntrack_proto_tcp.c
index a1edb9c..7d3944f 100644
--- a/net/netfilter/nf_conntrack_proto_tcp.c
+++ b/net/netfilter/nf_conntrack_proto_tcp.c
@@ -25,6 +25,8 @@
#include <net/netfilter/nf_conntrack_l4proto.h>
#include <net/netfilter/nf_conntrack_ecache.h>
#include <net/netfilter/nf_log.h>
+#include <net/netfilter/ipv4/nf_conntrack_ipv4.h>
+#include <net/netfilter/ipv6/nf_conntrack_ipv6.h>
/* Protects ct->proto.tcp */
static DEFINE_RWLOCK(tcp_lock);
diff --git a/net/netfilter/nf_conntrack_proto_udp.c b/net/netfilter/nf_conntrack_proto_udp.c
index 2b8b1f5..d402117 100644
--- a/net/netfilter/nf_conntrack_proto_udp.c
+++ b/net/netfilter/nf_conntrack_proto_udp.c
@@ -22,6 +22,8 @@
#include <net/netfilter/nf_conntrack_l4proto.h>
#include <net/netfilter/nf_conntrack_ecache.h>
#include <net/netfilter/nf_log.h>
+#include <net/netfilter/ipv4/nf_conntrack_ipv4.h>
+#include <net/netfilter/ipv6/nf_conntrack_ipv6.h>
static unsigned int nf_ct_udp_timeout __read_mostly = 30*HZ;
static unsigned int nf_ct_udp_timeout_stream __read_mostly = 180*HZ;
--
1.5.6.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] netfilter: remove IPvX specific parts from nf_conntrack_l4proto.h
2009-03-09 16:14 [PATCH] netfilter: remove IPvX specific parts from nf_conntrack_l4proto.h Christoph Paasch
@ 2009-03-10 16:15 ` Jan Engelhardt
2009-03-16 14:16 ` Patrick McHardy
0 siblings, 1 reply; 3+ messages in thread
From: Jan Engelhardt @ 2009-03-10 16:15 UTC (permalink / raw)
To: Christoph Paasch; +Cc: Netfilter Developer Mailing List, kaber
On Monday 2009-03-09 17:14, Christoph Paasch wrote:
>Moving the structure definitions to the corresponding IPvX specific header files.
>---
> include/net/netfilter/nf_conntrack_l4proto.h | 5 +----
> net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c | 1 +
> net/netfilter/nf_conntrack_proto_tcp.c | 2 ++
> net/netfilter/nf_conntrack_proto_udp.c | 2 ++
> 4 files changed, 6 insertions(+), 4 deletions(-)
Seems good to go to me. Patrick?
>diff --git a/include/net/netfilter/nf_conntrack_l4proto.h b/include/net/netfilter/nf_conntrack_l4proto.h
>index debdaf7..16ab604 100644
>--- a/include/net/netfilter/nf_conntrack_l4proto.h
>+++ b/include/net/netfilter/nf_conntrack_l4proto.h
>@@ -90,10 +90,7 @@ struct nf_conntrack_l4proto
> struct module *me;
> };
>
>-/* Existing built-in protocols */
>-extern struct nf_conntrack_l4proto nf_conntrack_l4proto_tcp6;
>-extern struct nf_conntrack_l4proto nf_conntrack_l4proto_udp4;
>-extern struct nf_conntrack_l4proto nf_conntrack_l4proto_udp6;
>+/* Existing built-in generic protocol */
> extern struct nf_conntrack_l4proto nf_conntrack_l4proto_generic;
>
> #define MAX_NF_CT_PROTO 256
>diff --git a/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c b/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c
>index 727b953..e6852f6 100644
>--- a/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c
>+++ b/net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c
>@@ -26,6 +26,7 @@
> #include <net/netfilter/nf_conntrack_l4proto.h>
> #include <net/netfilter/nf_conntrack_l3proto.h>
> #include <net/netfilter/nf_conntrack_core.h>
>+#include <net/netfilter/ipv6/nf_conntrack_ipv6.h>
>
> static bool ipv6_pkt_to_tuple(const struct sk_buff *skb, unsigned int nhoff,
> struct nf_conntrack_tuple *tuple)
>diff --git a/net/netfilter/nf_conntrack_proto_tcp.c b/net/netfilter/nf_conntrack_proto_tcp.c
>index a1edb9c..7d3944f 100644
>[...]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] netfilter: remove IPvX specific parts from nf_conntrack_l4proto.h
2009-03-10 16:15 ` Jan Engelhardt
@ 2009-03-16 14:16 ` Patrick McHardy
0 siblings, 0 replies; 3+ messages in thread
From: Patrick McHardy @ 2009-03-16 14:16 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: Christoph Paasch, Netfilter Developer Mailing List
Jan Engelhardt wrote:
>
> On Monday 2009-03-09 17:14, Christoph Paasch wrote:
>
>> Moving the structure definitions to the corresponding IPvX specific header files.
>> ---
>> include/net/netfilter/nf_conntrack_l4proto.h | 5 +----
>> net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c | 1 +
>> net/netfilter/nf_conntrack_proto_tcp.c | 2 ++
>> net/netfilter/nf_conntrack_proto_udp.c | 2 ++
>> 4 files changed, 6 insertions(+), 4 deletions(-)
>
>
> Seems good to go to me. Patrick?
Me too, applied.
Next time please sign off your patches though.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-03-16 14:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-09 16:14 [PATCH] netfilter: remove IPvX specific parts from nf_conntrack_l4proto.h Christoph Paasch
2009-03-10 16:15 ` Jan Engelhardt
2009-03-16 14:16 ` Patrick McHardy
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.