summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/ports/ports_state_autogen.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-12-09 23:55:25 +0000
committergVisor bot <gvisor-bot@google.com>2019-12-09 23:55:25 +0000
commit2750e0f654a37ecfbb036d921b4b9f2b670359b9 (patch)
tree52523aa99db598d6ae4ba41657e19f6a3c6d5510 /pkg/tcpip/ports/ports_state_autogen.go
parent71c99ca1df8481fdafd46a8d3e48673fd2efc885 (diff)
parent18af75db9de5244bd3e180a86886a4b3cadd7547 (diff)
Merge release-20191129.0-29-g18af75d (automated)
Diffstat (limited to 'pkg/tcpip/ports/ports_state_autogen.go')
-rwxr-xr-xpkg/tcpip/ports/ports_state_autogen.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/pkg/tcpip/ports/ports_state_autogen.go b/pkg/tcpip/ports/ports_state_autogen.go
index 664cc3e71..badae1397 100755
--- a/pkg/tcpip/ports/ports_state_autogen.go
+++ b/pkg/tcpip/ports/ports_state_autogen.go
@@ -2,3 +2,23 @@
package ports
+import (
+ "gvisor.dev/gvisor/pkg/state"
+)
+
+func (x *Flags) beforeSave() {}
+func (x *Flags) save(m state.Map) {
+ x.beforeSave()
+ m.Save("MostRecent", &x.MostRecent)
+ m.Save("LoadBalanced", &x.LoadBalanced)
+}
+
+func (x *Flags) afterLoad() {}
+func (x *Flags) load(m state.Map) {
+ m.Load("MostRecent", &x.MostRecent)
+ m.Load("LoadBalanced", &x.LoadBalanced)
+}
+
+func init() {
+ state.Register("ports.Flags", (*Flags)(nil), state.Fns{Save: (*Flags).save, Load: (*Flags).load})
+}