Re: bind() allowed to non-local addresses

From: kuznet@ms2.inr.ac.ru
Date: Wed Oct 18 2000 - 12:54:58 EST


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.

Alexey

-
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:13 EST