All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Cc: Netfilter Development Mailinglist
	<netfilter-devel@lists.netfilter.org>,
	Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Subject: nf_nat git tree
Date: Mon, 06 Nov 2006 00:19:01 +0100	[thread overview]
Message-ID: <454E7165.90404@trash.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 883 bytes --]

I've put the nf_nat stuff in a git tree. The NAT resync-patches
and the FTP hookfn fix are folded into the original patch and
I've ported a few more helpers (only PPtP and netbios_ns are
still missing) and fixed some small bugs in the previous patches
I sent. I've also added module aliases for all helpers so users
can switch transparently.

The git tree contains only my changes, so you need to clone
Linus' tree first and then pull my tree into it:

git-clone
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
git-pull http://people.netfilter.org/~kaber/nf-2.6.20-nat.git/

(BTW, 2.6.20 doesn't mean I necessarily want to get it into 2.6.20,
just that its on top of my queued patched for 2.6.20).

Anyone interested in testing should apply the attached workaround
for the nf_conntrack_alter_reply problem on top of the git tree.

Changelog and diffstat below.


[-- Attachment #2: summary --]
[-- Type: text/plain, Size: 4436 bytes --]

 include/linux/netfilter/nf_conntrack_amanda.h            |   10 
 include/linux/netfilter/nf_conntrack_ftp.h               |   20 
 include/linux/netfilter/nf_conntrack_h323.h              |   92 
 include/linux/netfilter/nf_conntrack_helper_h323_asn1.h  |   98 
 include/linux/netfilter/nf_conntrack_helper_h323_types.h |  951 +++++++
 include/linux/netfilter/nf_conntrack_irc.h               |   15 
 include/linux/netfilter/nf_conntrack_sip.h               |   44 
 include/linux/netfilter/nf_conntrack_tftp.h              |   20 
 include/linux/netfilter_ipv4/ip_conntrack_ftp.h          |   40 
 include/net/netfilter/ipv4/nf_conntrack_ipv4.h           |   20 
 include/net/netfilter/nf_conntrack.h                     |   30 
 include/net/netfilter/nf_conntrack_core.h                |    3 
 include/net/netfilter/nf_conntrack_expect.h              |    7 
 include/net/netfilter/nf_conntrack_tuple.h               |   10 
 include/net/netfilter/nf_nat.h                           |   78 
 include/net/netfilter/nf_nat_core.h                      |   26 
 include/net/netfilter/nf_nat_helper.h                    |   33 
 include/net/netfilter/nf_nat_protocol.h                  |   74 
 include/net/netfilter/nf_nat_rule.h                      |   38 
 net/ipv4/netfilter/Kconfig                               |   98 
 net/ipv4/netfilter/Makefile                              |   19 
 net/ipv4/netfilter/ip_conntrack_helper_h323_asn1.c       |  874 ------
 net/ipv4/netfilter/ip_conntrack_helper_h323_types.c      | 1926 --------------
 net/ipv4/netfilter/ipt_MASQUERADE.c                      |   29 
 net/ipv4/netfilter/ipt_NETMAP.c                          |    4 
 net/ipv4/netfilter/ipt_REDIRECT.c                        |    6 
 net/ipv4/netfilter/ipt_SAME.c                            |   12 
 net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c           |    7 
 net/ipv4/netfilter/nf_nat_amanda.c                       |   79 
 net/ipv4/netfilter/nf_nat_core.c                         |  647 +++++
 net/ipv4/netfilter/nf_nat_ftp.c                          |  183 +
 net/ipv4/netfilter/nf_nat_h323.c                         |  613 ++++
 net/ipv4/netfilter/nf_nat_helper.c                       |  455 +++
 net/ipv4/netfilter/nf_nat_irc.c                          |  101 
 net/ipv4/netfilter/nf_nat_proto_icmp.c                   |   89 
 net/ipv4/netfilter/nf_nat_proto_tcp.c                    |  150 +
 net/ipv4/netfilter/nf_nat_proto_udp.c                    |  141 +
 net/ipv4/netfilter/nf_nat_proto_unknown.c                |   55 
 net/ipv4/netfilter/nf_nat_rule.c                         |  343 ++
 net/ipv4/netfilter/nf_nat_sip.c                          |  251 +
 net/ipv4/netfilter/nf_nat_standalone.c                   |  422 +++
 net/ipv4/netfilter/nf_nat_tftp.c                         |   52 
 net/netfilter/Kconfig                                    |  122 
 net/netfilter/Makefile                                   |    7 
 net/netfilter/nf_conntrack_amanda.c                      |  232 +
 net/netfilter/nf_conntrack_core.c                        |   20 
 net/netfilter/nf_conntrack_expect.c                      |   45 
 net/netfilter/nf_conntrack_ftp.c                         |   21 
 net/netfilter/nf_conntrack_helper_h323.c                 | 1812 ++++++++++++++
 net/netfilter/nf_conntrack_helper_h323_asn1.c            |  874 ++++++
 net/netfilter/nf_conntrack_helper_h323_types.c           | 1927 +++++++++++++++
 net/netfilter/nf_conntrack_irc.c                         |  277 ++
 net/netfilter/nf_conntrack_netlink.c                     |   48 
 net/netfilter/nf_conntrack_proto_tcp.c                   |    2 
 net/netfilter/nf_conntrack_sip.c                         |  489 +++
 net/netfilter/nf_conntrack_standalone.c                  |    5 
 net/netfilter/nf_conntrack_tftp.c                        |  156 +
 net/netfilter/xt_CONNMARK.c                              |    2 
 58 files changed, 11293 insertions(+), 2911 deletions(-)

Patrick McHardy:
      [NETFILTER]: Add NAT support for nf_conntrack
      [NETFILTER]: nf_conntrack: add helper function for expectation initialization
      [NETFILTER]: nf_conntrack/nf_nat: add SIP helper port
      [NETFILTER]: nf_conntrack/nf_nat: add TFTP helper port
      [NETFILTER]: nf_conntrack/nf_nat: add amanda helper port
      [NETFILTER]: nf_conntrack/nf_nat: add H.323 helper port
      [NETFILTER]: nf_conntrack/nf_nat: add IRC helper port

[-- Attachment #3: x --]
[-- Type: text/plain, Size: 541 bytes --]

diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c
index 1f1c257..31a4472 100644
--- a/net/netfilter/nf_conntrack_core.c
+++ b/net/netfilter/nf_conntrack_core.c
@@ -855,7 +855,7 @@ void nf_conntrack_alter_reply(struct nf_
 	NF_CT_DUMP_TUPLE(newreply);
 
 	conntrack->tuplehash[IP_CT_DIR_REPLY].tuple = *newreply;
-	if (!conntrack->master && help->expecting == 0)
+	if (!conntrack->master && 0 && help->expecting == 0)
 		help->helper = __nf_ct_helper_find(newreply);
 	write_unlock_bh(&nf_conntrack_lock);
 }

             reply	other threads:[~2006-11-05 23:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-05 23:19 Patrick McHardy [this message]
2006-11-06 14:25 ` nf_nat git tree Jozsef Kadlecsik
2006-11-07  9:58   ` Jozsef Kadlecsik
2006-11-15  6:27     ` Patrick McHardy
2006-11-15 14:03       ` Jozsef Kadlecsik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=454E7165.90404@trash.net \
    --to=kaber@trash.net \
    --cc=kadlec@blackhole.kfki.hu \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=yasuyuki.kozakai@toshiba.co.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.