summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/stack/neighbor_entry.go
diff options
context:
space:
mode:
authorSam Balana <sbalana@google.com>2020-10-23 12:31:11 -0700
committergVisor bot <gvisor-bot@google.com>2020-10-23 12:33:12 -0700
commit8db147b55423d7dbe5f9af4e6154eab2d19025e1 (patch)
tree98b863dd4ed093a7e7bbbd2815f14757839a5c67 /pkg/tcpip/stack/neighbor_entry.go
parent39e214090be6717c01e8a65ee50e194a1a50b462 (diff)
Wait before transitioning NUD entries from Probe to Failed
Wait an additional RetransmitTimer duration after the last probe before transitioning to Failed. The previous implementation transitions immediately to Failed after sending the last probe, which is erroneous behavior. PiperOrigin-RevId: 338723794
Diffstat (limited to 'pkg/tcpip/stack/neighbor_entry.go')
-rw-r--r--pkg/tcpip/stack/neighbor_entry.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/pkg/tcpip/stack/neighbor_entry.go b/pkg/tcpip/stack/neighbor_entry.go
index 0f16feaa5..1f0365460 100644
--- a/pkg/tcpip/stack/neighbor_entry.go
+++ b/pkg/tcpip/stack/neighbor_entry.go
@@ -238,12 +238,6 @@ func (e *neighborEntry) setStateLocked(next NeighborState) {
}
retryCounter++
- if retryCounter == config.MaxUnicastProbes {
- e.dispatchRemoveEventLocked()
- e.setStateLocked(Failed)
- return
- }
-
e.job = e.nic.stack.newJob(&e.mu, sendUnicastProbe)
e.job.Schedule(config.RetransmitTimer)
}