mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-12 01:14:41 +08:00
icmp_send_response: fix parameter order for LWIP_HOOK_IP4_ROUTE_SRC
This commit is contained in:
parent
66838a70f3
commit
6229f9ef71
@ -382,7 +382,7 @@ icmp_send_response(struct pbuf *p, u8_t type, u8_t code)
|
|||||||
{
|
{
|
||||||
ip4_addr_t iphdr_dst;
|
ip4_addr_t iphdr_dst;
|
||||||
ip4_addr_copy(iphdr_dst, iphdr->dest);
|
ip4_addr_copy(iphdr_dst, iphdr->dest);
|
||||||
netif = ip4_route_src(&iphdr_src, &iphdr_dst);
|
netif = ip4_route_src(&iphdr_dst, &iphdr_src);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
netif = ip4_route(&iphdr_src);
|
netif = ip4_route(&iphdr_src);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user