summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/socket/netstack
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-03-23 19:03:20 +0000
committergVisor bot <gvisor-bot@google.com>2021-03-23 19:03:20 +0000
commite48ad2ada0357cb8ee9185074aaff7ab44d84631 (patch)
treef8848b871cd5e3a0d07853083e024a231438085c /pkg/sentry/socket/netstack
parent0fea1c57d9bc63416cc366720b2f53139468352f (diff)
parentacb4c62885629d6d3ee977b93c27282abed0b33f (diff)
Merge release-20210315.0-15-gacb4c6288 (automated)
Diffstat (limited to 'pkg/sentry/socket/netstack')
-rw-r--r--pkg/sentry/socket/netstack/netstack_state_autogen.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/sentry/socket/netstack/netstack_state_autogen.go b/pkg/sentry/socket/netstack/netstack_state_autogen.go
index ec15d5643..335437f04 100644
--- a/pkg/sentry/socket/netstack/netstack_state_autogen.go
+++ b/pkg/sentry/socket/netstack/netstack_state_autogen.go
@@ -18,6 +18,7 @@ func (s *SocketOperations) StateFields() []string {
func (s *SocketOperations) beforeSave() {}
+// +checklocksignore
func (s *SocketOperations) StateSave(stateSinkObject state.Sink) {
s.beforeSave()
stateSinkObject.Save(0, &s.socketOpsCommon)
@@ -25,6 +26,7 @@ func (s *SocketOperations) StateSave(stateSinkObject state.Sink) {
func (s *SocketOperations) afterLoad() {}
+// +checklocksignore
func (s *SocketOperations) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &s.socketOpsCommon)
}
@@ -50,6 +52,7 @@ func (s *socketOpsCommon) StateFields() []string {
func (s *socketOpsCommon) beforeSave() {}
+// +checklocksignore
func (s *socketOpsCommon) StateSave(stateSinkObject state.Sink) {
s.beforeSave()
stateSinkObject.Save(0, &s.SendReceiveTimeout)
@@ -66,6 +69,7 @@ func (s *socketOpsCommon) StateSave(stateSinkObject state.Sink) {
func (s *socketOpsCommon) afterLoad() {}
+// +checklocksignore
func (s *socketOpsCommon) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &s.SendReceiveTimeout)
stateSourceObject.Load(1, &s.Queue)
@@ -95,6 +99,7 @@ func (s *SocketVFS2) StateFields() []string {
func (s *SocketVFS2) beforeSave() {}
+// +checklocksignore
func (s *SocketVFS2) StateSave(stateSinkObject state.Sink) {
s.beforeSave()
stateSinkObject.Save(0, &s.vfsfd)
@@ -106,6 +111,7 @@ func (s *SocketVFS2) StateSave(stateSinkObject state.Sink) {
func (s *SocketVFS2) afterLoad() {}
+// +checklocksignore
func (s *SocketVFS2) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &s.vfsfd)
stateSourceObject.Load(1, &s.FileDescriptionDefaultImpl)
@@ -124,10 +130,12 @@ func (s *Stack) StateFields() []string {
func (s *Stack) beforeSave() {}
+// +checklocksignore
func (s *Stack) StateSave(stateSinkObject state.Sink) {
s.beforeSave()
}
+// +checklocksignore
func (s *Stack) StateLoad(stateSourceObject state.Source) {
stateSourceObject.AfterLoad(s.afterLoad)
}