diff options
author | David S. Miller <davem@davemloft.net> | 2009-04-16 16:32:29 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-16 16:32:29 -0700 |
commit | 134ffb4cad92a6aa534e55a9be145bca780a32c1 (patch) | |
tree | be2b312eefbe4b38e81efb384fda4d8fdfae9943 /net/ipv4 | |
parent | 2238aff5bbd9d928b69e579b4c95842f97da95ba (diff) | |
parent | 98d500d66cb7940747b424b245fc6a51ecfbf005 (diff) | |
download | linux-3.10-134ffb4cad92a6aa534e55a9be145bca780a32c1.tar.gz linux-3.10-134ffb4cad92a6aa534e55a9be145bca780a32c1.tar.bz2 linux-3.10-134ffb4cad92a6aa534e55a9be145bca780a32c1.zip |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-2.6
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/netfilter/nf_nat_core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/nf_nat_core.c b/net/ipv4/netfilter/nf_nat_core.c index fe65187810f..3229e0a81ba 100644 --- a/net/ipv4/netfilter/nf_nat_core.c +++ b/net/ipv4/netfilter/nf_nat_core.c @@ -211,7 +211,8 @@ find_best_ips_proto(struct nf_conntrack_tuple *tuple, minip = ntohl(range->min_ip); maxip = ntohl(range->max_ip); j = jhash_2words((__force u32)tuple->src.u3.ip, - (__force u32)tuple->dst.u3.ip, 0); + range->flags & IP_NAT_RANGE_PERSISTENT ? + (__force u32)tuple->dst.u3.ip : 0, 0); j = ((u64)j * (maxip - minip + 1)) >> 32; *var_ipp = htonl(minip + j); } |