icmp_send_response: fix parameter order for LWIP_HOOK_IP4_ROUTE_SRC

This commit is contained in:
Simon Goldschmidt 2018-09-17 21:28:50 +02:00
parent 66838a70f3
commit 6229f9ef71

View File

@ -382,7 +382,7 @@ icmp_send_response(struct pbuf *p, u8_t type, u8_t code)
{
ip4_addr_t iphdr_dst;
ip4_addr_copy(iphdr_dst, iphdr->dest);
netif = ip4_route_src(&iphdr_src, &iphdr_dst);
netif = ip4_route_src(&iphdr_dst, &iphdr_src);
}
#else
netif = ip4_route(&iphdr_src);