netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tproxy: check for transparent flag in ip_route_newports
@ 2010-09-27 13:31 Ulrich Weber
  2010-09-27 22:03 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Ulrich Weber @ 2010-09-27 13:31 UTC (permalink / raw)
  To: davem; +Cc: netdev

as done in ip_route_connect()

Signed-off-by: Ulrich Weber <uweber@astaro.com>
---
 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 bd732d6..7e5e73b 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);
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-27 22:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-27 13:31 [PATCH] tproxy: check for transparent flag in ip_route_newports Ulrich Weber
2010-09-27 22:03 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).