aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipmr.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/ipmr.c')
-rw-r--r--net/ipv4/ipmr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c
index c5617d646b93..91782a7634c2 100644
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -2169,7 +2169,10 @@ static int ipmr_fill_mroute(struct mr_table *mrt, struct sk_buff *skb,
2169 goto nla_put_failure; 2169 goto nla_put_failure;
2170 rtm->rtm_type = RTN_MULTICAST; 2170 rtm->rtm_type = RTN_MULTICAST;
2171 rtm->rtm_scope = RT_SCOPE_UNIVERSE; 2171 rtm->rtm_scope = RT_SCOPE_UNIVERSE;
2172 rtm->rtm_protocol = RTPROT_UNSPEC; 2172 if (c->mfc_flags & MFC_STATIC)
2173 rtm->rtm_protocol = RTPROT_STATIC;
2174 else
2175 rtm->rtm_protocol = RTPROT_MROUTED;
2173 rtm->rtm_flags = 0; 2176 rtm->rtm_flags = 0;
2174 2177
2175 if (nla_put_be32(skb, RTA_SRC, c->mfc_origin) || 2178 if (nla_put_be32(skb, RTA_SRC, c->mfc_origin) ||