summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/socket/netlink/netlink_state_autogen.go
blob: fa1feb44786b8a9fe1f8619ec6e322ae673675be (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// automatically generated by stateify.

package netlink

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

func (x *Socket) beforeSave() {}
func (x *Socket) save(m state.Map) {
	x.beforeSave()
	m.Save("SendReceiveTimeout", &x.SendReceiveTimeout)
	m.Save("ports", &x.ports)
	m.Save("protocol", &x.protocol)
	m.Save("skType", &x.skType)
	m.Save("ep", &x.ep)
	m.Save("connection", &x.connection)
	m.Save("bound", &x.bound)
	m.Save("portID", &x.portID)
	m.Save("sendBufferSize", &x.sendBufferSize)
	m.Save("passcred", &x.passcred)
}

func (x *Socket) afterLoad() {}
func (x *Socket) load(m state.Map) {
	m.Load("SendReceiveTimeout", &x.SendReceiveTimeout)
	m.Load("ports", &x.ports)
	m.Load("protocol", &x.protocol)
	m.Load("skType", &x.skType)
	m.Load("ep", &x.ep)
	m.Load("connection", &x.connection)
	m.Load("bound", &x.bound)
	m.Load("portID", &x.portID)
	m.Load("sendBufferSize", &x.sendBufferSize)
	m.Load("passcred", &x.passcred)
}

func (x *kernelSCM) beforeSave() {}
func (x *kernelSCM) save(m state.Map) {
	x.beforeSave()
}

func (x *kernelSCM) afterLoad() {}
func (x *kernelSCM) load(m state.Map) {
}

func init() {
	state.Register("netlink.Socket", (*Socket)(nil), state.Fns{Save: (*Socket).save, Load: (*Socket).load})
	state.Register("netlink.kernelSCM", (*kernelSCM)(nil), state.Fns{Save: (*kernelSCM).save, Load: (*kernelSCM).load})
}