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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
|
// automatically generated by stateify.
package stack
import (
"gvisor.dev/gvisor/pkg/state"
)
func (x *linkAddrEntryList) beforeSave() {}
func (x *linkAddrEntryList) save(m state.Map) {
x.beforeSave()
m.Save("head", &x.head)
m.Save("tail", &x.tail)
}
func (x *linkAddrEntryList) afterLoad() {}
func (x *linkAddrEntryList) load(m state.Map) {
m.Load("head", &x.head)
m.Load("tail", &x.tail)
}
func (x *linkAddrEntryEntry) beforeSave() {}
func (x *linkAddrEntryEntry) save(m state.Map) {
x.beforeSave()
m.Save("next", &x.next)
m.Save("prev", &x.prev)
}
func (x *linkAddrEntryEntry) afterLoad() {}
func (x *linkAddrEntryEntry) load(m state.Map) {
m.Load("next", &x.next)
m.Load("prev", &x.prev)
}
func (x *PacketBufferList) beforeSave() {}
func (x *PacketBufferList) save(m state.Map) {
x.beforeSave()
m.Save("head", &x.head)
m.Save("tail", &x.tail)
}
func (x *PacketBufferList) afterLoad() {}
func (x *PacketBufferList) load(m state.Map) {
m.Load("head", &x.head)
m.Load("tail", &x.tail)
}
func (x *PacketBufferEntry) beforeSave() {}
func (x *PacketBufferEntry) save(m state.Map) {
x.beforeSave()
m.Save("next", &x.next)
m.Save("prev", &x.prev)
}
func (x *PacketBufferEntry) afterLoad() {}
func (x *PacketBufferEntry) load(m state.Map) {
m.Load("next", &x.next)
m.Load("prev", &x.prev)
}
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 (x *TransportEndpointInfo) beforeSave() {}
func (x *TransportEndpointInfo) save(m state.Map) {
x.beforeSave()
m.Save("NetProto", &x.NetProto)
m.Save("TransProto", &x.TransProto)
m.Save("ID", &x.ID)
m.Save("BindNICID", &x.BindNICID)
m.Save("BindAddr", &x.BindAddr)
m.Save("RegisterNICID", &x.RegisterNICID)
}
func (x *TransportEndpointInfo) afterLoad() {}
func (x *TransportEndpointInfo) load(m state.Map) {
m.Load("NetProto", &x.NetProto)
m.Load("TransProto", &x.TransProto)
m.Load("ID", &x.ID)
m.Load("BindNICID", &x.BindNICID)
m.Load("BindAddr", &x.BindAddr)
m.Load("RegisterNICID", &x.RegisterNICID)
}
func (x *multiPortEndpoint) beforeSave() {}
func (x *multiPortEndpoint) save(m state.Map) {
x.beforeSave()
m.Save("demux", &x.demux)
m.Save("netProto", &x.netProto)
m.Save("transProto", &x.transProto)
m.Save("endpoints", &x.endpoints)
m.Save("reuse", &x.reuse)
}
func (x *multiPortEndpoint) afterLoad() {}
func (x *multiPortEndpoint) load(m state.Map) {
m.Load("demux", &x.demux)
m.Load("netProto", &x.netProto)
m.Load("transProto", &x.transProto)
m.Load("endpoints", &x.endpoints)
m.Load("reuse", &x.reuse)
}
func init() {
state.Register("pkg/tcpip/stack.linkAddrEntryList", (*linkAddrEntryList)(nil), state.Fns{Save: (*linkAddrEntryList).save, Load: (*linkAddrEntryList).load})
state.Register("pkg/tcpip/stack.linkAddrEntryEntry", (*linkAddrEntryEntry)(nil), state.Fns{Save: (*linkAddrEntryEntry).save, Load: (*linkAddrEntryEntry).load})
state.Register("pkg/tcpip/stack.PacketBufferList", (*PacketBufferList)(nil), state.Fns{Save: (*PacketBufferList).save, Load: (*PacketBufferList).load})
state.Register("pkg/tcpip/stack.PacketBufferEntry", (*PacketBufferEntry)(nil), state.Fns{Save: (*PacketBufferEntry).save, Load: (*PacketBufferEntry).load})
state.Register("pkg/tcpip/stack.TransportEndpointID", (*TransportEndpointID)(nil), state.Fns{Save: (*TransportEndpointID).save, Load: (*TransportEndpointID).load})
state.Register("pkg/tcpip/stack.GSOType", (*GSOType)(nil), state.Fns{Save: (*GSOType).save, Load: (*GSOType).load})
state.Register("pkg/tcpip/stack.GSO", (*GSO)(nil), state.Fns{Save: (*GSO).save, Load: (*GSO).load})
state.Register("pkg/tcpip/stack.TransportEndpointInfo", (*TransportEndpointInfo)(nil), state.Fns{Save: (*TransportEndpointInfo).save, Load: (*TransportEndpointInfo).load})
state.Register("pkg/tcpip/stack.multiPortEndpoint", (*multiPortEndpoint)(nil), state.Fns{Save: (*multiPortEndpoint).save, Load: (*multiPortEndpoint).load})
}
|