summaryrefslogtreecommitdiffstats
path: root/include/net/route.h
diff options
context:
space:
mode:
authorUlrich Weber <uweber@astaro.com>2010-09-27 05:31:00 +0200
committerDavid S. Miller <davem@davemloft.net>2010-09-28 00:03:33 +0200
commitfb0c5f0bc8b69b40549449ee7fc65f3706f12062 (patch)
treef77a3ed449da953e65f919114c5ea1d4b2c85e88 /include/net/route.h
parentipv6: add IPv6 to neighbour table overflow warning (diff)
downloadlinux-fb0c5f0bc8b69b40549449ee7fc65f3706f12062.tar.xz
linux-fb0c5f0bc8b69b40549449ee7fc65f3706f12062.zip
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>
Diffstat (limited to 'include/net/route.h')
-rw-r--r--include/net/route.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/route.h b/include/net/route.h
index bd732d62e1c3..7e5e73bfa4de 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,
fl.fl_ip_sport = sport;
fl.fl_ip_dport = dport;
fl.proto = protocol;
+ if (inet_sk(sk)->transparent)
+ fl.flags |= FLOWI_FLAG_ANYSRC;
ip_rt_put(*rp);
*rp = NULL;
security_sk_classify_flow(sk, &fl);