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>
This commit is contained in:
@@ -312,7 +312,7 @@ extern void tcp_shutdown (struct sock *sk, int how);
|
||||
|
||||
extern int tcp_v4_rcv(struct sk_buff *skb);
|
||||
|
||||
extern int tcp_v4_remember_stamp(struct sock *sk);
|
||||
extern struct inet_peer *tcp_v4_get_peer(struct sock *sk, bool *release_it);
|
||||
extern int tcp_v4_tw_remember_stamp(struct inet_timewait_sock *tw);
|
||||
extern int tcp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
|
||||
size_t size);
|
||||
|
Reference in New Issue
Block a user