Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b58019f0

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Scott C Otto
Date: Thursday, May 27, 2010 - 2:31 pm

All,
Thanks for looking into this.

The behavior of SO_BINDTODEVICE, certainly with IPV4, is to identify a specific
interface to use for sending/receiving AF_INET packets upon.   And that's how it
has behaved with IPV4.   Tools like ping, traceroute (and ping6, traceroute6)
make use of it with the -i (interface) options.

We ran into this issue when updating an IPV4 application to IPV6.   The report
provided one example of the issue.

The original change was based on the semantics of flowi.oif used in IPV4.  There
flowi.oif (as it is with IPV6 as well) is also set to sk->sk_bound_dev_if when
using ip_route_connect() and routing simply took a non-zero oif to enforce an
interface.  Looking at IPV4 tunneling, flowi.oif is set the same way from
tunnel's parms.link as with IPV6 so would follow those semantics as well.

Obviously, with IPV6, the semantics of flowi.oif are different and perhaps even
vary with the users of IPV6.

If that variability is desired, the proposed change from Brian (using
sk->sk_bound_dev_if) would be an equivalent means of supporting SO_BINDTODEVICE
while limiting the impact.

Scott

On 5/27/2010 2:39 PM, Brian Haley wrote:


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[REGRESSION,BISECTED] MIPv6 support broken by f4f914b58019f0, Arnaud Ebalard, (Wed May 26, 10:01 am)
Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b5 ..., YOSHIFUJI Hideaki, (Thu May 27, 10:39 am)
Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b5 ..., Scott C Otto, (Thu May 27, 2:31 pm)
[PATCH] IPv6: fix Mobile IPv6 regression, Brian Haley, (Fri May 28, 11:17 am)
Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b5 ..., YOSHIFUJI Hideaki, (Fri May 28, 11:40 am)
Re: [PATCH] IPv6: fix Mobile IPv6 regression, David Miller, (Fri May 28, 11:03 pm)
Re: [PATCH] IPv6: fix Mobile IPv6 regression, Jiri Olsa, (Mon May 31, 1:46 am)
Re: [PATCH] IPv6: fix Mobile IPv6 regression, Jiri Olsa, (Mon May 31, 5:49 am)