aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.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/tcp_ipv4.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/tcp_ipv4.c')
-rw-r--r--net/ipv4/tcp_ipv4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index b8bbf89409b0..00285fcf6788 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -1778,7 +1778,7 @@ int tcp_v4_remember_stamp(struct sock *sk)
1778 int release_it = 0; 1778 int release_it = 0;
1779 1779
1780 if (!rt || rt->rt_dst != inet->inet_daddr) { 1780 if (!rt || rt->rt_dst != inet->inet_daddr) {
1781 peer = inet_getpeer(inet->inet_daddr, 1); 1781 peer = inet_getpeer_v4(inet->inet_daddr, 1);
1782 release_it = 1; 1782 release_it = 1;
1783 } else { 1783 } else {
1784 if (!rt->peer) 1784 if (!rt->peer)
@@ -1804,7 +1804,7 @@ EXPORT_SYMBOL(tcp_v4_remember_stamp);
1804 1804
1805int tcp_v4_tw_remember_stamp(struct inet_timewait_sock *tw) 1805int tcp_v4_tw_remember_stamp(struct inet_timewait_sock *tw)
1806{ 1806{
1807 struct inet_peer *peer = inet_getpeer(tw->tw_daddr, 1); 1807 struct inet_peer *peer = inet_getpeer_v4(tw->tw_daddr, 1);
1808 1808
1809 if (peer) { 1809 if (peer) {
1810 const struct tcp_timewait_sock *tcptw = tcp_twsk((struct sock *)tw); 1810 const struct tcp_timewait_sock *tcptw = tcp_twsk((struct sock *)tw);