mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-21 13:54:15 -07:00
netif code hooked up
This commit is contained in:
parent
8189b2ba91
commit
8ea83c9548
6 changed files with 192 additions and 41 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
Add a link
Reference in a new issue