projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
813b3b5
)
ipv4: Remove now superfluous code in ip_route_connect().
author
David S. Miller
<davem@davemloft.net>
Fri, 29 Apr 2011 06:13:17 +0000
(23:13 -0700)
committer
David S. Miller
<davem@davemloft.net>
Fri, 29 Apr 2011 06:13:17 +0000
(23:13 -0700)
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>
include/net/route.h
patch
|
blob
|
blame
|
history
diff --git
a/include/net/route.h
b/include/net/route.h
index 81b6cf27654999b9ec267416b034770c56058daa..16eb59cd708042e21901265d01365aa22d170178 100644
(file)
--- a/
include/net/route.h
+++ b/
include/net/route.h
@@
-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));