[net] fix LWIP_HOOK_IP4_ROUTE_SRC define
This commit is contained in:
parent
e29dfb75ca
commit
abfaa4bc4e
|
@ -637,7 +637,11 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if RT_USING_LWIP_VER_NUM >= 0x20000 /* >= v2.0.0 */
|
#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)
|
#define LWIP_HOOK_IP4_ROUTE_SRC(src, dest) lwip_ip4_route_src(dest, src)
|
||||||
|
#endif
|
||||||
#include "lwip/ip_addr.h"
|
#include "lwip/ip_addr.h"
|
||||||
struct netif *lwip_ip4_route_src(const ip4_addr_t *dest, const ip4_addr_t *src);
|
struct netif *lwip_ip4_route_src(const ip4_addr_t *dest, const ip4_addr_t *src);
|
||||||
#endif /* RT_USING_LWIP_VER_NUM >= 0x20000 */
|
#endif /* RT_USING_LWIP_VER_NUM >= 0x20000 */
|
||||||
|
|
Loading…
Reference in New Issue