Subject: Re: [PATCH] port_reuse listen fix (allow simultaneous single listen + outgoing connects from same port)

From: Ross Biro <[email-masked]>
Date: Thu, 9 Dec 2004 10:36:08 -0500

On Thu, 9 Dec 2004 13:25:26 +0200, Ilya Pashkovsky
<[email-masked]> wrote:
> This is the latest patch with removed bool > 1 check and ipv6 support.
> http://puding.mine.nu/patches/
> http://puding.mine.nu/patches/patch-reuse-bool-ipv6
> 
> to check, you can use netcat (sets SO_REUSEADDR by default).
> on one host (host A): nc -v -l -p 9999
> on another/same host (host B): nc -v -l -p 9000
> on host A: nc -v -p 9999 host.B.ip.addr 9000
> on host B: nc -v host.A.ip.addr 9999

What happens if on host B you do 

nc -v -p 9000 host.A.ip.addr 9999?

Seems to me you will break the rule that a connection is uniquely
identified by (srcpip, destip, srcport, destport).

    Ross