Fixed ETHARP_TRUST_IP_MAC after changing struct netif.ip_addr/netmask to ip_addr_t

This commit is contained in:
goldsimon 2015-09-24 14:46:29 +02:00
parent c71723101a
commit e11e12f01d

View File

@ -687,7 +687,7 @@ etharp_ip_input(struct netif *netif, struct pbuf *p)
ip4_addr_copy(iphdr_src, iphdr->src);
/* 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 */
return;
}