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

Commit edac7eca authored by Tyler Wear's avatar Tyler Wear
Browse files

Check InetAddress Type When Adding Route MTU

Check the InetAddress type of the gateway when adding route
MTU parameter.

Change-Id: I54da48ef356f25cc9447c001ab068b4563b91971
parent 081cf7b1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1479,7 +1479,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.