patch-2.3.99-pre7 linux/net/ipv4/netfilter/ipt_MASQUERADE.c
Next file: linux/net/ipv4/netfilter/ipt_MIRROR.c
Previous file: linux/net/ipv4/netfilter/ipt_MARK.c
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Thu Apr 27 15:43:15 2000
- Orig file:
v2.3.99-pre6/linux/net/ipv4/netfilter/ipt_MASQUERADE.c
- Orig date:
Tue Apr 11 15:09:26 2000
diff -u --recursive --new-file v2.3.99-pre6/linux/net/ipv4/netfilter/ipt_MASQUERADE.c linux/net/ipv4/netfilter/ipt_MASQUERADE.c
@@ -60,7 +60,7 @@
{
struct ip_conntrack *ct;
enum ip_conntrack_info ctinfo;
- const struct ip_nat_range *r;
+ const struct ip_nat_multi_range *mr;
struct ip_nat_multi_range newrange;
u_int32_t newsrc;
struct rtable *rt;
@@ -76,7 +76,7 @@
IP_NF_ASSERT(ct && (ctinfo == IP_CT_NEW
|| ctinfo == IP_CT_RELATED));
- r = targinfo;
+ mr = targinfo;
if (ip_route_output(&rt, (*pskb)->nh.iph->daddr,
0,
@@ -97,9 +97,9 @@
/* Transfer from original range. */
newrange = ((struct ip_nat_multi_range)
- { 1, { { r->flags | IP_NAT_RANGE_MAP_IPS,
+ { 1, { { mr->range[0].flags | IP_NAT_RANGE_MAP_IPS,
newsrc, newsrc,
- r->min, r->max } } });
+ mr->range[0].min, mr->range[0].max } } });
/* Hand modified range to generic setup. */
return ip_nat_setup_info(ct, &newrange, hooknum);
@@ -142,7 +142,7 @@
};
static struct ipt_target masquerade
-= { { NULL, NULL }, "MASQUERADE", masquerade_target, masquerade_check,
+= { { NULL, NULL }, "MASQUERADE", masquerade_target, masquerade_check, NULL,
THIS_MODULE };
static int __init init(void)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)