1
0
mirror of https://gitee.com/openLuat/LuatOS synced 2025-08-17 22:18:03 +08:00

fix: netdrv,缺了luat_netdrv_etharp_cleanup_netif函数声明

This commit is contained in:
Wendal Chen 2025-08-17 10:52:31 +08:00
parent 061ffa9726
commit dabdb3e7d1

View File

@ -262,6 +262,8 @@ void luat_netdrv_debug_set(int id, int enable) {
#include "netif/ethernet.h"
// #include "luat_netdrv_etharp.h"
extern err_t luat_netdrv_ethernet_input(struct pbuf *p, struct netif *netif);
extern void luat_netdrv_etharp_cleanup_netif(struct netif *netif);
err_t luat_netdrv_netif_input_main(struct pbuf *p, struct netif *inp)
{
// LWIP_ASSERT_CORE_LOCKED();
@ -307,7 +309,6 @@ void luat_netdrv_netif_set_link_down(struct netif* netif) {
#if LWIP_IPV4 && LWIP_ARP
#ifdef LUAT_USE_NETDRV_LWIP_ARP
if (netif->flags & NETIF_FLAG_ETHARP) {
extern void luat_netdrv_etharp_cleanup_netif(struct netif *netif);
luat_netdrv_etharp_cleanup_netif(netif);
}
#endif