summaryrefslogtreecommitdiff
path: root/osdep/Arp.cpp
diff options
context:
space:
mode:
authorGrant Limberg <glimberg@gmail.com>2015-11-21 19:14:06 -0800
committerGrant Limberg <glimberg@gmail.com>2015-11-21 19:14:06 -0800
commitac09c3569a63d5cc9c5cc2c0b0cbd8cd7e68df20 (patch)
tree27dcbe3fc96880b615c89a598c097e870f4da21c /osdep/Arp.cpp
parentce5b7f0305c40b649699110b0b5d16b23238acfa (diff)
downloadinfinitytier-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.cpp2
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]);