summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-05-19 00:38:54 +0200
committerDavid S. Miller <davem@davemloft.net>2011-05-19 00:38:54 +0200
commited2361e66eec60645f8e4715fe39a42235ef43ae (patch)
tree96c6f4fa75456647d62c245b87b0d3ce97ce462b /include/net
parentipv4: Make caller provide flowi4 key to inet_csk_route_req(). (diff)
downloadlinux-ed2361e66eec60645f8e4715fe39a42235ef43ae.tar.xz
linux-ed2361e66eec60645f8e4715fe39a42235ef43ae.zip
ipv4: Pass explicit destination address to rt_get_peer().
This will next trickle down to rt_bind_peer(). Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/route.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/route.h b/include/net/route.h
index ba0e0840370c..600d0f2ef8d6 100644
--- a/include/net/route.h
+++ b/include/net/route.h
@@ -292,7 +292,7 @@ static inline struct rtable *ip_route_newports(struct flowi4 *fl4, struct rtable
extern void rt_bind_peer(struct rtable *rt, int create);
-static inline struct inet_peer *rt_get_peer(struct rtable *rt)
+static inline struct inet_peer *rt_get_peer(struct rtable *rt, __be32 daddr)
{
if (rt->peer)
return rt->peer;