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-05-16 22:51:36 +00:00
2004-05-02 19:24:23 +00:00
2004-04-30 20:51:55 +00:00
2004-05-18 11:56:24 +00:00
2004-05-18 05:30:06 +00:00
2004-05-14 12:28:31 +00:00
2004-05-19 11:35:03 +00:00
2004-05-18 11:56:56 +00:00
2004-05-19 18:06:21 +00:00