]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Abstract inpcb drop logic, previously just setting of INP_DROPPED in TCP,
authorrwatson <rwatson@FreeBSD.org>
Tue, 25 Apr 2006 11:17:35 +0000 (11:17 +0000)
committerrwatson <rwatson@FreeBSD.org>
Tue, 25 Apr 2006 11:17:35 +0000 (11:17 +0000)
commit5d598011b534415b6bfa0b82fe291c836516bbd0
treeac3c32c6d4a4115de24383a3ecb36ad35f4fff67
parent38b8fecaba7630458a55dc2790b6057e3ee53b53
Abstract inpcb drop logic, previously just setting of INP_DROPPED in TCP,
into in_pcbdrop().  Expand logic to detach the inpcb from its bound
address/port so that dropping a TCP connection releases the inpcb resource
reservation, which since the introduction of socket/pcb reference count
updates, has been persisting until the socket closed rather than being
released implicitly due to prior freeing of the inpcb on TCP drop.

MFC after: 3 months
sys/netinet/in_pcb.c
sys/netinet/in_pcb.h
sys/netinet/tcp_subr.c
sys/netinet/tcp_timewait.c