diff options
author | Julian Anastasov <ja@ssi.bg> | 2011-08-07 09:11:00 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-08-08 05:52:32 (GMT) |
commit | 797fd3913abf2f7036003ab8d3d019cbea41affd (patch) | |
tree | a2e6aee9a92754f11f33bab4e8f9deed3ffb94bf /mm/page-writeback.c | |
parent | 6602a4baf4d1a73cc4685a39ef859e1c5ddf654c (diff) | |
download | linux-797fd3913abf2f7036003ab8d3d019cbea41affd.tar.xz |
netfilter: TCP and raw fix for ip_route_me_harder
TCP in some cases uses different global (raw) socket
to send RST and ACK. The transparent flag is not set there.
Currently, it is a problem for rerouting after the previous
change.
Fix it by simplifying the checks in ip_route_me_harder
and use FLOWI_FLAG_ANYSRC even for sockets. It looks safe
because the initial routing allowed this source address to
be used and now we just have to make sure the packet is rerouted.
As a side effect this also allows rerouting for normal
raw sockets that use spoofed source addresses which was not possible
even before we eliminated the ip_route_input call.
Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm/page-writeback.c')
0 files changed, 0 insertions, 0 deletions