diff options
author | David S. Miller <davem@davemloft.net> | 2010-11-29 16:37:14 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-30 15:28:06 -0500 |
commit | 3f419d2d487821093ee46e898b5f8747f9edc9cd (patch) | |
tree | a3f7731eb0706c5ae6d0f4ec004ba0d08d7f951b /include/net/tcp.h | |
parent | b3419363808f2481b24a817f491878e1795db4c7 (diff) |
inet: Turn ->remember_stamp into ->get_peer in connection AF ops.
Then we can make a completely generic tcp_remember_stamp()
that uses ->get_peer() as a helper, minimizing the AF specific
code and minimizing the eventual code duplication when we implement
the ipv6 side of TW recycling.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index e36c874c7fb1..3e239641d4ee 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -312,7 +312,7 @@ extern void tcp_shutdown (struct sock *sk, int how); | |||
312 | 312 | ||
313 | extern int tcp_v4_rcv(struct sk_buff *skb); | 313 | extern int tcp_v4_rcv(struct sk_buff *skb); |
314 | 314 | ||
315 | extern int tcp_v4_remember_stamp(struct sock *sk); | 315 | extern struct inet_peer *tcp_v4_get_peer(struct sock *sk, bool *release_it); |
316 | extern int tcp_v4_tw_remember_stamp(struct inet_timewait_sock *tw); | 316 | extern int tcp_v4_tw_remember_stamp(struct inet_timewait_sock *tw); |
317 | extern int tcp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, | 317 | extern int tcp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, |
318 | size_t size); | 318 | size_t size); |