mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Fixed ETHARP_TRUST_IP_MAC after changing struct netif.ip_addr/netmask to ip_addr_t
This commit is contained in:
parent
c71723101a
commit
e11e12f01d
@ -687,7 +687,7 @@ etharp_ip_input(struct netif *netif, struct pbuf *p)
|
|||||||
ip4_addr_copy(iphdr_src, iphdr->src);
|
ip4_addr_copy(iphdr_src, iphdr->src);
|
||||||
|
|
||||||
/* source is not on the local network? */
|
/* source is not on the local network? */
|
||||||
if (!ip4_addr_netcmp(&iphdr_src, &(netif->ip_addr), &(netif->netmask))) {
|
if (!ip4_addr_netcmp(&iphdr_src, netif_ip4_addr(netif), netif_ip4_netmask(netif))) {
|
||||||
/* do nothing */
|
/* do nothing */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user