Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46306b49 authored by Li RongQing's avatar Li RongQing Committed by David S. Miller
Browse files

ipv6: unneccessary to get address prefix in addrconf_get_prefix_route



Since addrconf_get_prefix_route inputs the address prefix to fib6_locate,
which does not uses the data which is out of the prefix_len length,
so do not need to use ipv6_addr_prefix to get address prefix.

Signed-off-by: default avatarLi RongQing <roy.qing.li@gmail.com>
Acked-by: default avatarHannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 71a1d9ee
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -995,12 +995,9 @@ static void ipv6_del_addr(struct inet6_ifaddr *ifp)
	 * --yoshfuji
	 */
	if ((ifp->flags & IFA_F_PERMANENT) && onlink < 1) {
		struct in6_addr prefix;
		struct rt6_info *rt;

		ipv6_addr_prefix(&prefix, &ifp->addr, ifp->prefix_len);

		rt = addrconf_get_prefix_route(&prefix,
		rt = addrconf_get_prefix_route(&ifp->addr,
					       ifp->prefix_len,
					       ifp->idev->dev,
					       0, RTF_GATEWAY | RTF_DEFAULT);