summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/tcpip')
-rw-r--r--pkg/tcpip/buffer/buffer_state_autogen.go22
-rw-r--r--pkg/tcpip/header/header_state_autogen.go22
-rw-r--r--pkg/tcpip/link/tun/tun_state_autogen.go18
-rw-r--r--pkg/tcpip/network/fragmentation/fragmentation_state_autogen.go44
-rw-r--r--pkg/tcpip/stack/stack_state_autogen.go408
-rw-r--r--pkg/tcpip/transport/icmp/icmp_state_autogen.go74
-rw-r--r--pkg/tcpip/transport/packet/packet_state_autogen.go124
-rw-r--r--pkg/tcpip/transport/raw/raw_state_autogen.go154
-rw-r--r--pkg/tcpip/transport/tcp/tcp_state_autogen.go126
-rw-r--r--pkg/tcpip/transport/udp/udp_state_autogen.go44
10 files changed, 518 insertions, 518 deletions
diff --git a/pkg/tcpip/buffer/buffer_state_autogen.go b/pkg/tcpip/buffer/buffer_state_autogen.go
index 8ce4b4c2c..9f0e96ed1 100644
--- a/pkg/tcpip/buffer/buffer_state_autogen.go
+++ b/pkg/tcpip/buffer/buffer_state_autogen.go
@@ -6,30 +6,30 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (v *VectorisedView) StateTypeName() string {
+func (vv *VectorisedView) StateTypeName() string {
return "pkg/tcpip/buffer.VectorisedView"
}
-func (v *VectorisedView) StateFields() []string {
+func (vv *VectorisedView) StateFields() []string {
return []string{
"views",
"size",
}
}
-func (v *VectorisedView) beforeSave() {}
+func (vv *VectorisedView) beforeSave() {}
-func (v *VectorisedView) StateSave(stateSinkObject state.Sink) {
- v.beforeSave()
- stateSinkObject.Save(0, &v.views)
- stateSinkObject.Save(1, &v.size)
+func (vv *VectorisedView) StateSave(stateSinkObject state.Sink) {
+ vv.beforeSave()
+ stateSinkObject.Save(0, &vv.views)
+ stateSinkObject.Save(1, &vv.size)
}
-func (v *VectorisedView) afterLoad() {}
+func (vv *VectorisedView) afterLoad() {}
-func (v *VectorisedView) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &v.views)
- stateSourceObject.Load(1, &v.size)
+func (vv *VectorisedView) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &vv.views)
+ stateSourceObject.Load(1, &vv.size)
}
func init() {
diff --git a/pkg/tcpip/header/header_state_autogen.go b/pkg/tcpip/header/header_state_autogen.go
index 8e70640cd..ddcc980e8 100644
--- a/pkg/tcpip/header/header_state_autogen.go
+++ b/pkg/tcpip/header/header_state_autogen.go
@@ -6,30 +6,30 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (s *SACKBlock) StateTypeName() string {
+func (r *SACKBlock) StateTypeName() string {
return "pkg/tcpip/header.SACKBlock"
}
-func (s *SACKBlock) StateFields() []string {
+func (r *SACKBlock) StateFields() []string {
return []string{
"Start",
"End",
}
}
-func (s *SACKBlock) beforeSave() {}
+func (r *SACKBlock) beforeSave() {}
-func (s *SACKBlock) StateSave(stateSinkObject state.Sink) {
- s.beforeSave()
- stateSinkObject.Save(0, &s.Start)
- stateSinkObject.Save(1, &s.End)
+func (r *SACKBlock) StateSave(stateSinkObject state.Sink) {
+ r.beforeSave()
+ stateSinkObject.Save(0, &r.Start)
+ stateSinkObject.Save(1, &r.End)
}
-func (s *SACKBlock) afterLoad() {}
+func (r *SACKBlock) afterLoad() {}
-func (s *SACKBlock) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &s.Start)
- stateSourceObject.Load(1, &s.End)
+func (r *SACKBlock) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &r.Start)
+ stateSourceObject.Load(1, &r.End)
}
func (t *TCPOptions) StateTypeName() string {
diff --git a/pkg/tcpip/link/tun/tun_state_autogen.go b/pkg/tcpip/link/tun/tun_state_autogen.go
index 168171eb1..165b50835 100644
--- a/pkg/tcpip/link/tun/tun_state_autogen.go
+++ b/pkg/tcpip/link/tun/tun_state_autogen.go
@@ -36,27 +36,27 @@ func (d *Device) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(3, &d.flags)
}
-func (t *tunEndpointRefs) StateTypeName() string {
+func (r *tunEndpointRefs) StateTypeName() string {
return "pkg/tcpip/link/tun.tunEndpointRefs"
}
-func (t *tunEndpointRefs) StateFields() []string {
+func (r *tunEndpointRefs) StateFields() []string {
return []string{
"refCount",
}
}
-func (t *tunEndpointRefs) beforeSave() {}
+func (r *tunEndpointRefs) beforeSave() {}
-func (t *tunEndpointRefs) StateSave(stateSinkObject state.Sink) {
- t.beforeSave()
- stateSinkObject.Save(0, &t.refCount)
+func (r *tunEndpointRefs) StateSave(stateSinkObject state.Sink) {
+ r.beforeSave()
+ stateSinkObject.Save(0, &r.refCount)
}
-func (t *tunEndpointRefs) afterLoad() {}
+func (r *tunEndpointRefs) afterLoad() {}
-func (t *tunEndpointRefs) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &t.refCount)
+func (r *tunEndpointRefs) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &r.refCount)
}
func init() {
diff --git a/pkg/tcpip/network/fragmentation/fragmentation_state_autogen.go b/pkg/tcpip/network/fragmentation/fragmentation_state_autogen.go
index 22324ce1c..193268aef 100644
--- a/pkg/tcpip/network/fragmentation/fragmentation_state_autogen.go
+++ b/pkg/tcpip/network/fragmentation/fragmentation_state_autogen.go
@@ -6,56 +6,56 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (r *reassemblerList) StateTypeName() string {
+func (l *reassemblerList) StateTypeName() string {
return "pkg/tcpip/network/fragmentation.reassemblerList"
}
-func (r *reassemblerList) StateFields() []string {
+func (l *reassemblerList) StateFields() []string {
return []string{
"head",
"tail",
}
}
-func (r *reassemblerList) beforeSave() {}
+func (l *reassemblerList) beforeSave() {}
-func (r *reassemblerList) StateSave(stateSinkObject state.Sink) {
- r.beforeSave()
- stateSinkObject.Save(0, &r.head)
- stateSinkObject.Save(1, &r.tail)
+func (l *reassemblerList) StateSave(stateSinkObject state.Sink) {
+ l.beforeSave()
+ stateSinkObject.Save(0, &l.head)
+ stateSinkObject.Save(1, &l.tail)
}
-func (r *reassemblerList) afterLoad() {}
+func (l *reassemblerList) afterLoad() {}
-func (r *reassemblerList) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &r.head)
- stateSourceObject.Load(1, &r.tail)
+func (l *reassemblerList) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &l.head)
+ stateSourceObject.Load(1, &l.tail)
}
-func (r *reassemblerEntry) StateTypeName() string {
+func (e *reassemblerEntry) StateTypeName() string {
return "pkg/tcpip/network/fragmentation.reassemblerEntry"
}
-func (r *reassemblerEntry) StateFields() []string {
+func (e *reassemblerEntry) StateFields() []string {
return []string{
"next",
"prev",
}
}
-func (r *reassemblerEntry) beforeSave() {}
+func (e *reassemblerEntry) beforeSave() {}
-func (r *reassemblerEntry) StateSave(stateSinkObject state.Sink) {
- r.beforeSave()
- stateSinkObject.Save(0, &r.next)
- stateSinkObject.Save(1, &r.prev)
+func (e *reassemblerEntry) StateSave(stateSinkObject state.Sink) {
+ e.beforeSave()
+ stateSinkObject.Save(0, &e.next)
+ stateSinkObject.Save(1, &e.prev)
}
-func (r *reassemblerEntry) afterLoad() {}
+func (e *reassemblerEntry) afterLoad() {}
-func (r *reassemblerEntry) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &r.next)
- stateSourceObject.Load(1, &r.prev)
+func (e *reassemblerEntry) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &e.next)
+ stateSourceObject.Load(1, &e.prev)
}
func init() {
diff --git a/pkg/tcpip/stack/stack_state_autogen.go b/pkg/tcpip/stack/stack_state_autogen.go
index 941e37504..5d28fe8af 100644
--- a/pkg/tcpip/stack/stack_state_autogen.go
+++ b/pkg/tcpip/stack/stack_state_autogen.go
@@ -38,11 +38,11 @@ func (t *tuple) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(3, &t.direction)
}
-func (t *tupleID) StateTypeName() string {
+func (ti *tupleID) StateTypeName() string {
return "pkg/tcpip/stack.tupleID"
}
-func (t *tupleID) StateFields() []string {
+func (ti *tupleID) StateFields() []string {
return []string{
"srcAddr",
"srcPort",
@@ -53,34 +53,34 @@ func (t *tupleID) StateFields() []string {
}
}
-func (t *tupleID) beforeSave() {}
+func (ti *tupleID) beforeSave() {}
-func (t *tupleID) StateSave(stateSinkObject state.Sink) {
- t.beforeSave()
- stateSinkObject.Save(0, &t.srcAddr)
- stateSinkObject.Save(1, &t.srcPort)
- stateSinkObject.Save(2, &t.dstAddr)
- stateSinkObject.Save(3, &t.dstPort)
- stateSinkObject.Save(4, &t.transProto)
- stateSinkObject.Save(5, &t.netProto)
+func (ti *tupleID) StateSave(stateSinkObject state.Sink) {
+ ti.beforeSave()
+ stateSinkObject.Save(0, &ti.srcAddr)
+ stateSinkObject.Save(1, &ti.srcPort)
+ stateSinkObject.Save(2, &ti.dstAddr)
+ stateSinkObject.Save(3, &ti.dstPort)
+ stateSinkObject.Save(4, &ti.transProto)
+ stateSinkObject.Save(5, &ti.netProto)
}
-func (t *tupleID) afterLoad() {}
+func (ti *tupleID) afterLoad() {}
-func (t *tupleID) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &t.srcAddr)
- stateSourceObject.Load(1, &t.srcPort)
- stateSourceObject.Load(2, &t.dstAddr)
- stateSourceObject.Load(3, &t.dstPort)
- stateSourceObject.Load(4, &t.transProto)
- stateSourceObject.Load(5, &t.netProto)
+func (ti *tupleID) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &ti.srcAddr)
+ stateSourceObject.Load(1, &ti.srcPort)
+ stateSourceObject.Load(2, &ti.dstAddr)
+ stateSourceObject.Load(3, &ti.dstPort)
+ stateSourceObject.Load(4, &ti.transProto)
+ stateSourceObject.Load(5, &ti.netProto)
}
-func (c *conn) StateTypeName() string {
+func (cn *conn) StateTypeName() string {
return "pkg/tcpip/stack.conn"
}
-func (c *conn) StateFields() []string {
+func (cn *conn) StateFields() []string {
return []string{
"original",
"reply",
@@ -91,52 +91,52 @@ func (c *conn) StateFields() []string {
}
}
-func (c *conn) beforeSave() {}
+func (cn *conn) beforeSave() {}
-func (c *conn) StateSave(stateSinkObject state.Sink) {
- c.beforeSave()
- var lastUsedValue unixTime = c.saveLastUsed()
+func (cn *conn) StateSave(stateSinkObject state.Sink) {
+ cn.beforeSave()
+ var lastUsedValue unixTime = cn.saveLastUsed()
stateSinkObject.SaveValue(5, lastUsedValue)
- stateSinkObject.Save(0, &c.original)
- stateSinkObject.Save(1, &c.reply)
- stateSinkObject.Save(2, &c.manip)
- stateSinkObject.Save(3, &c.tcbHook)
- stateSinkObject.Save(4, &c.tcb)
+ stateSinkObject.Save(0, &cn.original)
+ stateSinkObject.Save(1, &cn.reply)
+ stateSinkObject.Save(2, &cn.manip)
+ stateSinkObject.Save(3, &cn.tcbHook)
+ stateSinkObject.Save(4, &cn.tcb)
}
-func (c *conn) afterLoad() {}
+func (cn *conn) afterLoad() {}
-func (c *conn) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &c.original)
- stateSourceObject.Load(1, &c.reply)
- stateSourceObject.Load(2, &c.manip)
- stateSourceObject.Load(3, &c.tcbHook)
- stateSourceObject.Load(4, &c.tcb)
- stateSourceObject.LoadValue(5, new(unixTime), func(y interface{}) { c.loadLastUsed(y.(unixTime)) })
+func (cn *conn) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &cn.original)
+ stateSourceObject.Load(1, &cn.reply)
+ stateSourceObject.Load(2, &cn.manip)
+ stateSourceObject.Load(3, &cn.tcbHook)
+ stateSourceObject.Load(4, &cn.tcb)
+ stateSourceObject.LoadValue(5, new(unixTime), func(y interface{}) { cn.loadLastUsed(y.(unixTime)) })
}
-func (c *ConnTrack) StateTypeName() string {
+func (ct *ConnTrack) StateTypeName() string {
return "pkg/tcpip/stack.ConnTrack"
}
-func (c *ConnTrack) StateFields() []string {
+func (ct *ConnTrack) StateFields() []string {
return []string{
"seed",
"buckets",
}
}
-func (c *ConnTrack) StateSave(stateSinkObject state.Sink) {
- c.beforeSave()
- stateSinkObject.Save(0, &c.seed)
- stateSinkObject.Save(1, &c.buckets)
+func (ct *ConnTrack) StateSave(stateSinkObject state.Sink) {
+ ct.beforeSave()
+ stateSinkObject.Save(0, &ct.seed)
+ stateSinkObject.Save(1, &ct.buckets)
}
-func (c *ConnTrack) afterLoad() {}
+func (ct *ConnTrack) afterLoad() {}
-func (c *ConnTrack) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &c.seed)
- stateSourceObject.Load(1, &c.buckets)
+func (ct *ConnTrack) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &ct.seed)
+ stateSourceObject.Load(1, &ct.buckets)
}
func (b *bucket) StateTypeName() string {
@@ -188,11 +188,11 @@ func (u *unixTime) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(1, &u.nano)
}
-func (i *IPTables) StateTypeName() string {
+func (it *IPTables) StateTypeName() string {
return "pkg/tcpip/stack.IPTables"
}
-func (i *IPTables) StateFields() []string {
+func (it *IPTables) StateFields() []string {
return []string{
"mu",
"v4Tables",
@@ -204,33 +204,33 @@ func (i *IPTables) StateFields() []string {
}
}
-func (i *IPTables) StateSave(stateSinkObject state.Sink) {
- i.beforeSave()
- stateSinkObject.Save(0, &i.mu)
- stateSinkObject.Save(1, &i.v4Tables)
- stateSinkObject.Save(2, &i.v6Tables)
- stateSinkObject.Save(3, &i.modified)
- stateSinkObject.Save(4, &i.priorities)
- stateSinkObject.Save(5, &i.connections)
- stateSinkObject.Save(6, &i.reaperDone)
+func (it *IPTables) StateSave(stateSinkObject state.Sink) {
+ it.beforeSave()
+ stateSinkObject.Save(0, &it.mu)
+ stateSinkObject.Save(1, &it.v4Tables)
+ stateSinkObject.Save(2, &it.v6Tables)
+ stateSinkObject.Save(3, &it.modified)
+ stateSinkObject.Save(4, &it.priorities)
+ stateSinkObject.Save(5, &it.connections)
+ stateSinkObject.Save(6, &it.reaperDone)
}
-func (i *IPTables) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &i.mu)
- stateSourceObject.Load(1, &i.v4Tables)
- stateSourceObject.Load(2, &i.v6Tables)
- stateSourceObject.Load(3, &i.modified)
- stateSourceObject.Load(4, &i.priorities)
- stateSourceObject.Load(5, &i.connections)
- stateSourceObject.Load(6, &i.reaperDone)
- stateSourceObject.AfterLoad(i.afterLoad)
+func (it *IPTables) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &it.mu)
+ stateSourceObject.Load(1, &it.v4Tables)
+ stateSourceObject.Load(2, &it.v6Tables)
+ stateSourceObject.Load(3, &it.modified)
+ stateSourceObject.Load(4, &it.priorities)
+ stateSourceObject.Load(5, &it.connections)
+ stateSourceObject.Load(6, &it.reaperDone)
+ stateSourceObject.AfterLoad(it.afterLoad)
}
-func (t *Table) StateTypeName() string {
+func (table *Table) StateTypeName() string {
return "pkg/tcpip/stack.Table"
}
-func (t *Table) StateFields() []string {
+func (table *Table) StateFields() []string {
return []string{
"Rules",
"BuiltinChains",
@@ -238,21 +238,21 @@ func (t *Table) StateFields() []string {
}
}
-func (t *Table) beforeSave() {}
+func (table *Table) beforeSave() {}
-func (t *Table) StateSave(stateSinkObject state.Sink) {
- t.beforeSave()
- stateSinkObject.Save(0, &t.Rules)
- stateSinkObject.Save(1, &t.BuiltinChains)
- stateSinkObject.Save(2, &t.Underflows)
+func (table *Table) StateSave(stateSinkObject state.Sink) {
+ table.beforeSave()
+ stateSinkObject.Save(0, &table.Rules)
+ stateSinkObject.Save(1, &table.BuiltinChains)
+ stateSinkObject.Save(2, &table.Underflows)
}
-func (t *Table) afterLoad() {}
+func (table *Table) afterLoad() {}
-func (t *Table) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &t.Rules)
- stateSourceObject.Load(1, &t.BuiltinChains)
- stateSourceObject.Load(2, &t.Underflows)
+func (table *Table) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &table.Rules)
+ stateSourceObject.Load(1, &table.BuiltinChains)
+ stateSourceObject.Load(2, &table.Underflows)
}
func (r *Rule) StateTypeName() string {
@@ -284,11 +284,11 @@ func (r *Rule) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(2, &r.Target)
}
-func (i *IPHeaderFilter) StateTypeName() string {
+func (fl *IPHeaderFilter) StateTypeName() string {
return "pkg/tcpip/stack.IPHeaderFilter"
}
-func (i *IPHeaderFilter) StateFields() []string {
+func (fl *IPHeaderFilter) StateFields() []string {
return []string{
"Protocol",
"CheckProtocol",
@@ -304,37 +304,37 @@ func (i *IPHeaderFilter) StateFields() []string {
}
}
-func (i *IPHeaderFilter) beforeSave() {}
+func (fl *IPHeaderFilter) beforeSave() {}
-func (i *IPHeaderFilter) StateSave(stateSinkObject state.Sink) {
- i.beforeSave()
- stateSinkObject.Save(0, &i.Protocol)
- stateSinkObject.Save(1, &i.CheckProtocol)
- stateSinkObject.Save(2, &i.Dst)
- stateSinkObject.Save(3, &i.DstMask)
- stateSinkObject.Save(4, &i.DstInvert)
- stateSinkObject.Save(5, &i.Src)
- stateSinkObject.Save(6, &i.SrcMask)
- stateSinkObject.Save(7, &i.SrcInvert)
- stateSinkObject.Save(8, &i.OutputInterface)
- stateSinkObject.Save(9, &i.OutputInterfaceMask)
- stateSinkObject.Save(10, &i.OutputInterfaceInvert)
+func (fl *IPHeaderFilter) StateSave(stateSinkObject state.Sink) {
+ fl.beforeSave()
+ stateSinkObject.Save(0, &fl.Protocol)
+ stateSinkObject.Save(1, &fl.CheckProtocol)
+ stateSinkObject.Save(2, &fl.Dst)
+ stateSinkObject.Save(3, &fl.DstMask)
+ stateSinkObject.Save(4, &fl.DstInvert)
+ stateSinkObject.Save(5, &fl.Src)
+ stateSinkObject.Save(6, &fl.SrcMask)
+ stateSinkObject.Save(7, &fl.SrcInvert)
+ stateSinkObject.Save(8, &fl.OutputInterface)
+ stateSinkObject.Save(9, &fl.OutputInterfaceMask)
+ stateSinkObject.Save(10, &fl.OutputInterfaceInvert)
}
-func (i *IPHeaderFilter) afterLoad() {}
+func (fl *IPHeaderFilter) afterLoad() {}
-func (i *IPHeaderFilter) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &i.Protocol)
- stateSourceObject.Load(1, &i.CheckProtocol)
- stateSourceObject.Load(2, &i.Dst)
- stateSourceObject.Load(3, &i.DstMask)
- stateSourceObject.Load(4, &i.DstInvert)
- stateSourceObject.Load(5, &i.Src)
- stateSourceObject.Load(6, &i.SrcMask)
- stateSourceObject.Load(7, &i.SrcInvert)
- stateSourceObject.Load(8, &i.OutputInterface)
- stateSourceObject.Load(9, &i.OutputInterfaceMask)
- stateSourceObject.Load(10, &i.OutputInterfaceInvert)
+func (fl *IPHeaderFilter) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &fl.Protocol)
+ stateSourceObject.Load(1, &fl.CheckProtocol)
+ stateSourceObject.Load(2, &fl.Dst)
+ stateSourceObject.Load(3, &fl.DstMask)
+ stateSourceObject.Load(4, &fl.DstInvert)
+ stateSourceObject.Load(5, &fl.Src)
+ stateSourceObject.Load(6, &fl.SrcMask)
+ stateSourceObject.Load(7, &fl.SrcInvert)
+ stateSourceObject.Load(8, &fl.OutputInterface)
+ stateSourceObject.Load(9, &fl.OutputInterfaceMask)
+ stateSourceObject.Load(10, &fl.OutputInterfaceInvert)
}
func (l *linkAddrEntryList) StateTypeName() string {
@@ -363,134 +363,134 @@ func (l *linkAddrEntryList) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(1, &l.tail)
}
-func (l *linkAddrEntryEntry) StateTypeName() string {
+func (e *linkAddrEntryEntry) StateTypeName() string {
return "pkg/tcpip/stack.linkAddrEntryEntry"
}
-func (l *linkAddrEntryEntry) StateFields() []string {
+func (e *linkAddrEntryEntry) StateFields() []string {
return []string{
"next",
"prev",
}
}
-func (l *linkAddrEntryEntry) beforeSave() {}
+func (e *linkAddrEntryEntry) beforeSave() {}
-func (l *linkAddrEntryEntry) StateSave(stateSinkObject state.Sink) {
- l.beforeSave()
- stateSinkObject.Save(0, &l.next)
- stateSinkObject.Save(1, &l.prev)
+func (e *linkAddrEntryEntry) StateSave(stateSinkObject state.Sink) {
+ e.beforeSave()
+ stateSinkObject.Save(0, &e.next)
+ stateSinkObject.Save(1, &e.prev)
}
-func (l *linkAddrEntryEntry) afterLoad() {}
+func (e *linkAddrEntryEntry) afterLoad() {}
-func (l *linkAddrEntryEntry) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &l.next)
- stateSourceObject.Load(1, &l.prev)
+func (e *linkAddrEntryEntry) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &e.next)
+ stateSourceObject.Load(1, &e.prev)
}
-func (n *neighborEntryList) StateTypeName() string {
+func (l *neighborEntryList) StateTypeName() string {
return "pkg/tcpip/stack.neighborEntryList"
}
-func (n *neighborEntryList) StateFields() []string {
+func (l *neighborEntryList) StateFields() []string {
return []string{
"head",
"tail",
}
}
-func (n *neighborEntryList) beforeSave() {}
+func (l *neighborEntryList) beforeSave() {}
-func (n *neighborEntryList) StateSave(stateSinkObject state.Sink) {
- n.beforeSave()
- stateSinkObject.Save(0, &n.head)
- stateSinkObject.Save(1, &n.tail)
+func (l *neighborEntryList) StateSave(stateSinkObject state.Sink) {
+ l.beforeSave()
+ stateSinkObject.Save(0, &l.head)
+ stateSinkObject.Save(1, &l.tail)
}
-func (n *neighborEntryList) afterLoad() {}
+func (l *neighborEntryList) afterLoad() {}
-func (n *neighborEntryList) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &n.head)
- stateSourceObject.Load(1, &n.tail)
+func (l *neighborEntryList) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &l.head)
+ stateSourceObject.Load(1, &l.tail)
}
-func (n *neighborEntryEntry) StateTypeName() string {
+func (e *neighborEntryEntry) StateTypeName() string {
return "pkg/tcpip/stack.neighborEntryEntry"
}
-func (n *neighborEntryEntry) StateFields() []string {
+func (e *neighborEntryEntry) StateFields() []string {
return []string{
"next",
"prev",
}
}
-func (n *neighborEntryEntry) beforeSave() {}
+func (e *neighborEntryEntry) beforeSave() {}
-func (n *neighborEntryEntry) StateSave(stateSinkObject state.Sink) {
- n.beforeSave()
- stateSinkObject.Save(0, &n.next)
- stateSinkObject.Save(1, &n.prev)
+func (e *neighborEntryEntry) StateSave(stateSinkObject state.Sink) {
+ e.beforeSave()
+ stateSinkObject.Save(0, &e.next)
+ stateSinkObject.Save(1, &e.prev)
}
-func (n *neighborEntryEntry) afterLoad() {}
+func (e *neighborEntryEntry) afterLoad() {}
-func (n *neighborEntryEntry) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &n.next)
- stateSourceObject.Load(1, &n.prev)
+func (e *neighborEntryEntry) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &e.next)
+ stateSourceObject.Load(1, &e.prev)
}
-func (p *PacketBufferList) StateTypeName() string {
+func (l *PacketBufferList) StateTypeName() string {
return "pkg/tcpip/stack.PacketBufferList"
}
-func (p *PacketBufferList) StateFields() []string {
+func (l *PacketBufferList) StateFields() []string {
return []string{
"head",
"tail",
}
}
-func (p *PacketBufferList) beforeSave() {}
+func (l *PacketBufferList) beforeSave() {}
-func (p *PacketBufferList) StateSave(stateSinkObject state.Sink) {
- p.beforeSave()
- stateSinkObject.Save(0, &p.head)
- stateSinkObject.Save(1, &p.tail)
+func (l *PacketBufferList) StateSave(stateSinkObject state.Sink) {
+ l.beforeSave()
+ stateSinkObject.Save(0, &l.head)
+ stateSinkObject.Save(1, &l.tail)
}
-func (p *PacketBufferList) afterLoad() {}
+func (l *PacketBufferList) afterLoad() {}
-func (p *PacketBufferList) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &p.head)
- stateSourceObject.Load(1, &p.tail)
+func (l *PacketBufferList) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &l.head)
+ stateSourceObject.Load(1, &l.tail)
}
-func (p *PacketBufferEntry) StateTypeName() string {
+func (e *PacketBufferEntry) StateTypeName() string {
return "pkg/tcpip/stack.PacketBufferEntry"
}
-func (p *PacketBufferEntry) StateFields() []string {
+func (e *PacketBufferEntry) StateFields() []string {
return []string{
"next",
"prev",
}
}
-func (p *PacketBufferEntry) beforeSave() {}
+func (e *PacketBufferEntry) beforeSave() {}
-func (p *PacketBufferEntry) StateSave(stateSinkObject state.Sink) {
- p.beforeSave()
- stateSinkObject.Save(0, &p.next)
- stateSinkObject.Save(1, &p.prev)
+func (e *PacketBufferEntry) StateSave(stateSinkObject state.Sink) {
+ e.beforeSave()
+ stateSinkObject.Save(0, &e.next)
+ stateSinkObject.Save(1, &e.prev)
}
-func (p *PacketBufferEntry) afterLoad() {}
+func (e *PacketBufferEntry) afterLoad() {}
-func (p *PacketBufferEntry) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &p.next)
- stateSourceObject.Load(1, &p.prev)
+func (e *PacketBufferEntry) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &e.next)
+ stateSourceObject.Load(1, &e.prev)
}
func (t *TransportEndpointID) StateTypeName() string {
@@ -609,11 +609,11 @@ func (t *TransportEndpointInfo) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(5, &t.RegisterNICID)
}
-func (m *multiPortEndpoint) StateTypeName() string {
+func (ep *multiPortEndpoint) StateTypeName() string {
return "pkg/tcpip/stack.multiPortEndpoint"
}
-func (m *multiPortEndpoint) StateFields() []string {
+func (ep *multiPortEndpoint) StateFields() []string {
return []string{
"demux",
"netProto",
@@ -623,77 +623,77 @@ func (m *multiPortEndpoint) StateFields() []string {
}
}
-func (m *multiPortEndpoint) beforeSave() {}
+func (ep *multiPortEndpoint) beforeSave() {}
-func (m *multiPortEndpoint) StateSave(stateSinkObject state.Sink) {
- m.beforeSave()
- stateSinkObject.Save(0, &m.demux)
- stateSinkObject.Save(1, &m.netProto)
- stateSinkObject.Save(2, &m.transProto)
- stateSinkObject.Save(3, &m.endpoints)
- stateSinkObject.Save(4, &m.flags)
+func (ep *multiPortEndpoint) StateSave(stateSinkObject state.Sink) {
+ ep.beforeSave()
+ stateSinkObject.Save(0, &ep.demux)
+ stateSinkObject.Save(1, &ep.netProto)
+ stateSinkObject.Save(2, &ep.transProto)
+ stateSinkObject.Save(3, &ep.endpoints)
+ stateSinkObject.Save(4, &ep.flags)
}
-func (m *multiPortEndpoint) afterLoad() {}
+func (ep *multiPortEndpoint) afterLoad() {}
-func (m *multiPortEndpoint) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &m.demux)
- stateSourceObject.Load(1, &m.netProto)
- stateSourceObject.Load(2, &m.transProto)
- stateSourceObject.Load(3, &m.endpoints)
- stateSourceObject.Load(4, &m.flags)
+func (ep *multiPortEndpoint) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &ep.demux)
+ stateSourceObject.Load(1, &ep.netProto)
+ stateSourceObject.Load(2, &ep.transProto)
+ stateSourceObject.Load(3, &ep.endpoints)
+ stateSourceObject.Load(4, &ep.flags)
}
-func (t *tupleList) StateTypeName() string {
+func (l *tupleList) StateTypeName() string {
return "pkg/tcpip/stack.tupleList"
}
-func (t *tupleList) StateFields() []string {
+func (l *tupleList) StateFields() []string {
return []string{
"head",
"tail",
}
}
-func (t *tupleList) beforeSave() {}
+func (l *tupleList) beforeSave() {}
-func (t *tupleList) StateSave(stateSinkObject state.Sink) {
- t.beforeSave()
- stateSinkObject.Save(0, &t.head)
- stateSinkObject.Save(1, &t.tail)
+func (l *tupleList) StateSave(stateSinkObject state.Sink) {
+ l.beforeSave()
+ stateSinkObject.Save(0, &l.head)
+ stateSinkObject.Save(1, &l.tail)
}
-func (t *tupleList) afterLoad() {}
+func (l *tupleList) afterLoad() {}
-func (t *tupleList) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &t.head)
- stateSourceObject.Load(1, &t.tail)
+func (l *tupleList) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &l.head)
+ stateSourceObject.Load(1, &l.tail)
}
-func (t *tupleEntry) StateTypeName() string {
+func (e *tupleEntry) StateTypeName() string {
return "pkg/tcpip/stack.tupleEntry"
}
-func (t *tupleEntry) StateFields() []string {
+func (e *tupleEntry) StateFields() []string {
return []string{
"next",
"prev",
}
}
-func (t *tupleEntry) beforeSave() {}
+func (e *tupleEntry) beforeSave() {}
-func (t *tupleEntry) StateSave(stateSinkObject state.Sink) {
- t.beforeSave()
- stateSinkObject.Save(0, &t.next)
- stateSinkObject.Save(1, &t.prev)
+func (e *tupleEntry) StateSave(stateSinkObject state.Sink) {
+ e.beforeSave()
+ stateSinkObject.Save(0, &e.next)
+ stateSinkObject.Save(1, &e.prev)
}
-func (t *tupleEntry) afterLoad() {}
+func (e *tupleEntry) afterLoad() {}
-func (t *tupleEntry) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &t.next)
- stateSourceObject.Load(1, &t.prev)
+func (e *tupleEntry) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &e.next)
+ stateSourceObject.Load(1, &e.prev)
}
func init() {
diff --git a/pkg/tcpip/transport/icmp/icmp_state_autogen.go b/pkg/tcpip/transport/icmp/icmp_state_autogen.go
index d88c817e4..2acf00a72 100644
--- a/pkg/tcpip/transport/icmp/icmp_state_autogen.go
+++ b/pkg/tcpip/transport/icmp/icmp_state_autogen.go
@@ -7,11 +7,11 @@ import (
"gvisor.dev/gvisor/pkg/tcpip/buffer"
)
-func (i *icmpPacket) StateTypeName() string {
+func (p *icmpPacket) StateTypeName() string {
return "pkg/tcpip/transport/icmp.icmpPacket"
}
-func (i *icmpPacket) StateFields() []string {
+func (p *icmpPacket) StateFields() []string {
return []string{
"icmpPacketEntry",
"senderAddress",
@@ -20,24 +20,24 @@ func (i *icmpPacket) StateFields() []string {
}
}
-func (i *icmpPacket) beforeSave() {}
+func (p *icmpPacket) beforeSave() {}
-func (i *icmpPacket) StateSave(stateSinkObject state.Sink) {
- i.beforeSave()
- var dataValue buffer.VectorisedView = i.saveData()
+func (p *icmpPacket) StateSave(stateSinkObject state.Sink) {
+ p.beforeSave()
+ var dataValue buffer.VectorisedView = p.saveData()
stateSinkObject.SaveValue(2, dataValue)
- stateSinkObject.Save(0, &i.icmpPacketEntry)
- stateSinkObject.Save(1, &i.senderAddress)
- stateSinkObject.Save(3, &i.timestamp)
+ stateSinkObject.Save(0, &p.icmpPacketEntry)
+ stateSinkObject.Save(1, &p.senderAddress)
+ stateSinkObject.Save(3, &p.timestamp)
}
-func (i *icmpPacket) afterLoad() {}
+func (p *icmpPacket) afterLoad() {}
-func (i *icmpPacket) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &i.icmpPacketEntry)
- stateSourceObject.Load(1, &i.senderAddress)
- stateSourceObject.Load(3, &i.timestamp)
- stateSourceObject.LoadValue(2, new(buffer.VectorisedView), func(y interface{}) { i.loadData(y.(buffer.VectorisedView)) })
+func (p *icmpPacket) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &p.icmpPacketEntry)
+ stateSourceObject.Load(1, &p.senderAddress)
+ stateSourceObject.Load(3, &p.timestamp)
+ stateSourceObject.LoadValue(2, new(buffer.VectorisedView), func(y interface{}) { p.loadData(y.(buffer.VectorisedView)) })
}
func (e *endpoint) StateTypeName() string {
@@ -100,56 +100,56 @@ func (e *endpoint) StateLoad(stateSourceObject state.Source) {
stateSourceObject.AfterLoad(e.afterLoad)
}
-func (i *icmpPacketList) StateTypeName() string {
+func (l *icmpPacketList) StateTypeName() string {
return "pkg/tcpip/transport/icmp.icmpPacketList"
}
-func (i *icmpPacketList) StateFields() []string {
+func (l *icmpPacketList) StateFields() []string {
return []string{
"head",
"tail",
}
}
-func (i *icmpPacketList) beforeSave() {}
+func (l *icmpPacketList) beforeSave() {}
-func (i *icmpPacketList) StateSave(stateSinkObject state.Sink) {
- i.beforeSave()
- stateSinkObject.Save(0, &i.head)
- stateSinkObject.Save(1, &i.tail)
+func (l *icmpPacketList) StateSave(stateSinkObject state.Sink) {
+ l.beforeSave()
+ stateSinkObject.Save(0, &l.head)
+ stateSinkObject.Save(1, &l.tail)
}
-func (i *icmpPacketList) afterLoad() {}
+func (l *icmpPacketList) afterLoad() {}
-func (i *icmpPacketList) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &i.head)
- stateSourceObject.Load(1, &i.tail)
+func (l *icmpPacketList) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &l.head)
+ stateSourceObject.Load(1, &l.tail)
}
-func (i *icmpPacketEntry) StateTypeName() string {
+func (e *icmpPacketEntry) StateTypeName() string {
return "pkg/tcpip/transport/icmp.icmpPacketEntry"
}
-func (i *icmpPacketEntry) StateFields() []string {
+func (e *icmpPacketEntry) StateFields() []string {
return []string{
"next",
"prev",
}
}
-func (i *icmpPacketEntry) beforeSave() {}
+func (e *icmpPacketEntry) beforeSave() {}
-func (i *icmpPacketEntry) StateSave(stateSinkObject state.Sink) {
- i.beforeSave()
- stateSinkObject.Save(0, &i.next)
- stateSinkObject.Save(1, &i.prev)
+func (e *icmpPacketEntry) StateSave(stateSinkObject state.Sink) {
+ e.beforeSave()
+ stateSinkObject.Save(0, &e.next)
+ stateSinkObject.Save(1, &e.prev)
}
-func (i *icmpPacketEntry) afterLoad() {}
+func (e *icmpPacketEntry) afterLoad() {}
-func (i *icmpPacketEntry) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &i.next)
- stateSourceObject.Load(1, &i.prev)
+func (e *icmpPacketEntry) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &e.next)
+ stateSourceObject.Load(1, &e.prev)
}
func init() {
diff --git a/pkg/tcpip/transport/packet/packet_state_autogen.go b/pkg/tcpip/transport/packet/packet_state_autogen.go
index 261bf1448..66b6a4cc2 100644
--- a/pkg/tcpip/transport/packet/packet_state_autogen.go
+++ b/pkg/tcpip/transport/packet/packet_state_autogen.go
@@ -43,11 +43,11 @@ func (p *packet) StateLoad(stateSourceObject state.Source) {
stateSourceObject.LoadValue(1, new(buffer.VectorisedView), func(y interface{}) { p.loadData(y.(buffer.VectorisedView)) })
}
-func (e *endpoint) StateTypeName() string {
+func (ep *endpoint) StateTypeName() string {
return "pkg/tcpip/transport/packet.endpoint"
}
-func (e *endpoint) StateFields() []string {
+func (ep *endpoint) StateFields() []string {
return []string{
"TransportEndpointInfo",
"netProto",
@@ -67,96 +67,96 @@ func (e *endpoint) StateFields() []string {
}
}
-func (e *endpoint) StateSave(stateSinkObject state.Sink) {
- e.beforeSave()
- var rcvBufSizeMaxValue int = e.saveRcvBufSizeMax()
+func (ep *endpoint) StateSave(stateSinkObject state.Sink) {
+ ep.beforeSave()
+ var rcvBufSizeMaxValue int = ep.saveRcvBufSizeMax()
stateSinkObject.SaveValue(5, rcvBufSizeMaxValue)
- var lastErrorValue string = e.saveLastError()
+ var lastErrorValue string = ep.saveLastError()
stateSinkObject.SaveValue(14, lastErrorValue)
- stateSinkObject.Save(0, &e.TransportEndpointInfo)
- stateSinkObject.Save(1, &e.netProto)
- stateSinkObject.Save(2, &e.waiterQueue)
- stateSinkObject.Save(3, &e.cooked)
- stateSinkObject.Save(4, &e.rcvList)
- stateSinkObject.Save(6, &e.rcvBufSize)
- stateSinkObject.Save(7, &e.rcvClosed)
- stateSinkObject.Save(8, &e.sndBufSize)
- stateSinkObject.Save(9, &e.sndBufSizeMax)
- stateSinkObject.Save(10, &e.closed)
- stateSinkObject.Save(11, &e.bound)
- stateSinkObject.Save(12, &e.boundNIC)
- stateSinkObject.Save(13, &e.linger)
-}
-
-func (e *endpoint) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &e.TransportEndpointInfo)
- stateSourceObject.Load(1, &e.netProto)
- stateSourceObject.Load(2, &e.waiterQueue)
- stateSourceObject.Load(3, &e.cooked)
- stateSourceObject.Load(4, &e.rcvList)
- stateSourceObject.Load(6, &e.rcvBufSize)
- stateSourceObject.Load(7, &e.rcvClosed)
- stateSourceObject.Load(8, &e.sndBufSize)
- stateSourceObject.Load(9, &e.sndBufSizeMax)
- stateSourceObject.Load(10, &e.closed)
- stateSourceObject.Load(11, &e.bound)
- stateSourceObject.Load(12, &e.boundNIC)
- stateSourceObject.Load(13, &e.linger)
- stateSourceObject.LoadValue(5, new(int), func(y interface{}) { e.loadRcvBufSizeMax(y.(int)) })
- stateSourceObject.LoadValue(14, new(string), func(y interface{}) { e.loadLastError(y.(string)) })
- stateSourceObject.AfterLoad(e.afterLoad)
-}
-
-func (p *packetList) StateTypeName() string {
+ stateSinkObject.Save(0, &ep.TransportEndpointInfo)
+ stateSinkObject.Save(1, &ep.netProto)
+ stateSinkObject.Save(2, &ep.waiterQueue)
+ stateSinkObject.Save(3, &ep.cooked)
+ stateSinkObject.Save(4, &ep.rcvList)
+ stateSinkObject.Save(6, &ep.rcvBufSize)
+ stateSinkObject.Save(7, &ep.rcvClosed)
+ stateSinkObject.Save(8, &ep.sndBufSize)
+ stateSinkObject.Save(9, &ep.sndBufSizeMax)
+ stateSinkObject.Save(10, &ep.closed)
+ stateSinkObject.Save(11, &ep.bound)
+ stateSinkObject.Save(12, &ep.boundNIC)
+ stateSinkObject.Save(13, &ep.linger)
+}
+
+func (ep *endpoint) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &ep.TransportEndpointInfo)
+ stateSourceObject.Load(1, &ep.netProto)
+ stateSourceObject.Load(2, &ep.waiterQueue)
+ stateSourceObject.Load(3, &ep.cooked)
+ stateSourceObject.Load(4, &ep.rcvList)
+ stateSourceObject.Load(6, &ep.rcvBufSize)
+ stateSourceObject.Load(7, &ep.rcvClosed)
+ stateSourceObject.Load(8, &ep.sndBufSize)
+ stateSourceObject.Load(9, &ep.sndBufSizeMax)
+ stateSourceObject.Load(10, &ep.closed)
+ stateSourceObject.Load(11, &ep.bound)
+ stateSourceObject.Load(12, &ep.boundNIC)
+ stateSourceObject.Load(13, &ep.linger)
+ stateSourceObject.LoadValue(5, new(int), func(y interface{}) { ep.loadRcvBufSizeMax(y.(int)) })
+ stateSourceObject.LoadValue(14, new(string), func(y interface{}) { ep.loadLastError(y.(string)) })
+ stateSourceObject.AfterLoad(ep.afterLoad)
+}
+
+func (l *packetList) StateTypeName() string {
return "pkg/tcpip/transport/packet.packetList"
}
-func (p *packetList) StateFields() []string {
+func (l *packetList) StateFields() []string {
return []string{
"head",
"tail",
}
}
-func (p *packetList) beforeSave() {}
+func (l *packetList) beforeSave() {}
-func (p *packetList) StateSave(stateSinkObject state.Sink) {
- p.beforeSave()
- stateSinkObject.Save(0, &p.head)
- stateSinkObject.Save(1, &p.tail)
+func (l *packetList) StateSave(stateSinkObject state.Sink) {
+ l.beforeSave()
+ stateSinkObject.Save(0, &l.head)
+ stateSinkObject.Save(1, &l.tail)
}
-func (p *packetList) afterLoad() {}
+func (l *packetList) afterLoad() {}
-func (p *packetList) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &p.head)
- stateSourceObject.Load(1, &p.tail)
+func (l *packetList) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &l.head)
+ stateSourceObject.Load(1, &l.tail)
}
-func (p *packetEntry) StateTypeName() string {
+func (e *packetEntry) StateTypeName() string {
return "pkg/tcpip/transport/packet.packetEntry"
}
-func (p *packetEntry) StateFields() []string {
+func (e *packetEntry) StateFields() []string {
return []string{
"next",
"prev",
}
}
-func (p *packetEntry) beforeSave() {}
+func (e *packetEntry) beforeSave() {}
-func (p *packetEntry) StateSave(stateSinkObject state.Sink) {
- p.beforeSave()
- stateSinkObject.Save(0, &p.next)
- stateSinkObject.Save(1, &p.prev)
+func (e *packetEntry) StateSave(stateSinkObject state.Sink) {
+ e.beforeSave()
+ stateSinkObject.Save(0, &e.next)
+ stateSinkObject.Save(1, &e.prev)
}
-func (p *packetEntry) afterLoad() {}
+func (e *packetEntry) afterLoad() {}
-func (p *packetEntry) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &p.next)
- stateSourceObject.Load(1, &p.prev)
+func (e *packetEntry) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &e.next)
+ stateSourceObject.Load(1, &e.prev)
}
func init() {
diff --git a/pkg/tcpip/transport/raw/raw_state_autogen.go b/pkg/tcpip/transport/raw/raw_state_autogen.go
index 6efb1f07e..ae59d31d6 100644
--- a/pkg/tcpip/transport/raw/raw_state_autogen.go
+++ b/pkg/tcpip/transport/raw/raw_state_autogen.go
@@ -7,11 +7,11 @@ import (
"gvisor.dev/gvisor/pkg/tcpip/buffer"
)
-func (r *rawPacket) StateTypeName() string {
+func (p *rawPacket) StateTypeName() string {
return "pkg/tcpip/transport/raw.rawPacket"
}
-func (r *rawPacket) StateFields() []string {
+func (p *rawPacket) StateFields() []string {
return []string{
"rawPacketEntry",
"data",
@@ -20,31 +20,31 @@ func (r *rawPacket) StateFields() []string {
}
}
-func (r *rawPacket) beforeSave() {}
+func (p *rawPacket) beforeSave() {}
-func (r *rawPacket) StateSave(stateSinkObject state.Sink) {
- r.beforeSave()
- var dataValue buffer.VectorisedView = r.saveData()
+func (p *rawPacket) StateSave(stateSinkObject state.Sink) {
+ p.beforeSave()
+ var dataValue buffer.VectorisedView = p.saveData()
stateSinkObject.SaveValue(1, dataValue)
- stateSinkObject.Save(0, &r.rawPacketEntry)
- stateSinkObject.Save(2, &r.timestampNS)
- stateSinkObject.Save(3, &r.senderAddr)
+ stateSinkObject.Save(0, &p.rawPacketEntry)
+ stateSinkObject.Save(2, &p.timestampNS)
+ stateSinkObject.Save(3, &p.senderAddr)
}
-func (r *rawPacket) afterLoad() {}
+func (p *rawPacket) afterLoad() {}
-func (r *rawPacket) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &r.rawPacketEntry)
- stateSourceObject.Load(2, &r.timestampNS)
- stateSourceObject.Load(3, &r.senderAddr)
- stateSourceObject.LoadValue(1, new(buffer.VectorisedView), func(y interface{}) { r.loadData(y.(buffer.VectorisedView)) })
+func (p *rawPacket) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &p.rawPacketEntry)
+ stateSourceObject.Load(2, &p.timestampNS)
+ stateSourceObject.Load(3, &p.senderAddr)
+ stateSourceObject.LoadValue(1, new(buffer.VectorisedView), func(y interface{}) { p.loadData(y.(buffer.VectorisedView)) })
}
-func (e *endpoint) StateTypeName() string {
+func (ep *endpoint) StateTypeName() string {
return "pkg/tcpip/transport/raw.endpoint"
}
-func (e *endpoint) StateFields() []string {
+func (ep *endpoint) StateFields() []string {
return []string{
"TransportEndpointInfo",
"waiterQueue",
@@ -64,95 +64,95 @@ func (e *endpoint) StateFields() []string {
}
}
-func (e *endpoint) StateSave(stateSinkObject state.Sink) {
- e.beforeSave()
- var rcvBufSizeMaxValue int = e.saveRcvBufSizeMax()
+func (ep *endpoint) StateSave(stateSinkObject state.Sink) {
+ ep.beforeSave()
+ var rcvBufSizeMaxValue int = ep.saveRcvBufSizeMax()
stateSinkObject.SaveValue(6, rcvBufSizeMaxValue)
- stateSinkObject.Save(0, &e.TransportEndpointInfo)
- stateSinkObject.Save(1, &e.waiterQueue)
- stateSinkObject.Save(2, &e.associated)
- stateSinkObject.Save(3, &e.hdrIncluded)
- stateSinkObject.Save(4, &e.rcvList)
- stateSinkObject.Save(5, &e.rcvBufSize)
- stateSinkObject.Save(7, &e.rcvClosed)
- stateSinkObject.Save(8, &e.sndBufSize)
- stateSinkObject.Save(9, &e.sndBufSizeMax)
- stateSinkObject.Save(10, &e.closed)
- stateSinkObject.Save(11, &e.connected)
- stateSinkObject.Save(12, &e.bound)
- stateSinkObject.Save(13, &e.linger)
- stateSinkObject.Save(14, &e.owner)
-}
-
-func (e *endpoint) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &e.TransportEndpointInfo)
- stateSourceObject.Load(1, &e.waiterQueue)
- stateSourceObject.Load(2, &e.associated)
- stateSourceObject.Load(3, &e.hdrIncluded)
- stateSourceObject.Load(4, &e.rcvList)
- stateSourceObject.Load(5, &e.rcvBufSize)
- stateSourceObject.Load(7, &e.rcvClosed)
- stateSourceObject.Load(8, &e.sndBufSize)
- stateSourceObject.Load(9, &e.sndBufSizeMax)
- stateSourceObject.Load(10, &e.closed)
- stateSourceObject.Load(11, &e.connected)
- stateSourceObject.Load(12, &e.bound)
- stateSourceObject.Load(13, &e.linger)
- stateSourceObject.Load(14, &e.owner)
- stateSourceObject.LoadValue(6, new(int), func(y interface{}) { e.loadRcvBufSizeMax(y.(int)) })
- stateSourceObject.AfterLoad(e.afterLoad)
-}
-
-func (r *rawPacketList) StateTypeName() string {
+ stateSinkObject.Save(0, &ep.TransportEndpointInfo)
+ stateSinkObject.Save(1, &ep.waiterQueue)
+ stateSinkObject.Save(2, &ep.associated)
+ stateSinkObject.Save(3, &ep.hdrIncluded)
+ stateSinkObject.Save(4, &ep.rcvList)
+ stateSinkObject.Save(5, &ep.rcvBufSize)
+ stateSinkObject.Save(7, &ep.rcvClosed)
+ stateSinkObject.Save(8, &ep.sndBufSize)
+ stateSinkObject.Save(9, &ep.sndBufSizeMax)
+ stateSinkObject.Save(10, &ep.closed)
+ stateSinkObject.Save(11, &ep.connected)
+ stateSinkObject.Save(12, &ep.bound)
+ stateSinkObject.Save(13, &ep.linger)
+ stateSinkObject.Save(14, &ep.owner)
+}
+
+func (ep *endpoint) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &ep.TransportEndpointInfo)
+ stateSourceObject.Load(1, &ep.waiterQueue)
+ stateSourceObject.Load(2, &ep.associated)
+ stateSourceObject.Load(3, &ep.hdrIncluded)
+ stateSourceObject.Load(4, &ep.rcvList)
+ stateSourceObject.Load(5, &ep.rcvBufSize)
+ stateSourceObject.Load(7, &ep.rcvClosed)
+ stateSourceObject.Load(8, &ep.sndBufSize)
+ stateSourceObject.Load(9, &ep.sndBufSizeMax)
+ stateSourceObject.Load(10, &ep.closed)
+ stateSourceObject.Load(11, &ep.connected)
+ stateSourceObject.Load(12, &ep.bound)
+ stateSourceObject.Load(13, &ep.linger)
+ stateSourceObject.Load(14, &ep.owner)
+ stateSourceObject.LoadValue(6, new(int), func(y interface{}) { ep.loadRcvBufSizeMax(y.(int)) })
+ stateSourceObject.AfterLoad(ep.afterLoad)
+}
+
+func (l *rawPacketList) StateTypeName() string {
return "pkg/tcpip/transport/raw.rawPacketList"
}
-func (r *rawPacketList) StateFields() []string {
+func (l *rawPacketList) StateFields() []string {
return []string{
"head",
"tail",
}
}
-func (r *rawPacketList) beforeSave() {}
+func (l *rawPacketList) beforeSave() {}
-func (r *rawPacketList) StateSave(stateSinkObject state.Sink) {
- r.beforeSave()
- stateSinkObject.Save(0, &r.head)
- stateSinkObject.Save(1, &r.tail)
+func (l *rawPacketList) StateSave(stateSinkObject state.Sink) {
+ l.beforeSave()
+ stateSinkObject.Save(0, &l.head)
+ stateSinkObject.Save(1, &l.tail)
}
-func (r *rawPacketList) afterLoad() {}
+func (l *rawPacketList) afterLoad() {}
-func (r *rawPacketList) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &r.head)
- stateSourceObject.Load(1, &r.tail)
+func (l *rawPacketList) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &l.head)
+ stateSourceObject.Load(1, &l.tail)
}
-func (r *rawPacketEntry) StateTypeName() string {
+func (e *rawPacketEntry) StateTypeName() string {
return "pkg/tcpip/transport/raw.rawPacketEntry"
}
-func (r *rawPacketEntry) StateFields() []string {
+func (e *rawPacketEntry) StateFields() []string {
return []string{
"next",
"prev",
}
}
-func (r *rawPacketEntry) beforeSave() {}
+func (e *rawPacketEntry) beforeSave() {}
-func (r *rawPacketEntry) StateSave(stateSinkObject state.Sink) {
- r.beforeSave()
- stateSinkObject.Save(0, &r.next)
- stateSinkObject.Save(1, &r.prev)
+func (e *rawPacketEntry) StateSave(stateSinkObject state.Sink) {
+ e.beforeSave()
+ stateSinkObject.Save(0, &e.next)
+ stateSinkObject.Save(1, &e.prev)
}
-func (r *rawPacketEntry) afterLoad() {}
+func (e *rawPacketEntry) afterLoad() {}
-func (r *rawPacketEntry) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &r.next)
- stateSourceObject.Load(1, &r.prev)
+func (e *rawPacketEntry) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &e.next)
+ stateSourceObject.Load(1, &e.prev)
}
func init() {
diff --git a/pkg/tcpip/transport/tcp/tcp_state_autogen.go b/pkg/tcpip/transport/tcp/tcp_state_autogen.go
index 9893252ef..be50ff9ff 100644
--- a/pkg/tcpip/transport/tcp/tcp_state_autogen.go
+++ b/pkg/tcpip/transport/tcp/tcp_state_autogen.go
@@ -402,11 +402,11 @@ func (k *keepalive) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(4, &k.unacked)
}
-func (r *rackControl) StateTypeName() string {
+func (rc *rackControl) StateTypeName() string {
return "pkg/tcpip/transport/tcp.rackControl"
}
-func (r *rackControl) StateFields() []string {
+func (rc *rackControl) StateFields() []string {
return []string{
"xmitTime",
"endSequence",
@@ -416,26 +416,26 @@ func (r *rackControl) StateFields() []string {
}
}
-func (r *rackControl) beforeSave() {}
+func (rc *rackControl) beforeSave() {}
-func (r *rackControl) StateSave(stateSinkObject state.Sink) {
- r.beforeSave()
- var xmitTimeValue unixTime = r.saveXmitTime()
+func (rc *rackControl) StateSave(stateSinkObject state.Sink) {
+ rc.beforeSave()
+ var xmitTimeValue unixTime = rc.saveXmitTime()
stateSinkObject.SaveValue(0, xmitTimeValue)
- stateSinkObject.Save(1, &r.endSequence)
- stateSinkObject.Save(2, &r.fack)
- stateSinkObject.Save(3, &r.minRTT)
- stateSinkObject.Save(4, &r.rtt)
+ stateSinkObject.Save(1, &rc.endSequence)
+ stateSinkObject.Save(2, &rc.fack)
+ stateSinkObject.Save(3, &rc.minRTT)
+ stateSinkObject.Save(4, &rc.rtt)
}
-func (r *rackControl) afterLoad() {}
+func (rc *rackControl) afterLoad() {}
-func (r *rackControl) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(1, &r.endSequence)
- stateSourceObject.Load(2, &r.fack)
- stateSourceObject.Load(3, &r.minRTT)
- stateSourceObject.Load(4, &r.rtt)
- stateSourceObject.LoadValue(0, new(unixTime), func(y interface{}) { r.loadXmitTime(y.(unixTime)) })
+func (rc *rackControl) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(1, &rc.endSequence)
+ stateSourceObject.Load(2, &rc.fack)
+ stateSourceObject.Load(3, &rc.minRTT)
+ stateSourceObject.Load(4, &rc.rtt)
+ stateSourceObject.LoadValue(0, new(unixTime), func(y interface{}) { rc.loadXmitTime(y.(unixTime)) })
}
func (r *receiver) StateTypeName() string {
@@ -616,11 +616,11 @@ func (s *segment) StateLoad(stateSourceObject state.Source) {
stateSourceObject.LoadValue(17, new(unixTime), func(y interface{}) { s.loadXmitTime(y.(unixTime)) })
}
-func (s *segmentQueue) StateTypeName() string {
+func (q *segmentQueue) StateTypeName() string {
return "pkg/tcpip/transport/tcp.segmentQueue"
}
-func (s *segmentQueue) StateFields() []string {
+func (q *segmentQueue) StateFields() []string {
return []string{
"list",
"ep",
@@ -628,21 +628,21 @@ func (s *segmentQueue) StateFields() []string {
}
}
-func (s *segmentQueue) beforeSave() {}
+func (q *segmentQueue) beforeSave() {}
-func (s *segmentQueue) StateSave(stateSinkObject state.Sink) {
- s.beforeSave()
- stateSinkObject.Save(0, &s.list)
- stateSinkObject.Save(1, &s.ep)
- stateSinkObject.Save(2, &s.frozen)
+func (q *segmentQueue) StateSave(stateSinkObject state.Sink) {
+ q.beforeSave()
+ stateSinkObject.Save(0, &q.list)
+ stateSinkObject.Save(1, &q.ep)
+ stateSinkObject.Save(2, &q.frozen)
}
-func (s *segmentQueue) afterLoad() {}
+func (q *segmentQueue) afterLoad() {}
-func (s *segmentQueue) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.LoadWait(0, &s.list)
- stateSourceObject.Load(1, &s.ep)
- stateSourceObject.Load(2, &s.frozen)
+func (q *segmentQueue) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.LoadWait(0, &q.list)
+ stateSourceObject.Load(1, &q.ep)
+ stateSourceObject.Load(2, &q.frozen)
}
func (s *sender) StateTypeName() string {
@@ -847,30 +847,30 @@ func (u *unixTime) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(1, &u.nano)
}
-func (e *endpointList) StateTypeName() string {
+func (l *endpointList) StateTypeName() string {
return "pkg/tcpip/transport/tcp.endpointList"
}
-func (e *endpointList) StateFields() []string {
+func (l *endpointList) StateFields() []string {
return []string{
"head",
"tail",
}
}
-func (e *endpointList) beforeSave() {}
+func (l *endpointList) beforeSave() {}
-func (e *endpointList) StateSave(stateSinkObject state.Sink) {
- e.beforeSave()
- stateSinkObject.Save(0, &e.head)
- stateSinkObject.Save(1, &e.tail)
+func (l *endpointList) StateSave(stateSinkObject state.Sink) {
+ l.beforeSave()
+ stateSinkObject.Save(0, &l.head)
+ stateSinkObject.Save(1, &l.tail)
}
-func (e *endpointList) afterLoad() {}
+func (l *endpointList) afterLoad() {}
-func (e *endpointList) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &e.head)
- stateSourceObject.Load(1, &e.tail)
+func (l *endpointList) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &l.head)
+ stateSourceObject.Load(1, &l.tail)
}
func (e *endpointEntry) StateTypeName() string {
@@ -899,56 +899,56 @@ func (e *endpointEntry) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(1, &e.prev)
}
-func (s *segmentList) StateTypeName() string {
+func (l *segmentList) StateTypeName() string {
return "pkg/tcpip/transport/tcp.segmentList"
}
-func (s *segmentList) StateFields() []string {
+func (l *segmentList) StateFields() []string {
return []string{
"head",
"tail",
}
}
-func (s *segmentList) beforeSave() {}
+func (l *segmentList) beforeSave() {}
-func (s *segmentList) StateSave(stateSinkObject state.Sink) {
- s.beforeSave()
- stateSinkObject.Save(0, &s.head)
- stateSinkObject.Save(1, &s.tail)
+func (l *segmentList) StateSave(stateSinkObject state.Sink) {
+ l.beforeSave()
+ stateSinkObject.Save(0, &l.head)
+ stateSinkObject.Save(1, &l.tail)
}
-func (s *segmentList) afterLoad() {}
+func (l *segmentList) afterLoad() {}
-func (s *segmentList) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &s.head)
- stateSourceObject.Load(1, &s.tail)
+func (l *segmentList) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &l.head)
+ stateSourceObject.Load(1, &l.tail)
}
-func (s *segmentEntry) StateTypeName() string {
+func (e *segmentEntry) StateTypeName() string {
return "pkg/tcpip/transport/tcp.segmentEntry"
}
-func (s *segmentEntry) StateFields() []string {
+func (e *segmentEntry) StateFields() []string {
return []string{
"next",
"prev",
}
}
-func (s *segmentEntry) beforeSave() {}
+func (e *segmentEntry) beforeSave() {}
-func (s *segmentEntry) StateSave(stateSinkObject state.Sink) {
- s.beforeSave()
- stateSinkObject.Save(0, &s.next)
- stateSinkObject.Save(1, &s.prev)
+func (e *segmentEntry) StateSave(stateSinkObject state.Sink) {
+ e.beforeSave()
+ stateSinkObject.Save(0, &e.next)
+ stateSinkObject.Save(1, &e.prev)
}
-func (s *segmentEntry) afterLoad() {}
+func (e *segmentEntry) afterLoad() {}
-func (s *segmentEntry) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &s.next)
- stateSourceObject.Load(1, &s.prev)
+func (e *segmentEntry) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &e.next)
+ stateSourceObject.Load(1, &e.prev)
}
func init() {
diff --git a/pkg/tcpip/transport/udp/udp_state_autogen.go b/pkg/tcpip/transport/udp/udp_state_autogen.go
index 74cec739f..06d025590 100644
--- a/pkg/tcpip/transport/udp/udp_state_autogen.go
+++ b/pkg/tcpip/transport/udp/udp_state_autogen.go
@@ -193,56 +193,56 @@ func (m *multicastMembership) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(1, &m.multicastAddr)
}
-func (u *udpPacketList) StateTypeName() string {
+func (l *udpPacketList) StateTypeName() string {
return "pkg/tcpip/transport/udp.udpPacketList"
}
-func (u *udpPacketList) StateFields() []string {
+func (l *udpPacketList) StateFields() []string {
return []string{
"head",
"tail",
}
}
-func (u *udpPacketList) beforeSave() {}
+func (l *udpPacketList) beforeSave() {}
-func (u *udpPacketList) StateSave(stateSinkObject state.Sink) {
- u.beforeSave()
- stateSinkObject.Save(0, &u.head)
- stateSinkObject.Save(1, &u.tail)
+func (l *udpPacketList) StateSave(stateSinkObject state.Sink) {
+ l.beforeSave()
+ stateSinkObject.Save(0, &l.head)
+ stateSinkObject.Save(1, &l.tail)
}
-func (u *udpPacketList) afterLoad() {}
+func (l *udpPacketList) afterLoad() {}
-func (u *udpPacketList) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &u.head)
- stateSourceObject.Load(1, &u.tail)
+func (l *udpPacketList) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &l.head)
+ stateSourceObject.Load(1, &l.tail)
}
-func (u *udpPacketEntry) StateTypeName() string {
+func (e *udpPacketEntry) StateTypeName() string {
return "pkg/tcpip/transport/udp.udpPacketEntry"
}
-func (u *udpPacketEntry) StateFields() []string {
+func (e *udpPacketEntry) StateFields() []string {
return []string{
"next",
"prev",
}
}
-func (u *udpPacketEntry) beforeSave() {}
+func (e *udpPacketEntry) beforeSave() {}
-func (u *udpPacketEntry) StateSave(stateSinkObject state.Sink) {
- u.beforeSave()
- stateSinkObject.Save(0, &u.next)
- stateSinkObject.Save(1, &u.prev)
+func (e *udpPacketEntry) StateSave(stateSinkObject state.Sink) {
+ e.beforeSave()
+ stateSinkObject.Save(0, &e.next)
+ stateSinkObject.Save(1, &e.prev)
}
-func (u *udpPacketEntry) afterLoad() {}
+func (e *udpPacketEntry) afterLoad() {}
-func (u *udpPacketEntry) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &u.next)
- stateSourceObject.Load(1, &u.prev)
+func (e *udpPacketEntry) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &e.next)
+ stateSourceObject.Load(1, &e.prev)
}
func init() {