mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Disabled ARP table update on ingress IP packets.
This commit is contained in:
parent
9a23e9839b
commit
9ca9649c1b
@ -239,8 +239,12 @@ ethernetif_input(struct netif *netif)
|
|||||||
switch (htons(ethhdr->type)) {
|
switch (htons(ethhdr->type)) {
|
||||||
/* IP packet? */
|
/* IP packet? */
|
||||||
case ETHTYPE_IP:
|
case ETHTYPE_IP:
|
||||||
|
#if 0
|
||||||
|
/* CSi disabled ARP table update on ingress IP packets.
|
||||||
|
This seems to work but needs thorough testing. */
|
||||||
/* update ARP table */
|
/* update ARP table */
|
||||||
etharp_ip_input(netif, p);
|
etharp_ip_input(netif, p);
|
||||||
|
#endif
|
||||||
/* skip Ethernet header */
|
/* skip Ethernet header */
|
||||||
pbuf_header(p, -sizeof(struct eth_hdr));
|
pbuf_header(p, -sizeof(struct eth_hdr));
|
||||||
/* pass to network layer */
|
/* pass to network layer */
|
||||||
|
Loading…
Reference in New Issue
Block a user