From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David S. Miller" Subject: Re: [PATCH] IPv6: Allow Both IPv6 and IPv4 Sockets on the Same Port Number (IPV6_V6ONLY Support) Date: Thu, 03 Oct 2002 01:58:42 -0700 (PDT) Sender: netdev-bounce@oss.sgi.com Message-ID: <20021003.015842.56966498.davem@redhat.com> References: <20021003.121350.119660876.yoshfuji@linux-ipv6.org> <20021003.012904.75241727.davem@redhat.com> <200210031855.12148.bhards@bigpond.net.au> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: yoshfuji@linux-ipv6.org, linux-kernel@vger.kernel.org, netdev@oss.sgi.com, usagi@linux-ipv6.org Return-path: To: bhards@bigpond.net.au In-Reply-To: <200210031855.12148.bhards@bigpond.net.au> Errors-to: netdev-bounce@oss.sgi.com List-Id: netdev.vger.kernel.org From: Brad Hards Date: Thu, 3 Oct 2002 18:55:11 +1000 Assume B has two network interfaces (B1 and B2) on seperate IPv4 links (net1 and net2). Host A is on net1 and Host C is on net2. Assume that both Host A and Host C have the same autoconf address. So IP address is not enough information for Host B to use to determine which interface to use in order to contact Host A (instead of Host C). If host B has socket binding on IP+port+local interface, it all works out. You want SO_BINDTODEVICE, which we have.