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

Commit ac2a494b authored by Jack Yu's avatar Jack Yu Committed by Android (Google) Code Review
Browse files

Merge "Check InetAddress Type When Adding Route MTU" into rvc-dev

parents b76fb5e7 c955481b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1531,7 +1531,7 @@ public class DataConnection extends StateMachine {
                }

                for (InetAddress gateway : response.getGatewayAddresses()) {
                    int mtu = linkProperties.hasGlobalIpv6Address() ? response.getMtuV6()
                    int mtu = gateway instanceof java.net.Inet6Address ? response.getMtuV6() 
                            : response.getMtuV4();
                    // Allow 0.0.0.0 or :: as a gateway;
                    // this indicates a point-to-point interface.