4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-30 04:10:26 +08:00

Merge pull request #5335 from xiangxistu/master

[fix] the problem of implicit declaration for "lwip_ip4_route_src".
This commit is contained in:
Bernard Xiong 2021-12-06 14:32:33 +08:00 committed by GitHub
commit 1135619e1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -779,6 +779,7 @@ void ppp_trace(int level, const char *format, ...)
}
#endif
#ifdef LWIP_HOOK_IP4_ROUTE_SRC
struct netif *lwip_ip4_route_src(const ip4_addr_t *dest, const ip4_addr_t *src)
{
struct netif *netif;
@ -802,6 +803,7 @@ struct netif *lwip_ip4_route_src(const ip4_addr_t *dest, const ip4_addr_t *src)
netif = netif_default;
return netif;
}
#endif /* LWIP_HOOK_IP4_ROUTE_SRC */
/*
* export bsd socket symbol for RT-Thread Application Module

View File

@ -645,4 +645,7 @@
#define LWIP_HOOK_IP4_ROUTE_SRC(dest, src) lwip_ip4_route_src(dest, src)
#include "lwip/ip_addr.h"
struct netif *lwip_ip4_route_src(const ip4_addr_t *dest, const ip4_addr_t *src);
#endif /* __LWIPOPTS_H__ */