diff options
author | Grant Limberg <glimberg@gmail.com> | 2015-11-21 19:14:06 -0800 |
---|---|---|
committer | Grant Limberg <glimberg@gmail.com> | 2015-11-21 19:14:06 -0800 |
commit | ac09c3569a63d5cc9c5cc2c0b0cbd8cd7e68df20 (patch) | |
tree | 27dcbe3fc96880b615c89a598c097e870f4da21c /osdep/Arp.cpp | |
parent | ce5b7f0305c40b649699110b0b5d16b23238acfa (diff) | |
download | infinitytier-ac09c3569a63d5cc9c5cc2c0b0cbd8cd7e68df20.tar.gz infinitytier-ac09c3569a63d5cc9c5cc2c0b0cbd8cd7e68df20.zip |
ARP packet lengths are 28 bytes. This condition required the packet to be 29 or more bytes.
Diffstat (limited to 'osdep/Arp.cpp')
-rw-r--r-- | osdep/Arp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/Arp.cpp b/osdep/Arp.cpp index f71dfb54..2ca00f0d 100644 --- a/osdep/Arp.cpp +++ b/osdep/Arp.cpp @@ -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]); |