2022-01-04 06:06:38 -05:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
2020-10-22 13:41:15 -04:00
|
|
|
|
|
|
|
#include "lwip_default_hooks.h"
|
|
|
|
|
|
|
|
#define __weak __attribute__((weak))
|
|
|
|
|
|
|
|
#ifdef CONFIG_LWIP_HOOK_IP6_ROUTE_DEFAULT
|
|
|
|
struct netif *__weak
|
|
|
|
lwip_hook_ip6_route(const ip6_addr_t *src, const ip6_addr_t *dest)
|
|
|
|
{
|
|
|
|
LWIP_UNUSED_ARG(src);
|
|
|
|
LWIP_UNUSED_ARG(dest);
|
|
|
|
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_LWIP_HOOK_NETCONN_EXT_RESOLVE_DEFAULT
|
|
|
|
int __weak lwip_hook_netconn_external_resolve(const char *name, ip_addr_t *addr, u8_t addrtype, err_t *err)
|
|
|
|
{
|
|
|
|
LWIP_UNUSED_ARG(name);
|
|
|
|
LWIP_UNUSED_ARG(addr);
|
|
|
|
LWIP_UNUSED_ARG(addrtype);
|
|
|
|
LWIP_UNUSED_ARG(err);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
2021-04-08 05:58:50 -04:00
|
|
|
|
|
|
|
#ifdef CONFIG_LWIP_HOOK_ND6_GET_GW_DEFAULT
|
2021-06-17 03:44:19 -04:00
|
|
|
const ip6_addr_t *__weak lwip_hook_nd6_get_gw(struct netif *netif, const ip6_addr_t *dest)
|
2021-04-08 05:58:50 -04:00
|
|
|
{
|
|
|
|
LWIP_UNUSED_ARG(netif);
|
|
|
|
LWIP_UNUSED_ARG(dest);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|
2022-01-04 06:06:38 -05:00
|
|
|
|
|
|
|
#ifdef CONFIG_LWIP_HOOK_IP6_INPUT_DEFAULT
|
|
|
|
int __weak lwip_hook_ip6_input(struct pbuf *p, struct netif *inp)
|
|
|
|
{
|
|
|
|
LWIP_UNUSED_ARG(p);
|
|
|
|
LWIP_UNUSED_ARG(inp);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#endif
|