diff options
author | Ghanan Gowripalan <ghanan@google.com> | 2019-09-12 13:50:58 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-09-12 13:52:25 -0700 |
commit | 857940d30d3a8dbb099bad43954fe8062b70461d (patch) | |
tree | 066166b53bfb44e954b57f504a51dc10db2b77da /pkg/tcpip/stack/stack.go | |
parent | 574eda88808138b2dd72ebe6bbca80a09a13c7fb (diff) |
Automated rollback of changelist 268047073
PiperOrigin-RevId: 268757842
Diffstat (limited to 'pkg/tcpip/stack/stack.go')
-rw-r--r-- | pkg/tcpip/stack/stack.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/tcpip/stack/stack.go b/pkg/tcpip/stack/stack.go index 1fe21b68e..a961e8ebe 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 { - return n.enable() + n.attachLinkEndpoint() } return nil @@ -680,7 +680,9 @@ func (s *Stack) EnableNIC(id tcpip.NICID) *tcpip.Error { return tcpip.ErrUnknownNICID } - return nic.enable() + nic.attachLinkEndpoint() + + return nil } // CheckNIC checks if a NIC is usable. |