]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/netfilter/nf_nat_core.c
netfilter: built-in NAT support for SCTP
[mirror_ubuntu-artful-kernel.git] / net / netfilter / nf_nat_core.c
index 69b121d11275038dee486b46fea1244bdf29f4a8..80858bd110cccbfe75dcb64df44a09a6af2271a0 100644 (file)
@@ -685,6 +685,10 @@ int nf_nat_l3proto_register(const struct nf_nat_l3proto *l3proto)
 #ifdef CONFIG_NF_NAT_PROTO_DCCP
        RCU_INIT_POINTER(nf_nat_l4protos[l3proto->l3proto][IPPROTO_DCCP],
                         &nf_nat_l4proto_dccp);
+#endif
+#ifdef CONFIG_NF_NAT_PROTO_SCTP
+       RCU_INIT_POINTER(nf_nat_l4protos[l3proto->l3proto][IPPROTO_SCTP],
+                        &nf_nat_l4proto_sctp);
 #endif
        mutex_unlock(&nf_nat_proto_mutex);