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
51
52
53
54
55
56
57
58
59
|
// automatically generated by stateify.
package stack
import (
"gvisor.googlesource.com/gvisor/pkg/state"
)
func (x *TransportEndpointID) beforeSave() {}
func (x *TransportEndpointID) save(m state.Map) {
x.beforeSave()
m.Save("LocalPort", &x.LocalPort)
m.Save("LocalAddress", &x.LocalAddress)
m.Save("RemotePort", &x.RemotePort)
m.Save("RemoteAddress", &x.RemoteAddress)
}
func (x *TransportEndpointID) afterLoad() {}
func (x *TransportEndpointID) load(m state.Map) {
m.Load("LocalPort", &x.LocalPort)
m.Load("LocalAddress", &x.LocalAddress)
m.Load("RemotePort", &x.RemotePort)
m.Load("RemoteAddress", &x.RemoteAddress)
}
func (x *GSOType) save(m state.Map) {
m.SaveValue("", (int)(*x))
}
func (x *GSOType) load(m state.Map) {
m.LoadValue("", new(int), func(y interface{}) { *x = (GSOType)(y.(int)) })
}
func (x *GSO) beforeSave() {}
func (x *GSO) save(m state.Map) {
x.beforeSave()
m.Save("Type", &x.Type)
m.Save("NeedsCsum", &x.NeedsCsum)
m.Save("CsumOffset", &x.CsumOffset)
m.Save("MSS", &x.MSS)
m.Save("L3HdrLen", &x.L3HdrLen)
m.Save("MaxSize", &x.MaxSize)
}
func (x *GSO) afterLoad() {}
func (x *GSO) load(m state.Map) {
m.Load("Type", &x.Type)
m.Load("NeedsCsum", &x.NeedsCsum)
m.Load("CsumOffset", &x.CsumOffset)
m.Load("MSS", &x.MSS)
m.Load("L3HdrLen", &x.L3HdrLen)
m.Load("MaxSize", &x.MaxSize)
}
func init() {
state.Register("stack.TransportEndpointID", (*TransportEndpointID)(nil), state.Fns{Save: (*TransportEndpointID).save, Load: (*TransportEndpointID).load})
state.Register("stack.GSOType", (*GSOType)(nil), state.Fns{Save: (*GSOType).save, Load: (*GSOType).load})
state.Register("stack.GSO", (*GSO)(nil), state.Fns{Save: (*GSO).save, Load: (*GSO).load})
}
|