[<prev] [next>] [day] [month] [year] [list]
Message-ID: <AANLkTi=y2O-f0rZNoVwmFxPrF-fBT0Zdb4eQ3_eD59s8@mail.gmail.com>
Date: Thu, 17 Mar 2011 22:54:03 -0300
From: Eduardo Panisset <eduardo.panisset@...il.com>
To: netdev@...r.kernel.org
Subject: IPv6 SO_BINDTODEVICE and Multiple default routes
Hi,
I have two interfaces (wlan0) and (eth0) up and running on my laptop.
Also I have two v6 default routes and neighbor cache set up, as below:
ip route
default via fe80::21a:70ff:fee6:b155 dev eth0 proto ra metric 996
mtu 1280 advmss 1220 hoplimit 0
default via fe80::21a:70ff:fee6:b155 dev wlan0 proto ra metric 999
mtu 1280 advmss 1220 hoplimit 0
ip -6 neigh
fe80::21a:70ff:fee6:b155 dev wlan0 lladdr 00:1a:70:e6:b1:55 router STALE
2001:470:c1fa:1083:: dev wlan0 lladdr 00:1a:70:e6:b1:55 STALE
2001:470:c1fa:1083:: dev eth0 lladdr 00:1a:70:e6:b1:55 STALE
fe80::21a:70ff:fee6:b155 dev eth0 lladdr 00:1a:70:e6:b1:55 router REACHABLE
Im opening 2 UDPv6 sockets, and using SO_BINDTODEVICE so as to bind
each one respectively to "wlan0" and "eth0".
However the communication takes place just over eth0 socket. Over
wlan0 the application gets the message "Network Unreachable". However
if I configure the two default routes with the same metric then the
binding to "wlan0" comes to work nicely.
Debugging the ip6_pol_route function inside the kernel I could figure
out that the default route to "wlan0" is not being considered at all
when the metrics for the two v6 default routes are different from each
other, it's considered if the metrics for the two default routes are
the same, though.
Is this behaviour expected ?
Regards,
Eduardo Panisset.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists