summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/stack/stack_state_autogen.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-10-29 23:19:15 +0000
committergVisor bot <gvisor-bot@google.com>2019-10-29 23:19:15 +0000
commit06ea1e9d8d3c90b2ed0fb5e37671d3c13e9488ff (patch)
treefb89717e8ab99fab9d642da7301829e6a84bbfa3 /pkg/tcpip/stack/stack_state_autogen.go
parent1e215c2f266a464d3ca0ef9da15f8f121d7d5287 (diff)
parenta2c51efe3669f0380042b2375eae79e403d3680c (diff)
Merge release-20190806.1-343-ga2c51ef (automated)
Diffstat (limited to 'pkg/tcpip/stack/stack_state_autogen.go')
-rwxr-xr-xpkg/tcpip/stack/stack_state_autogen.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/pkg/tcpip/stack/stack_state_autogen.go b/pkg/tcpip/stack/stack_state_autogen.go
index 2459c3d3a..2551126f2 100755
--- a/pkg/tcpip/stack/stack_state_autogen.go
+++ b/pkg/tcpip/stack/stack_state_autogen.go
@@ -99,6 +99,21 @@ func (x *TransportEndpointInfo) load(m state.Map) {
m.Load("RegisterNICID", &x.RegisterNICID)
}
+func (x *multiPortEndpoint) beforeSave() {}
+func (x *multiPortEndpoint) save(m state.Map) {
+ x.beforeSave()
+ m.Save("endpointsArr", &x.endpointsArr)
+ m.Save("endpointsMap", &x.endpointsMap)
+ m.Save("reuse", &x.reuse)
+}
+
+func (x *multiPortEndpoint) afterLoad() {}
+func (x *multiPortEndpoint) load(m state.Map) {
+ m.Load("endpointsArr", &x.endpointsArr)
+ m.Load("endpointsMap", &x.endpointsMap)
+ m.Load("reuse", &x.reuse)
+}
+
func init() {
state.Register("stack.linkAddrEntryList", (*linkAddrEntryList)(nil), state.Fns{Save: (*linkAddrEntryList).save, Load: (*linkAddrEntryList).load})
state.Register("stack.linkAddrEntryEntry", (*linkAddrEntryEntry)(nil), state.Fns{Save: (*linkAddrEntryEntry).save, Load: (*linkAddrEntryEntry).load})
@@ -106,4 +121,5 @@ func init() {
state.Register("stack.GSOType", (*GSOType)(nil), state.Fns{Save: (*GSOType).save, Load: (*GSOType).load})
state.Register("stack.GSO", (*GSO)(nil), state.Fns{Save: (*GSO).save, Load: (*GSO).load})
state.Register("stack.TransportEndpointInfo", (*TransportEndpointInfo)(nil), state.Fns{Save: (*TransportEndpointInfo).save, Load: (*TransportEndpointInfo).load})
+ state.Register("stack.multiPortEndpoint", (*multiPortEndpoint)(nil), state.Fns{Save: (*multiPortEndpoint).save, Load: (*multiPortEndpoint).load})
}