aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
authorJulian Anastasov <ja@ssi.bg>2011-08-07 22:20:20 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-15 18:31:37 -0700
commit44a41f45fb2609b37ff81dcbce186dc3f7f95fcb (patch)
treedf18073b39e9446d381d5cfd27c9ce4cfe2af84b /net/netfilter
parent4339267bcded2540782c8f7587bc59434b89420c (diff)
downloadkernel_samsung_smdk4412-44a41f45fb2609b37ff81dcbce186dc3f7f95fcb.tar.gz
kernel_samsung_smdk4412-44a41f45fb2609b37ff81dcbce186dc3f7f95fcb.tar.bz2
kernel_samsung_smdk4412-44a41f45fb2609b37ff81dcbce186dc3f7f95fcb.zip
ipv4: fix the reusing of routing cache entries
[ Upstream commit d547f727df86059104af2234804fdd538e112015 ] compare_keys and ip_route_input_common rely on rt_oif for distinguishing of input and output routes with same keys values. But sometimes the input route has also same hash chain (keyed by iif != 0) with the output routes (keyed by orig_oif=0). Problem visible if running with small number of rhash_entries. Fix them to use rt_route_iif instead. By this way input route can not be returned to users that request output route. The patch fixes the ip_rt_bug errors that were reported in ip_local_out context, mostly for 255.255.255.255 destinations. Signed-off-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net/netfilter')
0 files changed, 0 insertions, 0 deletions