diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-07-17 01:43:18 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-17 01:43:18 +0000 |
commit | 1d81bf5f979b77928a1a890675b6905862e6fa75 (patch) | |
tree | 0b3624920fa4989888305eb02bdaaca5aff6ae50 /pkg/tcpip/tcpip_state_autogen.go | |
parent | 667702d0dd27926f9963d3a1571e0362f45c204e (diff) | |
parent | dcf6ddc2772b8fcf824f1f48e0281e1cc80b93ea (diff) |
Merge release-20200622.1-173-gdcf6ddc27 (automated)
Diffstat (limited to 'pkg/tcpip/tcpip_state_autogen.go')
-rw-r--r-- | pkg/tcpip/tcpip_state_autogen.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pkg/tcpip/tcpip_state_autogen.go b/pkg/tcpip/tcpip_state_autogen.go index 28d5ae82b..e79c0b491 100644 --- a/pkg/tcpip/tcpip_state_autogen.go +++ b/pkg/tcpip/tcpip_state_autogen.go @@ -85,6 +85,29 @@ func (x *ControlMessages) StateLoad(m state.Source) { m.Load(9, &x.PacketInfo) } +func (x *LinkPacketInfo) StateTypeName() string { + return "pkg/tcpip.LinkPacketInfo" +} + +func (x *LinkPacketInfo) StateFields() []string { + return []string{ + "Protocol", + } +} + +func (x *LinkPacketInfo) beforeSave() {} + +func (x *LinkPacketInfo) StateSave(m state.Sink) { + x.beforeSave() + m.Save(0, &x.Protocol) +} + +func (x *LinkPacketInfo) afterLoad() {} + +func (x *LinkPacketInfo) StateLoad(m state.Source) { + m.Load(0, &x.Protocol) +} + func (x *IPPacketInfo) StateTypeName() string { return "pkg/tcpip.IPPacketInfo" } @@ -117,5 +140,6 @@ func (x *IPPacketInfo) StateLoad(m state.Source) { func init() { state.Register((*FullAddress)(nil)) state.Register((*ControlMessages)(nil)) + state.Register((*LinkPacketInfo)(nil)) state.Register((*IPPacketInfo)(nil)) } |