diff options
Diffstat (limited to 'pkg/tcpip/link')
-rw-r--r-- | pkg/tcpip/link/channel/channel_state_autogen.go | 2 | ||||
-rw-r--r-- | pkg/tcpip/link/tun/tun_state_autogen.go | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/pkg/tcpip/link/channel/channel_state_autogen.go b/pkg/tcpip/link/channel/channel_state_autogen.go index 38c12a3bf..7730b59b8 100644 --- a/pkg/tcpip/link/channel/channel_state_autogen.go +++ b/pkg/tcpip/link/channel/channel_state_autogen.go @@ -18,6 +18,7 @@ func (n *NotificationHandle) StateFields() []string { func (n *NotificationHandle) beforeSave() {} +// +checklocksignore func (n *NotificationHandle) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.n) @@ -25,6 +26,7 @@ func (n *NotificationHandle) StateSave(stateSinkObject state.Sink) { func (n *NotificationHandle) afterLoad() {} +// +checklocksignore func (n *NotificationHandle) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.n) } diff --git a/pkg/tcpip/link/tun/tun_state_autogen.go b/pkg/tcpip/link/tun/tun_state_autogen.go index 3515d86fd..c5773cc11 100644 --- a/pkg/tcpip/link/tun/tun_state_autogen.go +++ b/pkg/tcpip/link/tun/tun_state_autogen.go @@ -19,6 +19,7 @@ func (d *Device) StateFields() []string { } } +// +checklocksignore func (d *Device) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.Queue) @@ -29,6 +30,7 @@ func (d *Device) StateSave(stateSinkObject state.Sink) { func (d *Device) afterLoad() {} +// +checklocksignore func (d *Device) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.Queue) stateSourceObject.Load(1, &d.endpoint) @@ -48,11 +50,13 @@ func (r *tunEndpointRefs) StateFields() []string { func (r *tunEndpointRefs) beforeSave() {} +// +checklocksignore func (r *tunEndpointRefs) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.refCount) } +// +checklocksignore func (r *tunEndpointRefs) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.refCount) stateSourceObject.AfterLoad(r.afterLoad) |