cvs commit: src/sys/netinet in_pcb.c
Yar Tikhiy
yar at FreeBSD.org
Wed May 19 23:35:28 PDT 2004
yar 2004/05/19 23:35:03 PDT
FreeBSD src repository
Modified files:
sys/netinet in_pcb.c
Log:
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
Revision Changes Path
1.147 +3 -7 src/sys/netinet/in_pcb.c
More information about the cvs-src
mailing list