inet.af/netstack@v0.0.0-20220214151720-7585b01ddccf/tcpip/network/internal/fragmentation/fragmentation_state_autogen.go (about) 1 // automatically generated by stateify. 2 3 package fragmentation 4 5 import ( 6 "inet.af/netstack/state" 7 ) 8 9 func (l *reassemblerList) StateTypeName() string { 10 return "pkg/tcpip/network/internal/fragmentation.reassemblerList" 11 } 12 13 func (l *reassemblerList) StateFields() []string { 14 return []string{ 15 "head", 16 "tail", 17 } 18 } 19 20 func (l *reassemblerList) beforeSave() {} 21 22 // +checklocksignore 23 func (l *reassemblerList) StateSave(stateSinkObject state.Sink) { 24 l.beforeSave() 25 stateSinkObject.Save(0, &l.head) 26 stateSinkObject.Save(1, &l.tail) 27 } 28 29 func (l *reassemblerList) afterLoad() {} 30 31 // +checklocksignore 32 func (l *reassemblerList) StateLoad(stateSourceObject state.Source) { 33 stateSourceObject.Load(0, &l.head) 34 stateSourceObject.Load(1, &l.tail) 35 } 36 37 func (e *reassemblerEntry) StateTypeName() string { 38 return "pkg/tcpip/network/internal/fragmentation.reassemblerEntry" 39 } 40 41 func (e *reassemblerEntry) StateFields() []string { 42 return []string{ 43 "next", 44 "prev", 45 } 46 } 47 48 func (e *reassemblerEntry) beforeSave() {} 49 50 // +checklocksignore 51 func (e *reassemblerEntry) StateSave(stateSinkObject state.Sink) { 52 e.beforeSave() 53 stateSinkObject.Save(0, &e.next) 54 stateSinkObject.Save(1, &e.prev) 55 } 56 57 func (e *reassemblerEntry) afterLoad() {} 58 59 // +checklocksignore 60 func (e *reassemblerEntry) StateLoad(stateSourceObject state.Source) { 61 stateSourceObject.Load(0, &e.next) 62 stateSourceObject.Load(1, &e.prev) 63 } 64 65 func init() { 66 state.Register((*reassemblerList)(nil)) 67 state.Register((*reassemblerEntry)(nil)) 68 }