summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/ports/ports_state_autogen.go
blob: f0ee1bb1105c323f3162ec3726c21a1136594e20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// automatically generated by stateify.

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("pkg/tcpip/ports.Flags", (*Flags)(nil), state.Fns{Save: (*Flags).save, Load: (*Flags).load})
}