Re: [PATCH] port_reuse listen fix (allow simultaneous single listen + outgoing connects from same port)
From: Ross Biro
Date: Thu Dec 09 2004 - 10:38:29 EST
On Thu, 9 Dec 2004 13:25:26 +0200, Ilya Pashkovsky
<ilya.pashkovsky@xxxxxxxxx> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/