aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/route.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-11-30 14:54:19 -0500
committerDavid S. Miller <davem@davemloft.net>2010-11-30 14:54:19 -0500
commitb534ecf1cd26f094497da6ae28a6ab64cdbe1617 (patch)
treebdf8a55183a38926b8f34f709cb51a4db2f5f6b8 /net/ipv4/route.c
parent582a72da9a41be9227dc931d728ae2906880a589 (diff)
inetpeer: Make inet_getpeer() take an inet_peer_adress_t pointer.
And make an inet_getpeer_v4() helper, update callers. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r--net/ipv4/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index ec2333fb637e..3843c2dfde82 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -1289,7 +1289,7 @@ void rt_bind_peer(struct rtable *rt, int create)
1289{ 1289{
1290 struct inet_peer *peer; 1290 struct inet_peer *peer;
1291 1291
1292 peer = inet_getpeer(rt->rt_dst, create); 1292 peer = inet_getpeer_v4(rt->rt_dst, create);
1293 1293
1294 if (peer && cmpxchg(&rt->peer, NULL, peer) != NULL) 1294 if (peer && cmpxchg(&rt->peer, NULL, peer) != NULL)
1295 inet_putpeer(peer); 1295 inet_putpeer(peer);