aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/ip6mr.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/ip6mr.c')
-rw-r--r--net/ipv6/ip6mr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index 4220a7b93386..d51b91122866 100644
--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -2249,7 +2249,10 @@ static int ip6mr_fill_mroute(struct mr6_table *mrt, struct sk_buff *skb,
2249 if (nla_put_u32(skb, RTA_TABLE, mrt->id)) 2249 if (nla_put_u32(skb, RTA_TABLE, mrt->id))
2250 goto nla_put_failure; 2250 goto nla_put_failure;
2251 rtm->rtm_scope = RT_SCOPE_UNIVERSE; 2251 rtm->rtm_scope = RT_SCOPE_UNIVERSE;
2252 rtm->rtm_protocol = RTPROT_UNSPEC; 2252 if (c->mfc_flags & MFC_STATIC)
2253 rtm->rtm_protocol = RTPROT_STATIC;
2254 else
2255 rtm->rtm_protocol = RTPROT_MROUTED;
2253 rtm->rtm_flags = 0; 2256 rtm->rtm_flags = 0;
2254 2257
2255 if (nla_put(skb, RTA_SRC, 16, &c->mf6c_origin) || 2258 if (nla_put(skb, RTA_SRC, 16, &c->mf6c_origin) ||