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/header | |
parent | 8f9d99c812b7599c52ed98f80c1a33717758a5c6 (diff) | |
parent | a55bd73d4802112a7055de8663e947b9c0f42a2e (diff) |
Merge release-20200928.0-66-ga55bd73d4 (automated)
Diffstat (limited to 'pkg/tcpip/header')
-rw-r--r-- | pkg/tcpip/header/header_state_autogen.go | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/pkg/tcpip/header/header_state_autogen.go b/pkg/tcpip/header/header_state_autogen.go index 7efd361fb..8e70640cd 100644 --- a/pkg/tcpip/header/header_state_autogen.go +++ b/pkg/tcpip/header/header_state_autogen.go @@ -6,37 +6,37 @@ import ( "gvisor.dev/gvisor/pkg/state" ) -func (x *SACKBlock) StateTypeName() string { +func (s *SACKBlock) StateTypeName() string { return "pkg/tcpip/header.SACKBlock" } -func (x *SACKBlock) StateFields() []string { +func (s *SACKBlock) StateFields() []string { return []string{ "Start", "End", } } -func (x *SACKBlock) beforeSave() {} +func (s *SACKBlock) beforeSave() {} -func (x *SACKBlock) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.Start) - m.Save(1, &x.End) +func (s *SACKBlock) StateSave(stateSinkObject state.Sink) { + s.beforeSave() + stateSinkObject.Save(0, &s.Start) + stateSinkObject.Save(1, &s.End) } -func (x *SACKBlock) afterLoad() {} +func (s *SACKBlock) afterLoad() {} -func (x *SACKBlock) StateLoad(m state.Source) { - m.Load(0, &x.Start) - m.Load(1, &x.End) +func (s *SACKBlock) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &s.Start) + stateSourceObject.Load(1, &s.End) } -func (x *TCPOptions) StateTypeName() string { +func (t *TCPOptions) StateTypeName() string { return "pkg/tcpip/header.TCPOptions" } -func (x *TCPOptions) StateFields() []string { +func (t *TCPOptions) StateFields() []string { return []string{ "TS", "TSVal", @@ -45,23 +45,23 @@ func (x *TCPOptions) StateFields() []string { } } -func (x *TCPOptions) beforeSave() {} +func (t *TCPOptions) beforeSave() {} -func (x *TCPOptions) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.TS) - m.Save(1, &x.TSVal) - m.Save(2, &x.TSEcr) - m.Save(3, &x.SACKBlocks) +func (t *TCPOptions) StateSave(stateSinkObject state.Sink) { + t.beforeSave() + stateSinkObject.Save(0, &t.TS) + stateSinkObject.Save(1, &t.TSVal) + stateSinkObject.Save(2, &t.TSEcr) + stateSinkObject.Save(3, &t.SACKBlocks) } -func (x *TCPOptions) afterLoad() {} +func (t *TCPOptions) afterLoad() {} -func (x *TCPOptions) StateLoad(m state.Source) { - m.Load(0, &x.TS) - m.Load(1, &x.TSVal) - m.Load(2, &x.TSEcr) - m.Load(3, &x.SACKBlocks) +func (t *TCPOptions) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &t.TS) + stateSourceObject.Load(1, &t.TSVal) + stateSourceObject.Load(2, &t.TSEcr) + stateSourceObject.Load(3, &t.SACKBlocks) } func init() { |