mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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:
parent
b341936380
commit
3f419d2d48
5 changed files with 44 additions and 34 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue