timewait_sock: Create and use getpeer op.
The only thing AF-specific about remembering the timestamp
for a time-wait TCP socket is getting the peer.
Abstract that behind a new timewait_sock_ops vector.
Support for real IPV6 sockets is not filled in yet, but
curiously this makes timewait recycling start to work
for v4-mapped ipv6 sockets.
Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/tcp.h 1 addition, 0 deletionsinclude/net/tcp.h
- include/net/timewait_sock.h 8 additions, 0 deletionsinclude/net/timewait_sock.h
- net/ipv4/tcp_ipv4.c 11 additions, 22 deletionsnet/ipv4/tcp_ipv4.c
- net/ipv4/tcp_minisocks.c 24 additions, 8 deletionsnet/ipv4/tcp_minisocks.c
- net/ipv6/tcp_ipv6.c 19 additions, 7 deletionsnet/ipv6/tcp_ipv6.c
Please register or sign in to comment