diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2007-12-18 01:29:02 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:58:52 -0500 |
commit | c7212e9d3938258abe3fd17d15bb0d5c1856b8df (patch) | |
tree | 90baeb6dc5d033c99309f2b7639673402f32d27e | |
parent | 37fccd8577d38e249dde71512fb38d2f6a4d9d3c (diff) |
[NETFILTER]: nf_conntrack_sctp: add ctnetlink support
This patch adds support for SCTP to ctnetlink.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/netfilter/nf_conntrack_proto_sctp.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/net/netfilter/nf_conntrack_proto_sctp.c b/net/netfilter/nf_conntrack_proto_sctp.c index cb0467510592..224612370f5b 100644 --- a/net/netfilter/nf_conntrack_proto_sctp.c +++ b/net/netfilter/nf_conntrack_proto_sctp.c | |||
@@ -598,6 +598,11 @@ static struct nf_conntrack_l4proto nf_conntrack_l4proto_sctp4 __read_mostly = { | |||
598 | .packet = sctp_packet, | 598 | .packet = sctp_packet, |
599 | .new = sctp_new, | 599 | .new = sctp_new, |
600 | .me = THIS_MODULE, | 600 | .me = THIS_MODULE, |
601 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) | ||
602 | .tuple_to_nlattr = nf_ct_port_tuple_to_nlattr, | ||
603 | .nlattr_to_tuple = nf_ct_port_nlattr_to_tuple, | ||
604 | .nla_policy = nf_ct_port_nla_policy, | ||
605 | #endif | ||
601 | #ifdef CONFIG_SYSCTL | 606 | #ifdef CONFIG_SYSCTL |
602 | .ctl_table_users = &sctp_sysctl_table_users, | 607 | .ctl_table_users = &sctp_sysctl_table_users, |
603 | .ctl_table_header = &sctp_sysctl_header, | 608 | .ctl_table_header = &sctp_sysctl_header, |
@@ -619,6 +624,11 @@ static struct nf_conntrack_l4proto nf_conntrack_l4proto_sctp6 __read_mostly = { | |||
619 | .packet = sctp_packet, | 624 | .packet = sctp_packet, |
620 | .new = sctp_new, | 625 | .new = sctp_new, |
621 | .me = THIS_MODULE, | 626 | .me = THIS_MODULE, |
627 | #if defined(CONFIG_NF_CT_NETLINK) || defined(CONFIG_NF_CT_NETLINK_MODULE) | ||
628 | .tuple_to_nlattr = nf_ct_port_tuple_to_nlattr, | ||
629 | .nlattr_to_tuple = nf_ct_port_nlattr_to_tuple, | ||
630 | .nla_policy = nf_ct_port_nla_policy, | ||
631 | #endif | ||
622 | #ifdef CONFIG_SYSCTL | 632 | #ifdef CONFIG_SYSCTL |
623 | .ctl_table_users = &sctp_sysctl_table_users, | 633 | .ctl_table_users = &sctp_sysctl_table_users, |
624 | .ctl_table_header = &sctp_sysctl_header, | 634 | .ctl_table_header = &sctp_sysctl_header, |