Re: bind() allowed to non-local addresses

From: Christoph Rohland (cr@sap.com)
Date: Thu Oct 19 2000 - 02:17:34 EST


kuznet@ms2.inr.ac.ru writes:

> Hello!
>
> > Using linux-2.4.0-test9, bind() incorrectly allows a bind to a non-local
> > address. The correct behavior should be a return code of -1 with errno
> > set to EADDRNOTAVAIL.
>
> You can bind to any address, it is your right. You will not able
> to receive on or to send from such socket until address will become
> really local.
>
> Such bind is allowed because the address can be dynamic.
> Nobody wants that a service did not start only because
> the moment of start address was temporarily off-line.

No, please revert it or make it configurable. It may be nice for
mobile devices, but not for servers. There are programs out there
which test via bind() if it is a local address.

Greetings
                Christoph
-
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/



This archive was generated by hypermail 2b29 : Mon Oct 23 2000 - 21:00:14 EST