mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-17 17:10:03 +00:00
Disable ETHARP_TRUST_IP_MAC by default since it slows down packet reception and is not really necessary
This commit is contained in:
parent
4c9fe60693
commit
e983865ad5
@ -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
|
||||
|
@ -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
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user