Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215447
b: refs/heads/master
c: ed0b6d7
h: refs/heads/master
i:
  215445: 65e2f28
  215443: 4088767
  215439: 22efd73
v: v3
  • Loading branch information
Changli Gao authored and Patrick McHardy committed Sep 16, 2010
1 parent 614c010 commit 6180047
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 99ad3c53b36a056a472927de9c79eda231ecc6fe
refs/heads/master: ed0b6d7581b54455062f09ccac123814e70cd02f
17 changes: 8 additions & 9 deletions trunk/net/ipv4/netfilter/nf_nat_rule.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,15 @@ alloc_null_binding(struct nf_conn *ct, unsigned int hooknum)
{
/* Force range to this IP; let proto decide mapping for
per-proto parts (hence not IP_NAT_RANGE_PROTO_SPECIFIED).
Use reply in case it's already been mangled (eg local packet).
*/
__be32 ip
= (HOOK2MANIP(hooknum) == IP_NAT_MANIP_SRC
? ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.u3.ip
: ct->tuplehash[IP_CT_DIR_REPLY].tuple.src.u3.ip);
struct nf_nat_range range
= { IP_NAT_RANGE_MAP_IPS, ip, ip, { 0 }, { 0 } };

pr_debug("Allocating NULL binding for %p (%pI4)\n", ct, &ip);
struct nf_nat_range range;

range.flags = 0;
pr_debug("Allocating NULL binding for %p (%pI4)\n", ct,
HOOK2MANIP(hooknum) == IP_NAT_MANIP_SRC ?
&ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.u3.ip :
&ct->tuplehash[IP_CT_DIR_REPLY].tuple.src.u3.ip);

return nf_nat_setup_info(ct, &range, HOOK2MANIP(hooknum));
}

Expand Down

0 comments on commit 6180047

Please sign in to comment.