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

Commit f635f126 authored by Jimmy Chen's avatar Jimmy Chen Committed by Gerrit Code Review
Browse files

Merge "IPv6: enable IPv6 link local routing for local network"

parents 27a6501a 086779de
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2506,6 +2506,10 @@ public class NetworkManagementService extends INetworkManagementService.Stub
                modifyRoute(MODIFY_OPERATION_ADD, INetd.LOCAL_NET_ID, route);
            }
        }

        // IPv6 link local should be activated always.
        modifyRoute(MODIFY_OPERATION_ADD, INetd.LOCAL_NET_ID,
                new RouteInfo(new IpPrefix("fe80::/64"), null, iface));
    }

    @Override
+0 −11
Original line number Diff line number Diff line
@@ -87,7 +87,6 @@ public class IpServer extends StateMachine {
        return "UNKNOWN: " + state;
    }

    private static final IpPrefix LINK_LOCAL_PREFIX = new IpPrefix("fe80::/64");
    private static final byte DOUG_ADAMS = (byte) 42;

    private static final String USB_NEAR_IFACE_ADDR = "192.168.42.129";
@@ -557,16 +556,6 @@ public class IpServer extends StateMachine {
                addedPrefixes.removeAll(mLastRaParams.prefixes);
            }

            if (mLastRaParams == null || mLastRaParams.prefixes.isEmpty()) {
                // We need to be able to send unicast RAs, and clients might
                // like to ping the default router's link-local address.  Note
                // that we never remove the link-local route from the network
                // until Tethering disables tethering on the interface. We
                // only need to add the link-local prefix once, but in the
                // event we add it more than once netd silently ignores EEXIST.
                addedPrefixes.add(LINK_LOCAL_PREFIX);
            }

            if (!addedPrefixes.isEmpty()) {
                final ArrayList<RouteInfo> toBeAdded =
                        getLocalRoutesFor(mIfaceName, addedPrefixes);