1 /* 2 * Copyright (c) 2022-2022 Huawei Technologies Co., Ltd. All rights reserved. 3 * 4 * UniProton is licensed under Mulan PSL v2. 5 * You can use this software according to the terms and conditions of the Mulan PSL v2. 6 * You may obtain a copy of Mulan PSL v2 at: 7 * http://license.coscl.org.cn/MulanPSL2 8 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, 9 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, 10 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. 11 * See the Mulan PSL v2 for more details. 12 * Create: 2022-09-21 13 * Description: 网络 14 */ 15 16 #ifndef LWIP_PORTING_NETIFAPI_H 17 #define LWIP_PORTING_NETIFAPI_H 18 19 #include_next <lwip/netifapi.h> 20 21 err_t netifapi_dhcps_start(struct netif *netif, char *start_ip, u16_t ip_num); 22 err_t netifapi_dhcps_stop(struct netif *netif); 23 24 #define netifapi_dhcp_cleanup(n) netifapi_netif_common(n, dhcp_cleanup, NULL) 25 #define netifapi_OsDhcpIsBound(n) netifapi_netif_common(n, NULL, OsDhcpIsBound) 26 27 void netifapi_netif_rmv_ip6_address(struct netif *netif, ip_addr_t *ipaddr); 28 struct netif *OsNetifapiNetifFindByName(const char *name); 29 30 #endif /* LWIP_PORTING_NETIFAPI_H */ 31