Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pkg/tcpip/network/ipv6/ipv6.go
Original file line number Diff line number Diff line change
Expand Up @@ -671,8 +671,12 @@ func (e *endpoint) Disable() {
e.disableLocked()
}

// disableLocked tears down protocol state for this endpoint. The early-return
// uses e.isEnabled() rather than e.Enabled() so the disable path stays
// idempotent when the NIC has been independently disabled, matching the IPv4
// sibling at pkg/tcpip/network/ipv4/ipv4.go:363.
func (e *endpoint) disableLocked() {
if !e.Enabled() {
if !e.isEnabled() {
return
}

Expand Down