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

Commit d6844826 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Make all DHCP option numbers public." am: 3a4dde8e am: 35207f93 am:...

Merge "Make all DHCP option numbers public." am: 3a4dde8e am: 35207f93 am: f4c929f2 am: c418e1b9

Change-Id: I117bad5b0d906697494733430835ce0de218daaa
parents 3a9349f8 c418e1b9
Loading
Loading
Loading
Loading
+22 −23
Original line number Original line Diff line number Diff line
@@ -162,49 +162,49 @@ public abstract class DhcpPacket {
    /**
    /**
     * DHCP Optional Type: DHCP Subnet Mask
     * DHCP Optional Type: DHCP Subnet Mask
     */
     */
    protected static final byte DHCP_SUBNET_MASK = 1;
    public static final byte DHCP_SUBNET_MASK = 1;
    protected Inet4Address mSubnetMask;
    protected Inet4Address mSubnetMask;


    /**
    /**
     * DHCP Optional Type: DHCP Router
     * DHCP Optional Type: DHCP Router
     */
     */
    protected static final byte DHCP_ROUTER = 3;
    public static final byte DHCP_ROUTER = 3;
    protected List <Inet4Address> mGateways;
    protected List <Inet4Address> mGateways;


    /**
    /**
     * DHCP Optional Type: DHCP DNS Server
     * DHCP Optional Type: DHCP DNS Server
     */
     */
    protected static final byte DHCP_DNS_SERVER = 6;
    public static final byte DHCP_DNS_SERVER = 6;
    protected List<Inet4Address> mDnsServers;
    protected List<Inet4Address> mDnsServers;


    /**
    /**
     * DHCP Optional Type: DHCP Host Name
     * DHCP Optional Type: DHCP Host Name
     */
     */
    protected static final byte DHCP_HOST_NAME = 12;
    public static final byte DHCP_HOST_NAME = 12;
    protected String mHostName;
    protected String mHostName;


    /**
    /**
     * DHCP Optional Type: DHCP DOMAIN NAME
     * DHCP Optional Type: DHCP DOMAIN NAME
     */
     */
    protected static final byte DHCP_DOMAIN_NAME = 15;
    public static final byte DHCP_DOMAIN_NAME = 15;
    protected String mDomainName;
    protected String mDomainName;


    /**
    /**
     * DHCP Optional Type: DHCP Interface MTU
     * DHCP Optional Type: DHCP Interface MTU
     */
     */
    protected static final byte DHCP_MTU = 26;
    public static final byte DHCP_MTU = 26;
    protected Short mMtu;
    protected Short mMtu;


    /**
    /**
     * DHCP Optional Type: DHCP BROADCAST ADDRESS
     * DHCP Optional Type: DHCP BROADCAST ADDRESS
     */
     */
    protected static final byte DHCP_BROADCAST_ADDRESS = 28;
    public static final byte DHCP_BROADCAST_ADDRESS = 28;
    protected Inet4Address mBroadcastAddress;
    protected Inet4Address mBroadcastAddress;


    /**
    /**
     * DHCP Optional Type: Vendor specific information
     * DHCP Optional Type: Vendor specific information
     */
     */
    protected static final byte DHCP_VENDOR_INFO = 43;
    public static final byte DHCP_VENDOR_INFO = 43;
    protected String mVendorInfo;
    protected String mVendorInfo;


    /**
    /**
@@ -215,7 +215,7 @@ public abstract class DhcpPacket {
    /**
    /**
     * DHCP Optional Type: Option overload option
     * DHCP Optional Type: Option overload option
     */
     */
    protected static final byte DHCP_OPTION_OVERLOAD = 52;
    public static final byte DHCP_OPTION_OVERLOAD = 52;


    /**
    /**
     * Possible values of the option overload option.
     * Possible values of the option overload option.
@@ -227,14 +227,14 @@ public abstract class DhcpPacket {
    /**
    /**
     * DHCP Optional Type: DHCP Requested IP Address
     * DHCP Optional Type: DHCP Requested IP Address
     */
     */
    protected static final byte DHCP_REQUESTED_IP = 50;
    public static final byte DHCP_REQUESTED_IP = 50;
    @VisibleForTesting(otherwise = VisibleForTesting.PROTECTED)
    @VisibleForTesting(otherwise = VisibleForTesting.PROTECTED)
    public Inet4Address mRequestedIp;
    public Inet4Address mRequestedIp;


    /**
    /**
     * DHCP Optional Type: DHCP Lease Time
     * DHCP Optional Type: DHCP Lease Time
     */
     */
    protected static final byte DHCP_LEASE_TIME = 51;
    public static final byte DHCP_LEASE_TIME = 51;
    protected Integer mLeaseTime;
    protected Integer mLeaseTime;


    /**
    /**
@@ -254,72 +254,71 @@ public abstract class DhcpPacket {
    /**
    /**
     * DHCP Optional Type: DHCP Server Identifier
     * DHCP Optional Type: DHCP Server Identifier
     */
     */
    protected static final byte DHCP_SERVER_IDENTIFIER = 54;
    public static final byte DHCP_SERVER_IDENTIFIER = 54;
    @VisibleForTesting(otherwise = VisibleForTesting.PROTECTED)
    @VisibleForTesting(otherwise = VisibleForTesting.PROTECTED)
    public Inet4Address mServerIdentifier;
    public Inet4Address mServerIdentifier;


    /**
    /**
     * DHCP Optional Type: DHCP Parameter List
     * DHCP Optional Type: DHCP Parameter List
     */
     */
    protected static final byte DHCP_PARAMETER_LIST = 55;
    public static final byte DHCP_PARAMETER_LIST = 55;
    protected byte[] mRequestedParams;
    protected byte[] mRequestedParams;


    /**
    /**
     * DHCP Optional Type: DHCP MESSAGE
     * DHCP Optional Type: DHCP MESSAGE
     */
     */
    protected static final byte DHCP_MESSAGE = 56;
    public static final byte DHCP_MESSAGE = 56;
    protected String mMessage;
    protected String mMessage;


    /**
    /**
     * DHCP Optional Type: Maximum DHCP Message Size
     * DHCP Optional Type: Maximum DHCP Message Size
     */
     */
    protected static final byte DHCP_MAX_MESSAGE_SIZE = 57;
    public static final byte DHCP_MAX_MESSAGE_SIZE = 57;
    protected Short mMaxMessageSize;
    protected Short mMaxMessageSize;


    /**
    /**
     * DHCP Optional Type: DHCP Renewal Time Value
     * DHCP Optional Type: DHCP Renewal Time Value
     */
     */
    protected static final byte DHCP_RENEWAL_TIME = 58;
    public static final byte DHCP_RENEWAL_TIME = 58;
    protected Integer mT1;
    protected Integer mT1;


    /**
    /**
     * DHCP Optional Type: Rebinding Time Value
     * DHCP Optional Type: Rebinding Time Value
     */
     */
    protected static final byte DHCP_REBINDING_TIME = 59;
    public static final byte DHCP_REBINDING_TIME = 59;
    protected Integer mT2;
    protected Integer mT2;


    /**
    /**
     * DHCP Optional Type: Vendor Class Identifier
     * DHCP Optional Type: Vendor Class Identifier
     */
     */
    protected static final byte DHCP_VENDOR_CLASS_ID = 60;
    public static final byte DHCP_VENDOR_CLASS_ID = 60;
    protected String mVendorId;
    protected String mVendorId;


    /**
    /**
     * DHCP Optional Type: DHCP Client Identifier
     * DHCP Optional Type: DHCP Client Identifier
     */
     */
    protected static final byte DHCP_CLIENT_IDENTIFIER = 61;
    public static final byte DHCP_CLIENT_IDENTIFIER = 61;
    protected byte[] mClientId;
    protected byte[] mClientId;


    /**
    /**
     * DHCP zero-length Optional Type: Rapid Commit. Per RFC4039, both DHCPDISCOVER and DHCPACK
     * DHCP zero-length Optional Type: Rapid Commit. Per RFC4039, both DHCPDISCOVER and DHCPACK
     * packet may include this option.
     * packet may include this option.
     */
     */
    protected static final byte DHCP_RAPID_COMMIT = 80;
    public static final byte DHCP_RAPID_COMMIT = 80;
    protected boolean mRapidCommit;
    protected boolean mRapidCommit;


    @VisibleForTesting
    public static final byte DHCP_CAPTIVE_PORTAL = (byte) 114;
    public static final byte DHCP_CAPTIVE_PORTAL = (byte) 114;
    protected String mCaptivePortalUrl;
    protected String mCaptivePortalUrl;


    /**
    /**
     * DHCP zero-length option code: pad
     * DHCP zero-length option code: pad
     */
     */
    protected static final byte DHCP_OPTION_PAD = 0x00;
    public static final byte DHCP_OPTION_PAD = 0x00;


    /**
    /**
     * DHCP zero-length option code: end of options
     * DHCP zero-length option code: end of options
     */
     */
    protected static final byte DHCP_OPTION_END = (byte) 0xff;
    public static final byte DHCP_OPTION_END = (byte) 0xff;


    /**
    /**
     * The transaction identifier used in this particular DHCP negotiation
     * The transaction identifier used in this particular DHCP negotiation