Skip to contentSkip to conversation

ipv4: Use caller's on-stack flowi as-is in output route lookups.

RFC PATCH New David Miller 1 participant 1 message Mar 13, 2011

Subsystems (3)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

RFC PATCH v4 8/8 ipv4: Use caller's on-stack flowi as-is in output route lookups.

---
 include/net/route.h |    2 +-
 net/ipv4/route.c    |  134 ++++++++++++++++++++++++--------------------------
 2 files changed, 65 insertions(+), 71 deletions(-)
include/net/route.h +1 -1
index 154e589..304cd6c 100644
@@ -117,7 +117,7 @@ extern int		ip_rt_init(void);
 extern void		ip_rt_redirect(__be32 old_gw, __be32 dst, __be32 new_gw,
 				       __be32 src, struct net_device *dev);
 extern void		rt_cache_flush(struct net *net, int how);
-extern struct rtable *__ip_route_output_key(struct net *, const struct flowi4 *flp);
+extern struct rtable *__ip_route_output_key(struct net *, struct flowi4 *flp);
 extern struct rtable *ip_route_output_flow(struct net *, struct flowi4 *flp,
 					   struct sock *sk);
 extern struct dst_entry *ipv4_blackhole_route(struct net *net, struct dst_entry *dst_orig);
net/ipv4/route.c +64 -70

281 lines not on this page · raw message

Signature · 1 line
1.7.4.1