Skip to content

Commit

Permalink
tproxy: check for transparent flag in ip_route_newports
Browse files Browse the repository at this point in the history
as done in ip_route_connect()

Signed-off-by: Ulrich Weber <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Ulrich Weber authored and davem330 committed Sep 27, 2010
1 parent 7e1b33e commit fb0c5f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/net/route.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fb0c5f0

Please sign in to comment.