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
|
// 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)
}
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)
}
func init() {
state.Register("netlink.Socket", (*Socket)(nil), state.Fns{Save: (*Socket).save, Load: (*Socket).load})
}
|