summaryrefslogtreecommitdiff
path: root/net/netfilter/xt_iprange.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2011-01-26 13:50:03 +0300
committerJan Engelhardt <jengelh@medozas.de>2011-01-26 15:01:39 +0300
commitad86e1f27a9a97a9e50810b10bca678407b1d6fd (patch)
tree1ad952ca2f4e5b4e9e4a950861199aaaf9537117 /net/netfilter/xt_iprange.c
parent4b3fd57138c969dd940651fadf90db627254edbf (diff)
downloadlinux-ad86e1f27a9a97a9e50810b10bca678407b1d6fd.tar.xz
netfilter: xt_connlimit: pick right dstaddr in NAT scenario
xt_connlimit normally records the "original" tuples in a hashlist (such as "1.2.3.4 -> 5.6.7.8"), and looks in this list for iph->daddr when counting. When the user however uses DNAT in PREROUTING, looking for iph->daddr -- which is now 192.168.9.10 -- will not match. Thus in daddr mode, we need to record the reverse direction tuple ("192.168.9.10 -> 1.2.3.4") instead. In the reverse tuple, the dst addr is on the src side, which is convenient, as count_them still uses &conn->tuple.src.u3. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'net/netfilter/xt_iprange.c')
0 files changed, 0 insertions, 0 deletions