|
@@ -2887,6 +2887,8 @@ static int rt6_fill_node(struct net *net,
|
|
else
|
|
else
|
|
rtm->rtm_type = RTN_UNICAST;
|
|
rtm->rtm_type = RTN_UNICAST;
|
|
rtm->rtm_flags = 0;
|
|
rtm->rtm_flags = 0;
|
|
|
|
+ if (!netif_carrier_ok(rt->dst.dev))
|
|
|
|
+ rtm->rtm_flags |= RTNH_F_LINKDOWN;
|
|
rtm->rtm_scope = RT_SCOPE_UNIVERSE;
|
|
rtm->rtm_scope = RT_SCOPE_UNIVERSE;
|
|
rtm->rtm_protocol = rt->rt6i_protocol;
|
|
rtm->rtm_protocol = rt->rt6i_protocol;
|
|
if (rt->rt6i_flags & RTF_DYNAMIC)
|
|
if (rt->rt6i_flags & RTF_DYNAMIC)
|