summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/tcpip_state_autogen.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-05-03 23:49:56 +0000
committergVisor bot <gvisor-bot@google.com>2021-05-03 23:49:56 +0000
commit96a3d887c6be51769e5a5d50877bd0c020ccc0e8 (patch)
tree0397983aee6c2b21c4675827fea1b53e79bcd467 /pkg/tcpip/tcpip_state_autogen.go
parentffd373a53752a76dd11d0dfa85b62490ed0fd3b2 (diff)
parent279f9fcee763a52d210f8269bc4c871b7eee112f (diff)
Merge release-20210419.0-56-g279f9fcee (automated)
Diffstat (limited to 'pkg/tcpip/tcpip_state_autogen.go')
-rw-r--r--pkg/tcpip/tcpip_state_autogen.go25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkg/tcpip/tcpip_state_autogen.go b/pkg/tcpip/tcpip_state_autogen.go
index 20bb9bbee..812a300ca 100644
--- a/pkg/tcpip/tcpip_state_autogen.go
+++ b/pkg/tcpip/tcpip_state_autogen.go
@@ -1040,6 +1040,30 @@ func (s *SockError) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(6, &s.NetProto)
}
+func (s *stdClock) StateTypeName() string {
+ return "pkg/tcpip.stdClock"
+}
+
+func (s *stdClock) StateFields() []string {
+ return []string{
+ "maxMonotonic",
+ }
+}
+
+func (s *stdClock) beforeSave() {}
+
+// +checklocksignore
+func (s *stdClock) StateSave(stateSinkObject state.Sink) {
+ s.beforeSave()
+ stateSinkObject.Save(0, &s.maxMonotonic)
+}
+
+// +checklocksignore
+func (s *stdClock) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &s.maxMonotonic)
+ stateSourceObject.AfterLoad(s.afterLoad)
+}
+
func (f *FullAddress) StateTypeName() string {
return "pkg/tcpip.FullAddress"
}
@@ -1264,6 +1288,7 @@ func init() {
state.Register((*SocketOptions)(nil))
state.Register((*LocalSockError)(nil))
state.Register((*SockError)(nil))
+ state.Register((*stdClock)(nil))
state.Register((*FullAddress)(nil))
state.Register((*ControlMessages)(nil))
state.Register((*LinkPacketInfo)(nil))