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