diff options
author | Ulrich Weber <uweber@astaro.com> | 2010-09-26 23:31:00 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-27 18:03:33 -0400 |
commit | fb0c5f0bc8b69b40549449ee7fc65f3706f12062 (patch) | |
tree | f77a3ed449da953e65f919114c5ea1d4b2c85e88 | |
parent | 7e1b33e5ea392dfc984fc63b76ca75acbf249dcd (diff) |
tproxy: check for transparent flag in ip_route_newports
as done in ip_route_connect()
Signed-off-by: Ulrich Weber <uweber@astaro.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/route.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/route.h b/include/net/route.h index bd732d62e1c..7e5e73bfa4d 100644 --- a/include/net/route.h +++ b/include/net/route.h | |||
@@ -199,6 +199,8 @@ static inline int ip_route_newports(struct rtable **rp, u8 protocol, | |||
199 | fl.fl_ip_sport = sport; | 199 | fl.fl_ip_sport = sport; |
200 | fl.fl_ip_dport = dport; | 200 | fl.fl_ip_dport = dport; |
201 | fl.proto = protocol; | 201 | fl.proto = protocol; |
202 | if (inet_sk(sk)->transparent) | ||
203 | fl.flags |= FLOWI_FLAG_ANYSRC; | ||
202 | ip_rt_put(*rp); | 204 | ip_rt_put(*rp); |
203 | *rp = NULL; | 205 | *rp = NULL; |
204 | security_sk_classify_flow(sk, &fl); | 206 | security_sk_classify_flow(sk, &fl); |