[NETFILTER]: Add nf_conntrack subsystem.
authorYasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Thu, 10 Nov 2005 00:38:16 +0000 (16:38 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Nov 2005 00:38:16 +0000 (16:38 -0800)
commit9fb9cbb1082d6b31fb45aa1a14432449a0df6cf1
treec964a62bdd766eca436c30f51a9e33e2b798b0a6
parent6730c3c14421b7c924d06e31bb66e0adad225547
[NETFILTER]: Add nf_conntrack subsystem.

The existing connection tracking subsystem in netfilter can only
handle ipv4.  There were basically two choices present to add
connection tracking support for ipv6.  We could either duplicate all
of the ipv4 connection tracking code into an ipv6 counterpart, or (the
choice taken by these patches) we could design a generic layer that
could handle both ipv4 and ipv6 and thus requiring only one sub-protocol
(TCP, UDP, etc.) connection tracking helper module to be written.

In fact nf_conntrack is capable of working with any layer 3
protocol.

The existing ipv4 specific conntrack code could also not deal
with the pecularities of doing connection tracking on ipv6,
which is also cured here.  For example, these issues include:

1) ICMPv6 handling, which is used for neighbour discovery in
   ipv6 thus some messages such as these should not participate
   in connection tracking since effectively they are like ARP
   messages

2) fragmentation must be handled differently in ipv6, because
   the simplistic "defrag, connection track and NAT, refrag"
   (which the existing ipv4 connection tracking does) approach simply
   isn't feasible in ipv6

3) ipv6 extension header parsing must occur at the correct spots
   before and after connection tracking decisions, and there were
   no provisions for this in the existing connection tracking
   design

4) ipv6 has no need for stateful NAT

The ipv4 specific conntrack layer is kept around, until all of
the ipv4 specific conntrack helpers are ported over to nf_conntrack
and it is feature complete.  Once that occurs, the old conntrack
stuff will get placed into the feature-removal-schedule and we will
fully kill it off 6 months later.

Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
57 files changed:
include/linux/netfilter/nf_conntrack_common.h [new file with mode: 0644]
include/linux/netfilter/nf_conntrack_ftp.h [new file with mode: 0644]
include/linux/netfilter/nf_conntrack_sctp.h [new file with mode: 0644]
include/linux/netfilter/nf_conntrack_tcp.h [new file with mode: 0644]
include/linux/netfilter/nf_conntrack_tuple_common.h [new file with mode: 0644]
include/linux/netfilter_ipv4/ip_conntrack.h
include/linux/netfilter_ipv4/ip_conntrack_ftp.h
include/linux/netfilter_ipv4/ip_conntrack_icmp.h
include/linux/netfilter_ipv4/ip_conntrack_sctp.h
include/linux/netfilter_ipv4/ip_conntrack_tcp.h
include/linux/netfilter_ipv4/ip_conntrack_tuple.h
include/linux/netfilter_ipv6.h
include/linux/skbuff.h
include/linux/sysctl.h
include/net/netfilter/ipv4/nf_conntrack_icmp.h [new file with mode: 0644]
include/net/netfilter/ipv4/nf_conntrack_ipv4.h [new file with mode: 0644]
include/net/netfilter/ipv6/nf_conntrack_icmpv6.h [new file with mode: 0644]
include/net/netfilter/nf_conntrack.h [new file with mode: 0644]
include/net/netfilter/nf_conntrack_compat.h [new file with mode: 0644]
include/net/netfilter/nf_conntrack_core.h [new file with mode: 0644]
include/net/netfilter/nf_conntrack_helper.h [new file with mode: 0644]
include/net/netfilter/nf_conntrack_l3proto.h [new file with mode: 0644]
include/net/netfilter/nf_conntrack_protocol.h [new file with mode: 0644]
include/net/netfilter/nf_conntrack_tuple.h [new file with mode: 0644]
net/core/skbuff.c
net/ipv4/netfilter/Kconfig
net/ipv4/netfilter/Makefile
net/ipv4/netfilter/ip_conntrack_netlink.c
net/ipv4/netfilter/ipt_CLUSTERIP.c
net/ipv4/netfilter/ipt_CONNMARK.c
net/ipv4/netfilter/ipt_NOTRACK.c
net/ipv4/netfilter/ipt_connbytes.c
net/ipv4/netfilter/ipt_connmark.c
net/ipv4/netfilter/ipt_conntrack.c
net/ipv4/netfilter/ipt_helper.c
net/ipv4/netfilter/ipt_state.c
net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c [new file with mode: 0644]
net/ipv4/netfilter/nf_conntrack_proto_icmp.c [new file with mode: 0644]
net/ipv6/ip6_input.c
net/ipv6/ip6_output.c
net/ipv6/netfilter/Kconfig
net/ipv6/netfilter/Makefile
net/ipv6/netfilter/ip6t_MARK.c
net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c [new file with mode: 0644]
net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c [new file with mode: 0644]
net/ipv6/netfilter/nf_conntrack_reasm.c [new file with mode: 0644]
net/ipv6/raw.c
net/netfilter/Kconfig
net/netfilter/Makefile
net/netfilter/nf_conntrack_core.c [new file with mode: 0644]
net/netfilter/nf_conntrack_ftp.c [new file with mode: 0644]
net/netfilter/nf_conntrack_l3proto_generic.c [new file with mode: 0644]
net/netfilter/nf_conntrack_proto_generic.c [new file with mode: 0644]
net/netfilter/nf_conntrack_proto_sctp.c [new file with mode: 0644]
net/netfilter/nf_conntrack_proto_tcp.c [new file with mode: 0644]
net/netfilter/nf_conntrack_proto_udp.c [new file with mode: 0644]
net/netfilter/nf_conntrack_standalone.c [new file with mode: 0644]