All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Jones <hivemynd@hivemynd.net>
To: netfilter-devel@lists.netfilter.org
Subject: pom-ng-20040621 - pptp conntrack patch missing argument
Date: Mon, 30 Aug 2004 21:53:23 -0500	[thread overview]
Message-ID: <4133E823.4070209@hivemynd.net> (raw)

Hello Harald and netfilter-devel list!

I have been using iptables 1.2.9 with the pptp/gre conntrack modules 
with a 2.4.26 kernel with great success for several months.  I would 
like to thank you for your hard work in providing support for pptp 
connection tracking through linux NAT'ing firewalls!  It is a great 
service!

With the release of 2.4.27, I thought I would update my iptables to the 
current 1.2.11 release and patch-o-matic-ng-20040621 along with the 
kernel.  I was in the process of patching and recompiling the kernel 
when I ran across this problem:

The complier complains about the missing arguments for the call to 
ip_nat_used_tuple from gre_unique_tuple, in line 108 of the 
ip_nat_proto_gre.c source:

The gre_unique_tuple method, line 108 in the ip_nat_proto_gre.c file 
reads like this:

if (!ip_nat_used_tuple(tuple, conntrack))

The definition of ip_nat_used_tuple from the ip_nat.h file reads like this:

/* Is this tuple already taken? (not by us)*/
extern int ip_nat_used_tuple(const struct ip_conntrack_tuple *tuple,
               const struct ip_conntrack *ignored_conntrack,
               const enum ip_nat_manip_type maniptype,
               const unsigned int flags);

I am no code monster, but a quick glance at the source made me think 
that perhaps the line 108 in the ip_nat_proto_gre.c could read:

if (!ip_nat_used_tuple(tuple, conntrack, maniptype, flags))

The problem is, I don't know what the proper values to send in for the 
"flags" argument should be, and the "maniptype" argument is a guess 
based off of what is passed into the parent gre_unique_tuple function:

/* generate unique tuple ... */
static int
gre_unique_tuple(struct ip_conntrack_tuple *tuple,
       const struct ip_nat_range *range,
       enum ip_nat_manip_type maniptype,
       const struct ip_conntrack *conntrack)

I have been scanning the mailing lists looking to see if someone posted 
a solution to this yet, but I have not run across a solution so far.
A nudge in the right direction would be most helpful!  And thanks again 
for your outstanding work!

Best regards,

Stephen

             reply	other threads:[~2004-08-31  2:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-31  2:53 Stephen Jones [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-08-23 17:08 pom-ng-20040621 - pptp conntrack patch missing argument Stephen Jones

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=4133E823.4070209@hivemynd.net \
    --to=hivemynd@hivemynd.net \
    --cc=netfilter-devel@lists.netfilter.org \
    /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.