Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions components/net/lwip-2.1.2/src/arch/sys_arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down
3 changes: 3 additions & 0 deletions components/net/lwip-2.1.2/src/lwipopts.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__ */