diff options
Diffstat (limited to 'pkg/tcpip/tcpip_state_autogen.go')
-rw-r--r-- | pkg/tcpip/tcpip_state_autogen.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/tcpip/tcpip_state_autogen.go b/pkg/tcpip/tcpip_state_autogen.go index f887ff2fb..42a79e63d 100644 --- a/pkg/tcpip/tcpip_state_autogen.go +++ b/pkg/tcpip/tcpip_state_autogen.go @@ -1152,8 +1152,10 @@ func (c *ControlMessages) beforeSave() {} // +checklocksignore func (c *ControlMessages) StateSave(stateSinkObject state.Sink) { c.beforeSave() + var TimestampValue int64 + TimestampValue = c.saveTimestamp() + stateSinkObject.SaveValue(1, TimestampValue) stateSinkObject.Save(0, &c.HasTimestamp) - stateSinkObject.Save(1, &c.Timestamp) stateSinkObject.Save(2, &c.HasInq) stateSinkObject.Save(3, &c.Inq) stateSinkObject.Save(4, &c.HasTOS) @@ -1174,7 +1176,6 @@ func (c *ControlMessages) afterLoad() {} // +checklocksignore func (c *ControlMessages) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &c.HasTimestamp) - stateSourceObject.Load(1, &c.Timestamp) stateSourceObject.Load(2, &c.HasInq) stateSourceObject.Load(3, &c.Inq) stateSourceObject.Load(4, &c.HasTOS) @@ -1188,6 +1189,7 @@ func (c *ControlMessages) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(12, &c.HasOriginalDstAddress) stateSourceObject.Load(13, &c.OriginalDstAddress) stateSourceObject.Load(14, &c.SockErr) + stateSourceObject.LoadValue(1, new(int64), func(y interface{}) { c.loadTimestamp(y.(int64)) }) } func (l *LinkPacketInfo) StateTypeName() string { |