Re: SO_REUSEADDR redux

David S. Miller (davem@redhat.com)
Thu, 1 Feb 2001 18:18:55 -0800 (PST)


Paul D. Smith writes:
> I agree, and so does Solaris/FreeBSD, but Linux doesn't. See below for
> a test program. Maybe I'm doing something screwed up.

I think I'm starting to get a hold on this. Can you do a test
for me?

Write a small test program, similar to your TCP one, which instead
uses UDP and let me know what FreeBSD and Solaris do in that case.
Of course, skip the listen part.

I think the test for port reuse in tcp_{v4,v6}_get_port is buggy.
I'll go study this and fix it up... but please do the test I asked
anyways.

Later,
David S. Miller
davem@redhat.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/