diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-10-08 01:32:17 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-10-08 01:32:17 +0000 |
commit | 8f70c8003e9d132fc766ed7d92ce805c093d518b (patch) | |
tree | 6d77a3246e3f04605790d410e7630cb910704ced /pkg/tcpip/ports | |
parent | 8f9d99c812b7599c52ed98f80c1a33717758a5c6 (diff) | |
parent | a55bd73d4802112a7055de8663e947b9c0f42a2e (diff) |
Merge release-20200928.0-66-ga55bd73d4 (automated)
Diffstat (limited to 'pkg/tcpip/ports')
-rw-r--r-- | pkg/tcpip/ports/ports_state_autogen.go | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/pkg/tcpip/ports/ports_state_autogen.go b/pkg/tcpip/ports/ports_state_autogen.go index 54db0b8f9..1e1d9cd4c 100644 --- a/pkg/tcpip/ports/ports_state_autogen.go +++ b/pkg/tcpip/ports/ports_state_autogen.go @@ -6,11 +6,11 @@ import ( "gvisor.dev/gvisor/pkg/state" ) -func (x *Flags) StateTypeName() string { +func (f *Flags) StateTypeName() string { return "pkg/tcpip/ports.Flags" } -func (x *Flags) StateFields() []string { +func (f *Flags) StateFields() []string { return []string{ "MostRecent", "LoadBalanced", @@ -18,21 +18,21 @@ func (x *Flags) StateFields() []string { } } -func (x *Flags) beforeSave() {} +func (f *Flags) beforeSave() {} -func (x *Flags) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.MostRecent) - m.Save(1, &x.LoadBalanced) - m.Save(2, &x.TupleOnly) +func (f *Flags) StateSave(stateSinkObject state.Sink) { + f.beforeSave() + stateSinkObject.Save(0, &f.MostRecent) + stateSinkObject.Save(1, &f.LoadBalanced) + stateSinkObject.Save(2, &f.TupleOnly) } -func (x *Flags) afterLoad() {} +func (f *Flags) afterLoad() {} -func (x *Flags) StateLoad(m state.Source) { - m.Load(0, &x.MostRecent) - m.Load(1, &x.LoadBalanced) - m.Load(2, &x.TupleOnly) +func (f *Flags) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &f.MostRecent) + stateSourceObject.Load(1, &f.LoadBalanced) + stateSourceObject.Load(2, &f.TupleOnly) } func init() { |