summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/inet
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-10-08 01:32:17 +0000
committergVisor bot <gvisor-bot@google.com>2020-10-08 01:32:17 +0000
commit8f70c8003e9d132fc766ed7d92ce805c093d518b (patch)
tree6d77a3246e3f04605790d410e7630cb910704ced /pkg/sentry/inet
parent8f9d99c812b7599c52ed98f80c1a33717758a5c6 (diff)
parenta55bd73d4802112a7055de8663e947b9c0f42a2e (diff)
Merge release-20200928.0-66-ga55bd73d4 (automated)
Diffstat (limited to 'pkg/sentry/inet')
-rw-r--r--pkg/sentry/inet/inet_state_autogen.go48
1 files changed, 24 insertions, 24 deletions
diff --git a/pkg/sentry/inet/inet_state_autogen.go b/pkg/sentry/inet/inet_state_autogen.go
index dc382a657..372a3d50a 100644
--- a/pkg/sentry/inet/inet_state_autogen.go
+++ b/pkg/sentry/inet/inet_state_autogen.go
@@ -6,11 +6,11 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (x *TCPBufferSize) StateTypeName() string {
+func (t *TCPBufferSize) StateTypeName() string {
return "pkg/sentry/inet.TCPBufferSize"
}
-func (x *TCPBufferSize) StateFields() []string {
+func (t *TCPBufferSize) StateFields() []string {
return []string{
"Min",
"Default",
@@ -18,46 +18,46 @@ func (x *TCPBufferSize) StateFields() []string {
}
}
-func (x *TCPBufferSize) beforeSave() {}
+func (t *TCPBufferSize) beforeSave() {}
-func (x *TCPBufferSize) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.Min)
- m.Save(1, &x.Default)
- m.Save(2, &x.Max)
+func (t *TCPBufferSize) StateSave(stateSinkObject state.Sink) {
+ t.beforeSave()
+ stateSinkObject.Save(0, &t.Min)
+ stateSinkObject.Save(1, &t.Default)
+ stateSinkObject.Save(2, &t.Max)
}
-func (x *TCPBufferSize) afterLoad() {}
+func (t *TCPBufferSize) afterLoad() {}
-func (x *TCPBufferSize) StateLoad(m state.Source) {
- m.Load(0, &x.Min)
- m.Load(1, &x.Default)
- m.Load(2, &x.Max)
+func (t *TCPBufferSize) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &t.Min)
+ stateSourceObject.Load(1, &t.Default)
+ stateSourceObject.Load(2, &t.Max)
}
-func (x *Namespace) StateTypeName() string {
+func (n *Namespace) StateTypeName() string {
return "pkg/sentry/inet.Namespace"
}
-func (x *Namespace) StateFields() []string {
+func (n *Namespace) StateFields() []string {
return []string{
"creator",
"isRoot",
}
}
-func (x *Namespace) beforeSave() {}
+func (n *Namespace) beforeSave() {}
-func (x *Namespace) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.creator)
- m.Save(1, &x.isRoot)
+func (n *Namespace) StateSave(stateSinkObject state.Sink) {
+ n.beforeSave()
+ stateSinkObject.Save(0, &n.creator)
+ stateSinkObject.Save(1, &n.isRoot)
}
-func (x *Namespace) StateLoad(m state.Source) {
- m.LoadWait(0, &x.creator)
- m.Load(1, &x.isRoot)
- m.AfterLoad(x.afterLoad)
+func (n *Namespace) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.LoadWait(0, &n.creator)
+ stateSourceObject.Load(1, &n.isRoot)
+ stateSourceObject.AfterLoad(n.afterLoad)
}
func init() {