Disable ETHARP_TRUST_IP_MAC by default since it slows down packet reception and is not really necessary

This commit is contained in:
goldsimon 2010-02-14 18:10:34 +00:00
parent 4c9fe60693
commit e983865ad5
2 changed files with 7 additions and 1 deletions

View File

@ -131,6 +131,10 @@ HISTORY
++ Bugfixes:
2010-02-14: Simon Goldschmidt
* opt.h: Disable ETHARP_TRUST_IP_MAC by default since it slows down packet
reception and is not really necessary
2010-02-14: Simon Goldschmidt
* etharp.c/.h: Fixed ARP input processing: only add a new entry if a
request was directed as us (RFC 826, Packet Reception), otherwise

View File

@ -411,9 +411,11 @@
* correct addresses, or as a limited approach to attempt to handle
* spoofing. If disabled, lwIP will need to make a new ARP request if
* the peer is not already in the ARP table, adding a little latency.
* The peer *is* in the ARP table if it requested our address before.
* Also notice that this slows down input processing of every IP packet!
*/
#ifndef ETHARP_TRUST_IP_MAC
#define ETHARP_TRUST_IP_MAC 1
#define ETHARP_TRUST_IP_MAC 0
#endif
/**