All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/5] Add support for SCTP
@ 2007-12-09 18:13 Pablo Neira Ayuso
  2007-12-09 18:20 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Neira Ayuso @ 2007-12-09 18:13 UTC (permalink / raw)
  To: Netfilter Development Mailinglist; +Cc: Patrick McHardy

[-- Attachment #1: Type: text/plain, Size: 164 bytes --]

This patch adds support for SCTP to ctnetlink.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

-- 
"Los honestos son inadaptados sociales" -- Les Luthiers

[-- Attachment #2: 02.patch --]
[-- Type: text/x-patch, Size: 1150 bytes --]

[PATCH][CTNETLINK] Add support for SCTP

This patch adds support for SCTP to ctnetlink.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

Index: net-2.6.git/net/netfilter/nf_conntrack_proto_sctp.c
===================================================================
--- net-2.6.git.orig/net/netfilter/nf_conntrack_proto_sctp.c	2007-12-08 19:47:47.000000000 +0100
+++ net-2.6.git/net/netfilter/nf_conntrack_proto_sctp.c	2007-12-08 19:47:52.000000000 +0100
@@ -619,6 +619,16 @@ static struct nf_conntrack_l4proto nf_co
 	.packet 		= sctp_packet,
 	.new 			= sctp_new,
 	.me 			= THIS_MODULE,
+#if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE)
+	.tuple_to_nlattr	= nf_ct_port_tuple_to_nlattr,
+	.nlattr_to_tuple	= nf_ct_port_nlattr_to_tuple,
+	.nla_policy		= nf_ct_port_nla_policy,
+#endif
+#if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE)
+	.tuple_to_nlattr	= nf_ct_port_tuple_to_nlattr,
+	.nlattr_to_tuple	= nf_ct_port_nlattr_to_tuple,
+	.nla_policy		= nf_ct_port_nla_policy,
+#endif
 #ifdef CONFIG_SYSCTL
 	.ctl_table_users	= &sctp_sysctl_table_users,
 	.ctl_table_header	= &sctp_sysctl_header,

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 2/5] Add support for SCTP
  2007-12-09 18:13 [PATCH 2/5] Add support for SCTP Pablo Neira Ayuso
@ 2007-12-09 18:20 ` Pablo Neira Ayuso
  2007-12-09 19:13   ` Patrick McHardy
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Neira Ayuso @ 2007-12-09 18:20 UTC (permalink / raw)
  To: Netfilter Development Mailinglist; +Cc: Patrick McHardy

[-- Attachment #1: Type: text/plain, Size: 1181 bytes --]

Pablo Neira Ayuso wrote:
> Index: net-2.6.git/net/netfilter/nf_conntrack_proto_sctp.c
> ===================================================================
> --- net-2.6.git.orig/net/netfilter/nf_conntrack_proto_sctp.c	2007-12-08 19:47:47.000000000 +0100
> +++ net-2.6.git/net/netfilter/nf_conntrack_proto_sctp.c	2007-12-08 19:47:52.000000000 +0100
> @@ -619,6 +619,16 @@ static struct nf_conntrack_l4proto nf_co
>  	.packet 		= sctp_packet,
>  	.new 			= sctp_new,
>  	.me 			= THIS_MODULE,
> +#if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE)
> +	.tuple_to_nlattr	= nf_ct_port_tuple_to_nlattr,
> +	.nlattr_to_tuple	= nf_ct_port_nlattr_to_tuple,
> +	.nla_policy		= nf_ct_port_nla_policy,
> +#endif
> +#if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE)
> +	.tuple_to_nlattr	= nf_ct_port_tuple_to_nlattr,
> +	.nlattr_to_tuple	= nf_ct_port_nlattr_to_tuple,
> +	.nla_policy		= nf_ct_port_nla_policy,
> +#endif
    ^^^

Strange, this patch has been mangled by quilt or something (duplicated
#ifdef). Surprisingly, the compiler doesn't warn about it. New patch
attached. Sorry.

-- 
"Los honestos son inadaptados sociales" -- Les Luthiers

[-- Attachment #2: 02.patch --]
[-- Type: text/x-patch, Size: 929 bytes --]

[PATCH][CTNETLINK] Add support for SCTP

This patch adds support for SCTP to ctnetlink.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

Index: net-2.6.git/net/netfilter/nf_conntrack_proto_sctp.c
===================================================================
--- net-2.6.git.orig/net/netfilter/nf_conntrack_proto_sctp.c	2007-12-08 21:42:27.000000000 +0100
+++ net-2.6.git/net/netfilter/nf_conntrack_proto_sctp.c	2007-12-09 19:18:11.000000000 +0100
@@ -619,6 +619,11 @@ static struct nf_conntrack_l4proto nf_co
 	.packet 		= sctp_packet,
 	.new 			= sctp_new,
 	.me 			= THIS_MODULE,
+#if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE)
+	.tuple_to_nlattr	= nf_ct_port_tuple_to_nlattr,
+	.nlattr_to_tuple	= nf_ct_port_nlattr_to_tuple,
+	.nla_policy		= nf_ct_port_nla_policy,
+#endif
 #ifdef CONFIG_SYSCTL
 	.ctl_table_users	= &sctp_sysctl_table_users,
 	.ctl_table_header	= &sctp_sysctl_header,

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 2/5] Add support for SCTP
  2007-12-09 18:20 ` Pablo Neira Ayuso
@ 2007-12-09 19:13   ` Patrick McHardy
  0 siblings, 0 replies; 3+ messages in thread
From: Patrick McHardy @ 2007-12-09 19:13 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: Netfilter Development Mailinglist

Pablo Neira Ayuso wrote:
> Strange, this patch has been mangled by quilt or something (duplicated
> #ifdef). Surprisingly, the compiler doesn't warn about it. New patch
> attached. Sorry.
>   

> --- net-2.6.git.orig/net/netfilter/nf_conntrack_proto_sctp.c	2007-12-08 21:42:27.000000000 +0100
> +++ net-2.6.git/net/netfilter/nf_conntrack_proto_sctp.c	2007-12-09 19:18:11.000000000 +0100
> @@ -619,6 +619,11 @@ static struct nf_conntrack_l4proto nf_co
> 	.packet 		= sctp_packet,
> 	.new 			= sctp_new,
> 	.me 			= THIS_MODULE,
> +#if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE)
> +	.tuple_to_nlattr	= nf_ct_port_tuple_to_nlattr,
> +	.nlattr_to_tuple	= nf_ct_port_nlattr_to_tuple,
> +	.nla_policy		= nf_ct_port_nla_policy,
> +#endif
>  #ifdef CONFIG_SYSCTL
> 	.ctl_table_users	= &sctp_sysctl_table_users,
> 	.ctl_table_header	= &sctp_sysctl_header,



This patch is missing IPv6 support. I've applied it and copied this
chunk to the IPv6 struct since I assume that is what you wanted.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-12-09 19:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-09 18:13 [PATCH 2/5] Add support for SCTP Pablo Neira Ayuso
2007-12-09 18:20 ` Pablo Neira Ayuso
2007-12-09 19:13   ` 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.