Re: bind() allowed to non-local addresses

From: Matt Peterson (mpeterson@calderasystems.com)
Date: Thu Oct 19 2000 - 10:23:26 EST


"David S. Miller" wrote:
>
> Date: Thu, 19 Oct 2000 09:07:57 -0600
> From: Matt Peterson <mpeterson@calderasystems.com>
>
> Hence, the JVM fails compatibility on Linux 2.4.
>
> Due ot this and other reasons I'm restoring the 2.2.x behavior by
> default, but adding a sysctl so that systems using dynamic addressing
> may elect to get the different bind() behavior.
>
> Later,
> David S. Miller
> davem@redhat.com

Have you thought about an SOL_SOCKET level socket option? It might be
more intuitive for programmers than an ioctl and could be documented
with sockets where it will be used. Again, we would run into
compatibility issues with other Sockets implementations, but
traditionally the sockopt funtionality between implementations are
(sorta) expected to vary. Just an idea.

-- 
Matthew Peterson
Sr. Software Engineer
Caldera Systems, Inc
mpeterson@caldera.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/



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