diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-09-09 20:31:27 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-09-09 20:31:27 +0000 |
commit | 474d9ad22ee8bab2982eb9c89c421235b687c513 (patch) | |
tree | 840a697941fdc84af8f63ab39ebaf820ffdc7df7 /pkg/tcpip/stack/stack.go | |
parent | 23a1fde981f1c390df5e6536566149f89a3b37fd (diff) | |
parent | 6af9a9850aff75e15c6f9ab577af5b818531d6ee (diff) |
Merge 6af9a985 (automated)
Diffstat (limited to 'pkg/tcpip/stack/stack.go')
-rw-r--r-- | pkg/tcpip/stack/stack.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pkg/tcpip/stack/stack.go b/pkg/tcpip/stack/stack.go index a961e8ebe..1fe21b68e 100644 --- a/pkg/tcpip/stack/stack.go +++ b/pkg/tcpip/stack/stack.go @@ -633,7 +633,7 @@ func (s *Stack) createNIC(id tcpip.NICID, name string, ep LinkEndpoint, enabled, s.nics[id] = n if enabled { - n.attachLinkEndpoint() + return n.enable() } return nil @@ -680,9 +680,7 @@ func (s *Stack) EnableNIC(id tcpip.NICID) *tcpip.Error { return tcpip.ErrUnknownNICID } - nic.attachLinkEndpoint() - - return nil + return nic.enable() } // CheckNIC checks if a NIC is usable. |