mirror of
https://github.com/soypat/lneto.git
synced 2026-08-21 15:09:05 +00:00
passive MAC learning and ARP cache revamp (#96)
* begin working on arp cache * fix little things * rework arp cache priority * fix test * keep working on ARP * push changes before thinking about ip prefix issue * add passive peer MAC setting * patch egress mac with correct ethernet CRCs * consolidate subnet learning in subnetTable type * add tests and fix subnet table bug
This commit is contained in:
@@ -140,7 +140,7 @@ func (s StackBlocking) DoResolveHardwareAddress6(addr netip.Addr, timeout time.D
|
||||
err = errDeadlineExceed // Ensure that if iterations done error is returned.
|
||||
}
|
||||
ip4 := addr.As4()
|
||||
s.async.arp.DiscardQuery(ip4[:])
|
||||
s.async.arp.CacheRemove(ip4[:])
|
||||
return hw, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user