[NETFILTER]: DCCP conntrack/NAT

Patrick McHardy kaber at trash.net
Thu Nov 17 06:46:17 CET 2005


Patrick McHardy wrote:
> I've updated the DCCP conntrack patch to apply to the current
> kernel and added NAT support. No further work has be done
> so far, the state transitions are probably still incomplete
> and/or wrong, but NAT seems to work in some quick testing.
> 
> If you're going to test it, please let me know about problems.

Already found the first one. If you want to use it on SMP you
need to replace DEFINE_SPINLOCK by DEFINE_RWLOCK.

> diff --git a/net/ipv4/netfilter/ip_conntrack_proto_dccp.c b/net/ipv4/netfilter/ip_conntrack_proto_dccp.c
> new file mode 100644
> index 0000000..f90e152
> --- /dev/null
> +++ b/net/ipv4/netfilter/ip_conntrack_proto_dccp.c
> @@ -0,0 +1,741 @@
...
> +
> +static DEFINE_SPINLOCK(dccp_lock);
> +



More information about the netfilter-devel mailing list