]> git.baikalelectronics.ru Git - kernel.git/commit
timewait_sock: Create and use getpeer op.
authorDavid S. Miller <davem@davemloft.net>
Thu, 2 Dec 2010 02:09:13 +0000 (18:09 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Dec 2010 02:09:13 +0000 (18:09 -0800)
commitd2ce3ff9ba4bfd1ecef675621c7ea5da887b54f9
tree6a363c7232121d2390c091b232ee758fa10e4446
parentcd759bb77bced4f2fe1b2fab472170ba42a20fbb
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>
include/net/tcp.h
include/net/timewait_sock.h
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_minisocks.c
net/ipv6/tcp_ipv6.c