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

     1  // automatically generated by stateify.
     2  
     3  package ip
     4  
     5  import (
     6  	"context"
     7  
     8  	"github.com/metacubex/gvisor/pkg/state"
     9  )
    10  
    11  func (e *ErrMessageTooLong) StateTypeName() string {
    12  	return "pkg/tcpip/network/internal/ip.ErrMessageTooLong"
    13  }
    14  
    15  func (e *ErrMessageTooLong) StateFields() []string {
    16  	return []string{}
    17  }
    18  
    19  func (e *ErrMessageTooLong) beforeSave() {}
    20  
    21  // +checklocksignore
    22  func (e *ErrMessageTooLong) StateSave(stateSinkObject state.Sink) {
    23  	e.beforeSave()
    24  }
    25  
    26  func (e *ErrMessageTooLong) afterLoad(context.Context) {}
    27  
    28  // +checklocksignore
    29  func (e *ErrMessageTooLong) StateLoad(ctx context.Context, stateSourceObject state.Source) {
    30  }
    31  
    32  func (e *ErrNoMulticastPendingQueueBufferSpace) StateTypeName() string {
    33  	return "pkg/tcpip/network/internal/ip.ErrNoMulticastPendingQueueBufferSpace"
    34  }
    35  
    36  func (e *ErrNoMulticastPendingQueueBufferSpace) StateFields() []string {
    37  	return []string{}
    38  }
    39  
    40  func (e *ErrNoMulticastPendingQueueBufferSpace) beforeSave() {}
    41  
    42  // +checklocksignore
    43  func (e *ErrNoMulticastPendingQueueBufferSpace) StateSave(stateSinkObject state.Sink) {
    44  	e.beforeSave()
    45  }
    46  
    47  func (e *ErrNoMulticastPendingQueueBufferSpace) afterLoad(context.Context) {}
    48  
    49  // +checklocksignore
    50  func (e *ErrNoMulticastPendingQueueBufferSpace) StateLoad(ctx context.Context, stateSourceObject state.Source) {
    51  }
    52  
    53  func init() {
    54  	state.Register((*ErrMessageTooLong)(nil))
    55  	state.Register((*ErrNoMulticastPendingQueueBufferSpace)(nil))
    56  }