Skip to content

Commit

Permalink
ipv4: Remove now superfluous code in ip_route_connect().
Browse files Browse the repository at this point in the history
Now that output route lookups update the flow with
source address et al. selections, the fl4->{saddr,daddr}
assignments here are no longer necessary.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Apr 29, 2011
1 parent 813b3b5 commit 6706b6e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/net/route.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,6 @@ static inline struct rtable *ip_route_connect(struct flowi4 *fl4,
rt = __ip_route_output_key(net, fl4);
if (IS_ERR(rt))
return rt;
fl4->daddr = rt->rt_dst;
fl4->saddr = rt->rt_src;
ip_rt_put(rt);
}
security_sk_classify_flow(sk, flowi4_to_flowi(fl4));
Expand Down

0 comments on commit 6706b6e

Please sign in to comment.