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 DHCP { 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_SET_CONFIG = 0x4004, 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 DHCP_CLIENT_CBK_CMD_DHCP_OFFER = 0x6002, 30 }; 31 32 enum class DhcpServerInterfaceCode { 33 DHCP_SERVER_SVR_CMD_REG_CALL_BACK = 0x5000, 34 DHCP_SERVER_SVR_CMD_START_DHCP_SERVER = 0x5001, 35 DHCP_SERVER_SVR_CMD_STOP_DHCP_SERVER = 0x5002, 36 DHCP_SERVER_SVR_CMD_GET_SERVER_STATUS = 0x5003, 37 DHCP_SERVER_SVR_CMD_SET_DHCP_RANGE = 0x5004, 38 DHCP_SERVER_SVR_CMD_SET_DHCP_NAME = 0x5005, 39 DHCP_SERVER_SVR_CMD_PUT_DHCP_RANGE = 0x5006, 40 DHCP_SERVER_SVR_CMD_REMOVE_ALL_DHCP_RANGE = 0x5007, 41 DHCP_SERVER_SVR_CMD_REMOVE_DHCP_RANGE = 0x5008, 42 DHCP_SERVER_SVR_CMD_UPDATE_RENEW_TIME = 0x5009, 43 DHCP_SERVER_SVR_CMD_GET_IP_LIST = 0x500A, 44 DHCP_SERVER_SVR_CMD_GET_DHCP_CLIENT_INFO = 0x500B, 45 46 /* SEREVR CALL BACK code */ 47 DHCP_SERVER_CBK_SERVER_STATUS_CHANGE = 0x7000, 48 DHCP_SERVER_CBK_SERVER_LEASES_CHANGE = 0x7001, 49 DHCP_SERVER_CBK_SER_EXIT_CHANGE = 0x7002, 50 DHCP_SERVER_CBK_SERVER_SUCCESS = 0x7003, 51 }; 52 } // namespace DHCP 53 } // namespace OHOS 54 #endif