PiperOrigin-RevId: 662980515
This commit is contained in:
Nayana Bidari
2024-08-14 10:59:40 -07:00
committed by gVisor bot
parent 55236137ca
commit f2ed1daa01
+2 -2
View File
@@ -128,7 +128,7 @@ func (r *restorer) restoreContainerInfo(l *Loader, info *containerInfo) error {
return nil
}
func createNetworStackForRestore(l *Loader) (*stack.Stack, inet.Stack) {
func createNetworkStackForRestore(l *Loader) (*stack.Stack, inet.Stack) {
// Save the current network stack to slap on top of the one that was restored.
curNetwork := l.k.RootNetworkNamespace().Stack()
if eps, ok := curNetwork.(*netstack.Stack); ok {
@@ -142,7 +142,7 @@ func (r *restorer) restore(l *Loader) error {
// Create a new root network namespace with the network stack of the
// old kernel to preserve the existing network configuration.
oldStack, oldInetStack := createNetworStackForRestore(l)
oldStack, oldInetStack := createNetworkStackForRestore(l)
// Reset the network stack in the network namespace to nil before
// replacing the kernel. This will not free the network stack when this