[net] fix LWIP_HOOK_IP4_ROUTE_SRC define

This commit is contained in:
guozhanxin 2023-03-10 16:31:57 +08:00 committed by Man, Jianting (Meco)
parent e29dfb75ca
commit abfaa4bc4e
1 changed files with 4 additions and 0 deletions

View File

@ -637,7 +637,11 @@
#endif
#if RT_USING_LWIP_VER_NUM >= 0x20000 /* >= v2.0.0 */
#if RT_USING_LWIP_VER_NUM < 0x20102 /* >= v2.0.0 && < v2.1.2 */
#define LWIP_HOOK_IP4_ROUTE_SRC(dest, src) lwip_ip4_route_src(dest, src)
#else /* >= v2.1.2 */
#define LWIP_HOOK_IP4_ROUTE_SRC(src, dest) lwip_ip4_route_src(dest, src)
#endif
#include "lwip/ip_addr.h"
struct netif *lwip_ip4_route_src(const ip4_addr_t *dest, const ip4_addr_t *src);
#endif /* RT_USING_LWIP_VER_NUM >= 0x20000 */