]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
In tcp_reass(), assert the inpcb lock on the passed tcpcb, since the
authorRobert Watson <rwatson@FreeBSD.org>
Tue, 23 Nov 2004 23:41:20 +0000 (23:41 +0000)
committerRobert Watson <rwatson@FreeBSD.org>
Tue, 23 Nov 2004 23:41:20 +0000 (23:41 +0000)
commitde30ea131fd95f141c79f24353582e549d881f37
tree1303739f69b3652547087ac2a65d563316583dc3
parent6237419d5c95dfc3176b2c23020f83f3e7b5ee6c
In tcp_reass(), assert the inpcb lock on the passed tcpcb, since the
contents of the tcpcb are read and modified in volume.

In tcp_input(), replace th comparison with 0 with a comparison with
NULL.

At the 'findpcb', 'dropafterack', and 'dropwithreset' labels in
tcp_input(), assert 'headlocked'.  Try to improve consistency between
various assertions regarding headlocked to be more informative.

MFC after: 2 weeks
sys/netinet/tcp_input.c
sys/netinet/tcp_reass.c