blob: 8b56175e403d3411cc3139b9584109cb229ae1fc (
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
|
// automatically generated by stateify.
// +build linux
package tun
import (
"gvisor.dev/gvisor/pkg/state"
)
func (x *Device) save(m state.Map) {
x.beforeSave()
m.Save("Queue", &x.Queue)
m.Save("endpoint", &x.endpoint)
m.Save("notifyHandle", &x.notifyHandle)
m.Save("flags", &x.flags)
}
func (x *Device) afterLoad() {}
func (x *Device) load(m state.Map) {
m.Load("Queue", &x.Queue)
m.Load("endpoint", &x.endpoint)
m.Load("notifyHandle", &x.notifyHandle)
m.Load("flags", &x.flags)
}
func init() {
state.Register("pkg/tcpip/link/tun.Device", (*Device)(nil), state.Fns{Save: (*Device).save, Load: (*Device).load})
}
|