inet.af/netstack@v0.0.0-20220214151720-7585b01ddccf/tcpip/network/ipv6/ipv6_state_autogen.go (about) 1 // automatically generated by stateify. 2 3 package ipv6 4 5 import ( 6 "inet.af/netstack/state" 7 ) 8 9 func (i *icmpv6DestinationUnreachableSockError) StateTypeName() string { 10 return "pkg/tcpip/network/ipv6.icmpv6DestinationUnreachableSockError" 11 } 12 13 func (i *icmpv6DestinationUnreachableSockError) StateFields() []string { 14 return []string{} 15 } 16 17 func (i *icmpv6DestinationUnreachableSockError) beforeSave() {} 18 19 // +checklocksignore 20 func (i *icmpv6DestinationUnreachableSockError) StateSave(stateSinkObject state.Sink) { 21 i.beforeSave() 22 } 23 24 func (i *icmpv6DestinationUnreachableSockError) afterLoad() {} 25 26 // +checklocksignore 27 func (i *icmpv6DestinationUnreachableSockError) StateLoad(stateSourceObject state.Source) { 28 } 29 30 func (i *icmpv6DestinationNetworkUnreachableSockError) StateTypeName() string { 31 return "pkg/tcpip/network/ipv6.icmpv6DestinationNetworkUnreachableSockError" 32 } 33 34 func (i *icmpv6DestinationNetworkUnreachableSockError) StateFields() []string { 35 return []string{ 36 "icmpv6DestinationUnreachableSockError", 37 } 38 } 39 40 func (i *icmpv6DestinationNetworkUnreachableSockError) beforeSave() {} 41 42 // +checklocksignore 43 func (i *icmpv6DestinationNetworkUnreachableSockError) StateSave(stateSinkObject state.Sink) { 44 i.beforeSave() 45 stateSinkObject.Save(0, &i.icmpv6DestinationUnreachableSockError) 46 } 47 48 func (i *icmpv6DestinationNetworkUnreachableSockError) afterLoad() {} 49 50 // +checklocksignore 51 func (i *icmpv6DestinationNetworkUnreachableSockError) StateLoad(stateSourceObject state.Source) { 52 stateSourceObject.Load(0, &i.icmpv6DestinationUnreachableSockError) 53 } 54 55 func (i *icmpv6DestinationPortUnreachableSockError) StateTypeName() string { 56 return "pkg/tcpip/network/ipv6.icmpv6DestinationPortUnreachableSockError" 57 } 58 59 func (i *icmpv6DestinationPortUnreachableSockError) StateFields() []string { 60 return []string{ 61 "icmpv6DestinationUnreachableSockError", 62 } 63 } 64 65 func (i *icmpv6DestinationPortUnreachableSockError) beforeSave() {} 66 67 // +checklocksignore 68 func (i *icmpv6DestinationPortUnreachableSockError) StateSave(stateSinkObject state.Sink) { 69 i.beforeSave() 70 stateSinkObject.Save(0, &i.icmpv6DestinationUnreachableSockError) 71 } 72 73 func (i *icmpv6DestinationPortUnreachableSockError) afterLoad() {} 74 75 // +checklocksignore 76 func (i *icmpv6DestinationPortUnreachableSockError) StateLoad(stateSourceObject state.Source) { 77 stateSourceObject.Load(0, &i.icmpv6DestinationUnreachableSockError) 78 } 79 80 func (i *icmpv6DestinationAddressUnreachableSockError) StateTypeName() string { 81 return "pkg/tcpip/network/ipv6.icmpv6DestinationAddressUnreachableSockError" 82 } 83 84 func (i *icmpv6DestinationAddressUnreachableSockError) StateFields() []string { 85 return []string{ 86 "icmpv6DestinationUnreachableSockError", 87 } 88 } 89 90 func (i *icmpv6DestinationAddressUnreachableSockError) beforeSave() {} 91 92 // +checklocksignore 93 func (i *icmpv6DestinationAddressUnreachableSockError) StateSave(stateSinkObject state.Sink) { 94 i.beforeSave() 95 stateSinkObject.Save(0, &i.icmpv6DestinationUnreachableSockError) 96 } 97 98 func (i *icmpv6DestinationAddressUnreachableSockError) afterLoad() {} 99 100 // +checklocksignore 101 func (i *icmpv6DestinationAddressUnreachableSockError) StateLoad(stateSourceObject state.Source) { 102 stateSourceObject.Load(0, &i.icmpv6DestinationUnreachableSockError) 103 } 104 105 func (e *icmpv6PacketTooBigSockError) StateTypeName() string { 106 return "pkg/tcpip/network/ipv6.icmpv6PacketTooBigSockError" 107 } 108 109 func (e *icmpv6PacketTooBigSockError) StateFields() []string { 110 return []string{ 111 "mtu", 112 } 113 } 114 115 func (e *icmpv6PacketTooBigSockError) beforeSave() {} 116 117 // +checklocksignore 118 func (e *icmpv6PacketTooBigSockError) StateSave(stateSinkObject state.Sink) { 119 e.beforeSave() 120 stateSinkObject.Save(0, &e.mtu) 121 } 122 123 func (e *icmpv6PacketTooBigSockError) afterLoad() {} 124 125 // +checklocksignore 126 func (e *icmpv6PacketTooBigSockError) StateLoad(stateSourceObject state.Source) { 127 stateSourceObject.Load(0, &e.mtu) 128 } 129 130 func init() { 131 state.Register((*icmpv6DestinationUnreachableSockError)(nil)) 132 state.Register((*icmpv6DestinationNetworkUnreachableSockError)(nil)) 133 state.Register((*icmpv6DestinationPortUnreachableSockError)(nil)) 134 state.Register((*icmpv6DestinationAddressUnreachableSockError)(nil)) 135 state.Register((*icmpv6PacketTooBigSockError)(nil)) 136 }