summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/stack
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-07-30 22:45:47 +0000
committergVisor bot <gvisor-bot@google.com>2021-07-30 22:45:47 +0000
commit6bc4bc23223c71a4dcbd70db97d841c49f1734e8 (patch)
treed551c3d819a3d6fcd699bdf70fd274285466d42d /pkg/tcpip/stack
parent9134057f108e516547f7b22cdadc340d813f2228 (diff)
parent979d6e7d77b17e94defc29515180cc75d3560383 (diff)
Merge release-20210726.0-17-g979d6e7d7 (automated)
Diffstat (limited to 'pkg/tcpip/stack')
-rw-r--r--pkg/tcpip/stack/stack.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/tcpip/stack/stack.go b/pkg/tcpip/stack/stack.go
index 81fabe29a..c73890c4c 100644
--- a/pkg/tcpip/stack/stack.go
+++ b/pkg/tcpip/stack/stack.go
@@ -780,6 +780,9 @@ func (s *Stack) removeNICLocked(id tcpip.NICID) tcpip.Error {
if !ok {
return &tcpip.ErrUnknownNICID{}
}
+ if nic.IsLoopback() {
+ return &tcpip.ErrNotSupported{}
+ }
delete(s.nics, id)
// Remove routes in-place. n tracks the number of routes written.