summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/inet/inet_state_autogen.go
blob: 00f40556ceb61a6f3c78cb4d014168966670d5ab (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
25
26
// automatically generated by stateify.

package inet

import (
	"gvisor.dev/gvisor/pkg/state"
)

func (x *TCPBufferSize) beforeSave() {}
func (x *TCPBufferSize) save(m state.Map) {
	x.beforeSave()
	m.Save("Min", &x.Min)
	m.Save("Default", &x.Default)
	m.Save("Max", &x.Max)
}

func (x *TCPBufferSize) afterLoad() {}
func (x *TCPBufferSize) load(m state.Map) {
	m.Load("Min", &x.Min)
	m.Load("Default", &x.Default)
	m.Load("Max", &x.Max)
}

func init() {
	state.Register("inet.TCPBufferSize", (*TCPBufferSize)(nil), state.Fns{Save: (*TCPBufferSize).save, Load: (*TCPBufferSize).load})
}