Yaroslav Tykhiy 4658dc8325 When checking for possible port theft, skip over a TCP inpcb
unless it's in the closed or listening state (remote address
== INADDR_ANY).

If a TCP inpcb is in any other state, it's impossible to steal
its local port or use it for port theft.  And if there are
both closed/listening and connected TCP inpcbs on the same
localIP:port couple, the call to in_pcblookup_local() will
find the former due to the design of that function.

No objections raised in:	-net, -arch
MFC after:			1 month
2004-05-20 06:35:02 +00:00
..
2004-04-02 17:57:57 +00:00
2003-10-07 17:46:18 +00:00
2003-10-29 15:07:04 +00:00
2003-10-29 15:07:04 +00:00
2004-03-22 16:04:43 +00:00
2003-08-07 18:17:43 +00:00