Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104486
b: refs/heads/master
c: 0dbff68
h: refs/heads/master
v: v3
  • Loading branch information
Changli Gao authored and David S. Miller committed Jul 21, 2008
1 parent 5ab7bf9 commit 63b7aa7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: ae6134bdf3197206fba95563d755d2fa50d90ddd
refs/heads/master: 0dbff689c2f299e8f63911247925f2728d087688
8 changes: 4 additions & 4 deletions trunk/net/ipv4/netfilter/nf_nat_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,12 @@ get_unique_tuple(struct nf_conntrack_tuple *tuple,
This is only required for source (ie. NAT/masq) mappings.
So far, we don't do local source mappings, so multiple
manips not an issue. */
if (maniptype == IP_NAT_MANIP_SRC) {
if (maniptype == IP_NAT_MANIP_SRC &&
!(range->flags & IP_NAT_RANGE_PROTO_RANDOM)) {
if (find_appropriate_src(orig_tuple, tuple, range)) {
pr_debug("get_unique_tuple: Found current src map\n");
if (!(range->flags & IP_NAT_RANGE_PROTO_RANDOM))
if (!nf_nat_used_tuple(tuple, ct))
return;
if (!nf_nat_used_tuple(tuple, ct))
return;
}
}

Expand Down

0 comments on commit 63b7aa7

Please sign in to comment.