[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bind_socket uses SO_REUSEADDR


Hello!
I'm developing an ssh server and I came to the following problem.
In bind_socket functional hard coded using SO_REUSEADDR socket option. Why
is that so?
Because of that it is possible to start two servers on the same port which
I don't need.
What alternatives do I have? I see the following:
- to add new SSH_BIND_OPTIONS_REUSEADDR or something like that (but I need
to change libssh for that)
- to use ssh_bind_set_fd with a socket created by myself
- something else?

Follow-Ups:
Re: bind_socket uses SO_REUSEADDRAris Adamantiadis <aris@xxxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org