diff options
author | Ghanan Gowripalan <ghanan@google.com> | 2021-01-31 12:25:21 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-01-31 12:27:21 -0800 |
commit | b4f8a925283eaca32820e7977706768343bf04b8 (patch) | |
tree | a8280519f89737911f4185fff45dddc19402ce2c /pkg/tcpip/stack/stack.go | |
parent | 4ee8cf8734d24c7ba78700c21dff561207d4ed1a (diff) |
Remove NICs before closing their link endpoints
...in IPv6 ICMP tests.
A channel link endpoint's channel is closed when the link endpoint is
closed.
When the stack tries to send packets through a NIC with a closed channel
endpoint, a panic will occur when attempting to write to a closed
channel (https://golang.org/ref/spec#Close). To make sure the stack does
not try to send packets through a NIC, we remove it.
PiperOrigin-RevId: 354822085
Diffstat (limited to 'pkg/tcpip/stack/stack.go')
0 files changed, 0 insertions, 0 deletions