mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
tcpip: destroy both ends of one veth pair together
PiperOrigin-RevId: 645562424
This commit is contained in:
@@ -262,7 +262,7 @@ func (s *Stack) newVeth(ctx context.Context, linkAttrs map[uint16]nlmsg.BytesVie
|
||||
peerEP.Close()
|
||||
return syserr.TranslateNetstackError(err)
|
||||
}
|
||||
peerEP.SetStack(peerStack.Stack, id)
|
||||
peerEP.SetStack(peerStack.Stack, peerID)
|
||||
if peerLinkAttrs != nil {
|
||||
if err := s.setLink(peerID, peerLinkAttrs); err != nil {
|
||||
peerStack.Stack.RemoveNIC(peerID)
|
||||
|
||||
Reference in New Issue
Block a user