433 |
/* Only insert an entry if the source IP address of the |
/* Only insert an entry if the source IP address of the |
434 |
incoming IP packet comes from a host on the local network. */ |
incoming IP packet comes from a host on the local network. */ |
435 |
hdr = p->payload; |
hdr = p->payload; |
436 |
/* source is on local network? */ |
/* source is not on the local network? */ |
437 |
if (!ip_addr_netcmp(&(hdr->ip.src), &(netif->ip_addr), &(netif->netmask))) { |
if (!ip_addr_netcmp(&(hdr->ip.src), &(netif->ip_addr), &(netif->netmask))) { |
438 |
/* do nothing */ |
/* do nothing */ |
439 |
return; |
return; |