1 // Copyright 2020 Espressif Systems (Shanghai) PTE LTD
2 //
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 #include "lwip_default_hooks.h"
16
17 #define __weak __attribute__((weak))
18
19 #ifdef CONFIG_LWIP_HOOK_IP6_ROUTE_DEFAULT
20 struct netif *__weak
lwip_hook_ip6_route(const ip6_addr_t * src,const ip6_addr_t * dest)21 lwip_hook_ip6_route(const ip6_addr_t *src, const ip6_addr_t *dest)
22 {
23 LWIP_UNUSED_ARG(src);
24 LWIP_UNUSED_ARG(dest);
25
26 return NULL;
27 }
28 #endif
29
30 #ifdef CONFIG_LWIP_HOOK_NETCONN_EXT_RESOLVE_DEFAULT
lwip_hook_netconn_external_resolve(const char * name,ip_addr_t * addr,u8_t addrtype,err_t * err)31 int __weak lwip_hook_netconn_external_resolve(const char *name, ip_addr_t *addr, u8_t addrtype, err_t *err)
32 {
33 LWIP_UNUSED_ARG(name);
34 LWIP_UNUSED_ARG(addr);
35 LWIP_UNUSED_ARG(addrtype);
36 LWIP_UNUSED_ARG(err);
37
38 return 0;
39 }
40 #endif
41