]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - include/net/route.h
ipv4: Pass explicit destination address to rt_bind_peer().
[mv-sheeva.git] / include / net / route.h
index 600d0f2ef8d6cfd8e8e75aa3da815114662f084e..db7b3432f07c41ce124c9d2a792035cead8b048d 100644 (file)
@@ -290,14 +290,14 @@ static inline struct rtable *ip_route_newports(struct flowi4 *fl4, struct rtable
        return rt;
 }
 
-extern void rt_bind_peer(struct rtable *rt, int create);
+extern void rt_bind_peer(struct rtable *rt, __be32 daddr, int create);
 
 static inline struct inet_peer *rt_get_peer(struct rtable *rt, __be32 daddr)
 {
        if (rt->peer)
                return rt->peer;
 
-       rt_bind_peer(rt, 0);
+       rt_bind_peer(rt, daddr, 0);
        return rt->peer;
 }