|
@@ -1024,7 +1024,7 @@ static struct net_device *ip6_rt_get_dev_rcu(struct rt6_info *rt)
|
|
|
{
|
|
{
|
|
|
struct net_device *dev = rt->dst.dev;
|
|
struct net_device *dev = rt->dst.dev;
|
|
|
|
|
|
|
|
- if (rt->rt6i_flags & RTF_LOCAL) {
|
|
|
|
|
|
|
+ if (rt->rt6i_flags & (RTF_LOCAL | RTF_ANYCAST)) {
|
|
|
/* for copies of local routes, dst->dev needs to be the
|
|
/* for copies of local routes, dst->dev needs to be the
|
|
|
* device if it is a master device, the master device if
|
|
* device if it is a master device, the master device if
|
|
|
* device is enslaved, and the loopback as the default
|
|
* device is enslaved, and the loopback as the default
|