summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2021-01-19 06:53:05 +0300
committerJakub Kicinski <kuba@kernel.org>2021-01-19 06:53:05 +0300
commitb889c7c8c02ebb0b724e1b3998d7924122e49701 (patch)
tree2e8d07f2421cac809936e73daf51734e216e1d46 /net
parentbde2c0af6141702580a2ccebc396041660d127ef (diff)
parentceed9038b2783d14e0422bdc6fd04f70580efb4c (diff)
downloadlinux-b889c7c8c02ebb0b724e1b3998d7924122e49701.tar.xz
Merge branch 'ipv6-fixes-for-the-multicast-routes'
Matteo Croce says: ==================== ipv6: fixes for the multicast routes Fix two wrong flags in the IPv6 multicast routes created by the autoconf code. ==================== Link: https://lore.kernel.org/r/20210115184209.78611-1-mcroce@linux.microsoft.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/addrconf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index eff2cacd5209..9edc5bb2d531 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -2467,8 +2467,9 @@ static void addrconf_add_mroute(struct net_device *dev)
.fc_ifindex = dev->ifindex,
.fc_dst_len = 8,
.fc_flags = RTF_UP,
- .fc_type = RTN_UNICAST,
+ .fc_type = RTN_MULTICAST,
.fc_nlinfo.nl_net = dev_net(dev),
+ .fc_protocol = RTPROT_KERNEL,
};
ipv6_addr_set(&cfg.fc_dst, htonl(0xFF000000), 0, 0, 0);