mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 03:56:54 +02:00
ARP packet lengths are 28 bytes. This condition required the packet to be 29 or more bytes.
This commit is contained in:
parent
ce5b7f0305
commit
ac09c3569a
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ uint32_t Arp::processIncomingArp(const void *arp,unsigned int len,void *response
|
|||
responseLen = 0;
|
||||
responseDest.zero();
|
||||
|
||||
if (len > 28) {
|
||||
if (len >= 28) {
|
||||
if (!memcmp(arp,ARP_REQUEST_HEADER,8)) {
|
||||
// Respond to ARP requests for locally-known IPs
|
||||
_ArpEntry *targetEntry = _cache.get(reinterpret_cast<const uint32_t *>(arp)[6]);
|
||||
|
|
Loading…
Add table
Reference in a new issue