Re: SO_REUSEADDR redux

2001-02-01 Thread David S. Miller
Paul D. Smith writes: > %% Alan Cox <[EMAIL PROTECTED]> writes: > > >> This application uses SO_REUSEADDR in conjunction with INADDR_ANY. What > >> it does is bind() to INADDR_ANY, then listen(). Then, it proceeds to > >> bind (but _not_ listen) various other specific addresses. >

Re: SO_REUSEADDR redux

2001-02-01 Thread Paul D. Smith
%% Alan Cox <[EMAIL PROTECTED]> writes: >> This application uses SO_REUSEADDR in conjunction with INADDR_ANY. What >> it does is bind() to INADDR_ANY, then listen(). Then, it proceeds to >> bind (but _not_ listen) various other specific addresses. ac> That should be ok if its setting S

Re: SO_REUSEADDR redux

2001-02-01 Thread David S. Miller
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 us

Re: SO_REUSEADDR redux

2001-02-01 Thread Alan Cox
> This application uses SO_REUSEADDR in conjunction with INADDR_ANY. What > it does is bind() to INADDR_ANY, then listen(). Then, it proceeds to > bind (but _not_ listen) various other specific addresses. That should be ok if its setting SO_REUSEADDR > not a security problem: what's really the