• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_DEAL_DHCP_CACHE = 0x4003,
25     DHCP_CLIENT_SVR_CMD_STOP_SA = 0x4004,
26 
27     /* CLIENT CALL BACK code */
28     DHCP_CLIENT_CBK_CMD_IP_SUCCESS_CHANGE = 0x6000,
29     DHCP_CLIENT_CBK_CMD_IP_FAIL_CHANGE = 0x6001,
30     DHCP_CLIENT_CBK_CMD_DHCP_OFFER = 0x6002,
31 };
32 
33 enum class  DhcpServerInterfaceCode {
34     DHCP_SERVER_SVR_CMD_REG_CALL_BACK = 0x5000,
35     DHCP_SERVER_SVR_CMD_START_DHCP_SERVER = 0x5001,
36     DHCP_SERVER_SVR_CMD_STOP_DHCP_SERVER = 0x5002,
37     DHCP_SERVER_SVR_CMD_GET_SERVER_STATUS = 0x5003,
38     DHCP_SERVER_SVR_CMD_SET_DHCP_RANGE = 0x5004,
39     DHCP_SERVER_SVR_CMD_SET_DHCP_NAME = 0x5005,
40     DHCP_SERVER_SVR_CMD_PUT_DHCP_RANGE = 0x5006,
41     DHCP_SERVER_SVR_CMD_REMOVE_ALL_DHCP_RANGE = 0x5007,
42     DHCP_SERVER_SVR_CMD_REMOVE_DHCP_RANGE = 0x5008,
43     DHCP_SERVER_SVR_CMD_UPDATE_RENEW_TIME = 0x5009,
44     DHCP_SERVER_SVR_CMD_GET_IP_LIST = 0x500A,
45     DHCP_SERVER_SVR_CMD_GET_DHCP_CLIENT_INFO = 0x500B,
46     DHCP_SERVER_SVR_CMD_STOP_SA = 0x500C,
47 
48     /* SEREVR CALL BACK code */
49     DHCP_SERVER_CBK_SERVER_STATUS_CHANGE = 0x7000,
50     DHCP_SERVER_CBK_SERVER_LEASES_CHANGE = 0x7001,
51     DHCP_SERVER_CBK_SER_EXIT_CHANGE = 0x7002,
52     DHCP_SERVER_CBK_SERVER_SUCCESS = 0x7003,
53 };
54 }  // namespace DHCP
55 }  // namespace OHOS
56 #endif