summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/tcpip_state_autogen.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-11-18 22:39:51 +0000
committergVisor bot <gvisor-bot@google.com>2020-11-18 22:39:51 +0000
commit0e43c0c8fb48ec92a81599b016d35a28e9e0f168 (patch)
treef150ad2d41e4eb59e4cead6f51bfd6327243a5c6 /pkg/tcpip/tcpip_state_autogen.go
parent3cae5fbf49773ca2ec7b2ea5163899a3965ff504 (diff)
parentdf37babd576ba4607e2fe69eb2c669aa2954b9cb (diff)
Merge release-20201109.0-79-gdf37babd5 (automated)
Diffstat (limited to 'pkg/tcpip/tcpip_state_autogen.go')
-rw-r--r--pkg/tcpip/tcpip_state_autogen.go21
1 files changed, 15 insertions, 6 deletions
diff --git a/pkg/tcpip/tcpip_state_autogen.go b/pkg/tcpip/tcpip_state_autogen.go
index a50f49a2f..37300006e 100644
--- a/pkg/tcpip/tcpip_state_autogen.go
+++ b/pkg/tcpip/tcpip_state_autogen.go
@@ -12,9 +12,12 @@ func (so *SocketOptions) StateTypeName() string {
func (so *SocketOptions) StateFields() []string {
return []string{
+ "handler",
"broadcastEnabled",
"passCredEnabled",
"noChecksumEnabled",
+ "reuseAddressEnabled",
+ "reusePortEnabled",
}
}
@@ -22,17 +25,23 @@ func (so *SocketOptions) beforeSave() {}
func (so *SocketOptions) StateSave(stateSinkObject state.Sink) {
so.beforeSave()
- stateSinkObject.Save(0, &so.broadcastEnabled)
- stateSinkObject.Save(1, &so.passCredEnabled)
- stateSinkObject.Save(2, &so.noChecksumEnabled)
+ stateSinkObject.Save(0, &so.handler)
+ stateSinkObject.Save(1, &so.broadcastEnabled)
+ stateSinkObject.Save(2, &so.passCredEnabled)
+ stateSinkObject.Save(3, &so.noChecksumEnabled)
+ stateSinkObject.Save(4, &so.reuseAddressEnabled)
+ stateSinkObject.Save(5, &so.reusePortEnabled)
}
func (so *SocketOptions) afterLoad() {}
func (so *SocketOptions) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &so.broadcastEnabled)
- stateSourceObject.Load(1, &so.passCredEnabled)
- stateSourceObject.Load(2, &so.noChecksumEnabled)
+ stateSourceObject.Load(0, &so.handler)
+ stateSourceObject.Load(1, &so.broadcastEnabled)
+ stateSourceObject.Load(2, &so.passCredEnabled)
+ stateSourceObject.Load(3, &so.noChecksumEnabled)
+ stateSourceObject.Load(4, &so.reuseAddressEnabled)
+ stateSourceObject.Load(5, &so.reusePortEnabled)
}
func (f *FullAddress) StateTypeName() string {