1 /* 2 * Copyright (C) 2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 #ifndef OHOS_DHCP_MANAGER_SERVICE_IPC_INTERFACE_CODE_H 16 #define OHOS_DHCP_MANAGER_SERVICE_IPC_INTERFACE_CODE_H 17 18 namespace OHOS { 19 namespace Wifi { 20 enum class DhcpClientInterfaceCode { 21 DHCP_CLIENT_SVR_CMD_REG_CALL_BACK = 0x4000, 22 DHCP_CLIENT_SVR_CMD_START_DHCP_CLIENT = 0x4001, 23 DHCP_CLIENT_SVR_CMD_STOP_DHCP_CLIENT = 0x4002, 24 DHCP_CLIENT_SVR_CMD_RENEW_DHCP_CLIENT = 0x4003, 25 26 /* CLIENT CALL BACK code */ 27 DHCP_CLIENT_CBK_CMD_IP_SUCCESS_CHANGE = 0x6000, 28 DHCP_CLIENT_CBK_CMD_IP_FAIL_CHANGE = 0x6001, 29 }; 30 31 enum class DhcpServerInterfaceCode { 32 DHCP_SERVER_SVR_CMD_REG_CALL_BACK = 0x5000, 33 DHCP_SERVER_SVR_CMD_START_DHCP_SERVER = 0x5001, 34 DHCP_SERVER_SVR_CMD_STOP_DHCP_SERVER = 0x5002, 35 DHCP_SERVER_SVR_CMD_GET_SERVER_STATUS = 0x5003, 36 DHCP_SERVER_SVR_CMD_SET_DHCP_RANGE = 0x5004, 37 DHCP_SERVER_SVR_CMD_SET_DHCP_NAME = 0x5005, 38 DHCP_SERVER_SVR_CMD_PUT_DHCP_RANGE = 0x5006, 39 DHCP_SERVER_SVR_CMD_REMOVE_ALL_DHCP_RANGE = 0x5007, 40 DHCP_SERVER_SVR_CMD_REMOVE_DHCP_RANGE = 0x5008, 41 DHCP_SERVER_SVR_CMD_UPDATE_RENEW_TIME = 0x5009, 42 DHCP_SERVER_SVR_CMD_GET_IP_LIST = 0x500A, 43 DHCP_SERVER_SVR_CMD_GET_DHCP_CLIENT_INFO = 0x500B, 44 45 /* SEREVR CALL BACK code */ 46 DHCP_SERVER_CBK_SERVER_STATUS_CHANGE = 0x7000, 47 DHCP_SERVER_CBK_SERVER_LEASES_CHANGE = 0x7001, 48 DHCP_SERVER_CBK_SER_EXIT_CHANGE = 0x7002, 49 }; 50 } // namespace Wifi 51 } // namespace OHOS 52 #endif