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

Commit 19de6837 authored by Lorenzo Colitti's avatar Lorenzo Colitti Committed by Android Git Automerger
Browse files

am ef681b7f: am e33f4366: Merge "Add default route constants to RouteInfo." into jb-mr2-dev

* commit 'ef681b7f':
  Add default route constants to RouteInfo.
parents 907f69d6 ef681b7f
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -45,6 +45,18 @@ public class RouteInfo implements Parcelable {
    private final boolean mIsDefault;
    private final boolean mIsHost;

    /**
     * The IPv4 default route.
     */
    public static final RouteInfo IPV4_DEFAULT = new RouteInfo(
        new LinkAddress(Inet4Address.ANY, 0));

    /**
     * The IPv6 default route.
     */
    public static final RouteInfo IPV6_DEFAULT = new RouteInfo(
        new LinkAddress(Inet6Address.ANY, 0));

    public RouteInfo(LinkAddress destination, InetAddress gateway) {
        if (destination == null) {
            if (gateway != null) {