Re: [PATCH] IPv6: Allow Both IPv6 and IPv4 Sockets on the Same

David S. Miller (davem@redhat.com)
Thu, 03 Oct 2002 01:58:42 -0700 (PDT)


From: Brad Hards <bhards@bigpond.net.au>
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.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/