All of lore.kernel.org
 help / color / mirror / Atom feed
* pom-ng-20040621 - pptp conntrack patch missing argument
@ 2004-08-23 17:08 Stephen Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Jones @ 2004-08-23 17:08 UTC (permalink / raw)
  To: netfilter

Hello Harald and netfilter-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







^ permalink raw reply	[flat|nested] 2+ messages in thread

* pom-ng-20040621 - pptp conntrack patch missing argument
@ 2004-08-31  2:53 Stephen Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Jones @ 2004-08-31  2:53 UTC (permalink / raw)
  To: netfilter-devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-08-31  2:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-31  2:53 pom-ng-20040621 - pptp conntrack patch missing argument Stephen Jones
  -- strict thread matches above, loose matches on Subject: below --
2004-08-23 17:08 Stephen Jones

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.