Skip to content

Commit 9898801

Browse files
teknoravergregkh
authored andcommitted
ipv6: set multicast flag on the multicast route
commit ceed903 upstream. The multicast route ff00::/8 is created with type RTN_UNICAST: $ ip -6 -d route unicast ::1 dev lo proto kernel scope global metric 256 pref medium unicast fe80::/64 dev eth0 proto kernel scope global metric 256 pref medium unicast ff00::/8 dev eth0 proto kernel scope global metric 256 pref medium Set the type to RTN_MULTICAST which is more appropriate. Fixes: e8478e8 ("net/ipv6: Save route type in rt6_info") Signed-off-by: Matteo Croce <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 0083dc2 commit 9898801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv6/addrconf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2466,7 +2466,7 @@ static void addrconf_add_mroute(struct net_device *dev)
24662466
.fc_ifindex = dev->ifindex,
24672467
.fc_dst_len = 8,
24682468
.fc_flags = RTF_UP,
2469-
.fc_type = RTN_UNICAST,
2469+
.fc_type = RTN_MULTICAST,
24702470
.fc_nlinfo.nl_net = dev_net(dev),
24712471
.fc_protocol = RTPROT_KERNEL,
24722472
};

0 commit comments

Comments
 (0)