diff options
| author | guozhanxin <[email protected]> | 2023-03-10 16:31:57 +0800 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2023-03-10 19:29:01 -0500 |
| commit | abfaa4bc4eea9a78189e03580ca24c84eb1b1369 (patch) | |
| tree | 8e36d1ae40e5af36363f4c11b920f5b6678329af /components | |
| parent | e29dfb75ca3b625e2203b385ba99b359089d3968 (diff) | |
[net] fix LWIP_HOOK_IP4_ROUTE_SRC define
Diffstat (limited to 'components')
| -rw-r--r-- | components/net/lwip/port/lwipopts.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/net/lwip/port/lwipopts.h b/components/net/lwip/port/lwipopts.h index 795ddd06f6..c342977538 100644 --- a/components/net/lwip/port/lwipopts.h +++ b/components/net/lwip/port/lwipopts.h @@ -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 */ |
