Ningyuan Wang | d4b8684 | 2016-01-13 11:28:54 -0800 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2015 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | // |
| 16 | |
| 17 | #ifndef DHCP_CLIENT_DHCP_OPTIONS_H_ |
| 18 | #define DHCP_CLIENT_DHCP_OPTIONS_H_ |
| 19 | |
| 20 | namespace dhcp_client { |
| 21 | // Constants for DHCP options. |
| 22 | const uint8_t kDHCPOptionPad = 0; |
Ningyuan Wang | 599dffb | 2016-01-15 15:29:05 -0800 | [diff] [blame] | 23 | const uint8_t kDHCPOptionSubnetMask = 1; |
| 24 | const uint8_t kDHCPOptionRouter = 3; |
Ningyuan Wang | d4b8684 | 2016-01-13 11:28:54 -0800 | [diff] [blame] | 25 | const uint8_t kDHCPOptionDNSServer = 6; |
Ningyuan Wang | 599dffb | 2016-01-15 15:29:05 -0800 | [diff] [blame] | 26 | const uint8_t kDHCPOptionDomainName = 15; |
Ningyuan Wang | 57c5f54 | 2016-01-28 16:21:00 -0800 | [diff] [blame] | 27 | const uint8_t kDHCPOptionVendorSpecificInformation = 43; |
Ningyuan Wang | 738c8b6 | 2016-02-01 14:19:23 -0800 | [diff] [blame] | 28 | const uint8_t kDHCPOptionRequestedIPAddr = 50; |
Ningyuan Wang | d4b8684 | 2016-01-13 11:28:54 -0800 | [diff] [blame] | 29 | const uint8_t kDHCPOptionLeaseTime = 51; |
| 30 | const uint8_t kDHCPOptionMessageType = 53; |
| 31 | const uint8_t kDHCPOptionServerIdentifier = 54; |
Ningyuan Wang | 3af3d83 | 2016-01-28 10:28:56 -0800 | [diff] [blame] | 32 | const uint8_t kDHCPOptionParameterRequestList = 55; |
Ningyuan Wang | 787f45d | 2016-01-28 13:03:23 -0800 | [diff] [blame] | 33 | const uint8_t kDHCPOptionMessage = 56; |
Ningyuan Wang | d4b8684 | 2016-01-13 11:28:54 -0800 | [diff] [blame] | 34 | const uint8_t kDHCPOptionRenewalTime = 58; |
| 35 | const uint8_t kDHCPOptionRebindingTime = 59; |
Ningyuan Wang | 599dffb | 2016-01-15 15:29:05 -0800 | [diff] [blame] | 36 | const uint8_t kDHCPOptionClientIdentifier = 61; |
Ningyuan Wang | d4b8684 | 2016-01-13 11:28:54 -0800 | [diff] [blame] | 37 | const uint8_t kDHCPOptionEnd = 255; |
| 38 | |
| 39 | const int kDHCPOptionLength = 312; |
| 40 | } // namespace dhcp_client |
| 41 | |
| 42 | #endif // DHCP_CLIENT_DHCP_OPTIONS_H_ |