Add support for SCTP
Subsystems (2)
Pablo Neira Ayuso
maintainerPATCH 2/5 Add support for SCTP
This patch adds support for SCTP to ctnetlink.
Signature · 1 line
"Los honestos son inadaptados sociales" -- Les Luthiers
[PATCH][CTNETLINK] Add support for SCTP
This patch adds support for SCTP to ctnetlink.
net/netfilter/nf_conntrack_proto_sctp.c +10 -0
@@ -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,
Pablo Neira Ayuso
maintainerQuoted 8 lines · Pablo Neira Ayuso
Index:
net-2.6.git/net/netfilter/nf_conntrack_proto_sctp.c
===================================================================net/netfilter/nf_conntrack_proto_sctp.c +0
-0@@ -619,6 +619,16 @@ static struct nf_conntrack_l4proto nf_co .packet = sctp_packet, .new = sctp_new, .me = THIS_MODULE,
net/netfilter/nf_conntrack_proto_sctp.c static struct nf_conntrack_l4proto nf_co · line 631
Quoted 10 lines
net/netfilter/nf_conntrack_proto_sctp.c +10
-0+#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.
Signature · 1 line
"Los honestos son inadaptados sociales" -- Les Luthiers
[PATCH][CTNETLINK] Add support for SCTP
This patch adds support for SCTP to ctnetlink.
net/netfilter/nf_conntrack_proto_sctp.c +5 -0
@@ -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,
Quoted 9 lines · Pablo Neira Ayuso
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/netfilter/nf_conntrack_proto_sctp.c +0
-0@@ -619,6 +619,11 @@ static struct nf_conntrack_l4proto nf_co .packet = sctp_packet,
net/netfilter/nf_conntrack_proto_sctp.c static struct nf_conntrack_l4proto nf_co · line 629
Quoted 10 lines
net/netfilter/nf_conntrack_proto_sctp.c +5
-0.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.