summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/tcpip_state_autogen.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/tcpip/tcpip_state_autogen.go')
-rw-r--r--pkg/tcpip/tcpip_state_autogen.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkg/tcpip/tcpip_state_autogen.go b/pkg/tcpip/tcpip_state_autogen.go
index 28d5ae82b..e79c0b491 100644
--- a/pkg/tcpip/tcpip_state_autogen.go
+++ b/pkg/tcpip/tcpip_state_autogen.go
@@ -85,6 +85,29 @@ func (x *ControlMessages) StateLoad(m state.Source) {
m.Load(9, &x.PacketInfo)
}
+func (x *LinkPacketInfo) StateTypeName() string {
+ return "pkg/tcpip.LinkPacketInfo"
+}
+
+func (x *LinkPacketInfo) StateFields() []string {
+ return []string{
+ "Protocol",
+ }
+}
+
+func (x *LinkPacketInfo) beforeSave() {}
+
+func (x *LinkPacketInfo) StateSave(m state.Sink) {
+ x.beforeSave()
+ m.Save(0, &x.Protocol)
+}
+
+func (x *LinkPacketInfo) afterLoad() {}
+
+func (x *LinkPacketInfo) StateLoad(m state.Source) {
+ m.Load(0, &x.Protocol)
+}
+
func (x *IPPacketInfo) StateTypeName() string {
return "pkg/tcpip.IPPacketInfo"
}
@@ -117,5 +140,6 @@ func (x *IPPacketInfo) StateLoad(m state.Source) {
func init() {
state.Register((*FullAddress)(nil))
state.Register((*ControlMessages)(nil))
+ state.Register((*LinkPacketInfo)(nil))
state.Register((*IPPacketInfo)(nil))
}