Add Resume() method in netstack.

Resume method resumes the endpoints after save which is required for
save/resume. This method resumes the endpoint states which were frozen during
save.

PiperOrigin-RevId: 615467468
This commit is contained in:
Nayana Bidari
2024-03-13 10:36:29 -07:00
committed by gVisor bot
parent ed9678b679
commit d5f24ea92a
11 changed files with 88 additions and 4 deletions
+5
View File
@@ -479,6 +479,11 @@ func (s *Stack) Restore() {
s.Stack.Restore()
}
// Resume implements inet.Stack.Resume.
func (s *Stack) Resume() {
s.Stack.Resume()
}
// RegisteredEndpoints implements inet.Stack.RegisteredEndpoints.
func (s *Stack) RegisteredEndpoints() []stack.TransportEndpoint {
return s.Stack.RegisteredEndpoints()