mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
sit/gre6: don't try to add the same route two times
addrconf_add_linklocal() already adds the link local route, so there is no reason to add it before calling this function. Signed-off-by: Nicolas Dichtel <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
committed by
David S. Miller
parent
f0e2acfa30
commit
f7cb888633
@@ -2682,7 +2682,6 @@ static void addrconf_sit_config(struct net_device *dev)
|
||||
struct in6_addr addr;
|
||||
|
||||
ipv6_addr_set(&addr, htonl(0xFE800000), 0, 0, 0);
|
||||
addrconf_prefix_route(&addr, 64, dev, 0, 0);
|
||||
if (!ipv6_generate_eui64(addr.s6_addr + 8, dev))
|
||||
addrconf_add_linklocal(idev, &addr);
|
||||
return;
|
||||
@@ -2709,8 +2708,6 @@ static void addrconf_gre_config(struct net_device *dev)
|
||||
}
|
||||
|
||||
ipv6_addr_set(&addr, htonl(0xFE800000), 0, 0, 0);
|
||||
addrconf_prefix_route(&addr, 64, dev, 0, 0);
|
||||
|
||||
if (!ipv6_generate_eui64(addr.s6_addr + 8, dev))
|
||||
addrconf_add_linklocal(idev, &addr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user