github.com/metacubex/gvisor@v0.0.0-20240320004321-933faba989ec/pkg/tcpip/network/ipv6/ipv6_state_autogen.go (about)

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