On Fri, Jul 28, 2000 at 08:55:51AM +0900, Hideaki YOSHIFUJI wrote:
> In article <[EMAIL PROTECTED]> (at Thu, 27 Jul 2000 16:28:48
>-0500), "La Monte Henry Piggy Yarroll" <[EMAIL PROTECTED]> says:
>
> > >> the v6 application could do this more simply by binding to the v4
> > >> address (be it wildcard or not) in addition to any others.
> > >
> > >We cannot do this with Linux.
> >
> > I have not gotten into the v6 portions of the networking code, but
> > what is the constraint?
>
> Ipv6 tcp layer and ipv4 tcp layer are shared.
> You cannot bind a ipv4 socket to a port already bound to ipv6 socket.
> You cannot bind a ipv6 socket to a port already bound to ipv4 socket.
Unless you bind to specific addresses.
I find the Linux behavior pretty logical. Sometimes it gets in the way
though. An IPv6 socket option for not accepting IPv4 connections sounds
good, then one could bind both IPv4 and IPv6 sockets to the same port
without specifying addresses.
Stig
--
Stig Venaas
UNINETT
--------------------------------------------------------------------
IETF IPng Working Group Mailing List
IPng Home Page: http://playground.sun.com/ipng
FTP archive: ftp://playground.sun.com/pub/ipng
Direct all administrative requests to [EMAIL PROTECTED]
--------------------------------------------------------------------