summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/socket/socket_state_autogen.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-10-07 21:09:10 +0000
committergVisor bot <gvisor-bot@google.com>2021-10-07 21:09:10 +0000
commite73679d58c108590c22a2ec269cd2d7e9aff50dd (patch)
tree1da5000a87e4a31ce17fd9f1af2a196df1fced12 /pkg/sentry/socket/socket_state_autogen.go
parentd3d3a0f6cd35fd3f7175667d4babc3a81cb27177 (diff)
parenta7045f051f7bcdca079cdb0636f728a18b609121 (diff)
Merge release-20210927.0-44-ga7045f051 (automated)
Diffstat (limited to 'pkg/sentry/socket/socket_state_autogen.go')
-rw-r--r--pkg/sentry/socket/socket_state_autogen.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/sentry/socket/socket_state_autogen.go b/pkg/sentry/socket/socket_state_autogen.go
index 9b391d8ca..4e33d7a20 100644
--- a/pkg/sentry/socket/socket_state_autogen.go
+++ b/pkg/sentry/socket/socket_state_autogen.go
@@ -34,8 +34,10 @@ func (i *IPControlMessages) beforeSave() {}
// +checklocksignore
func (i *IPControlMessages) StateSave(stateSinkObject state.Sink) {
i.beforeSave()
+ var TimestampValue int64
+ TimestampValue = i.saveTimestamp()
+ stateSinkObject.SaveValue(1, TimestampValue)
stateSinkObject.Save(0, &i.HasTimestamp)
- stateSinkObject.Save(1, &i.Timestamp)
stateSinkObject.Save(2, &i.HasInq)
stateSinkObject.Save(3, &i.Inq)
stateSinkObject.Save(4, &i.HasTOS)
@@ -55,7 +57,6 @@ func (i *IPControlMessages) afterLoad() {}
// +checklocksignore
func (i *IPControlMessages) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &i.HasTimestamp)
- stateSourceObject.Load(1, &i.Timestamp)
stateSourceObject.Load(2, &i.HasInq)
stateSourceObject.Load(3, &i.Inq)
stateSourceObject.Load(4, &i.HasTOS)
@@ -68,6 +69,7 @@ func (i *IPControlMessages) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(11, &i.IPv6PacketInfo)
stateSourceObject.Load(12, &i.OriginalDstAddress)
stateSourceObject.Load(13, &i.SockErr)
+ stateSourceObject.LoadValue(1, new(int64), func(y interface{}) { i.loadTimestamp(y.(int64)) })
}
func (to *SendReceiveTimeout) StateTypeName() string {