github.com/ttpreport/gvisor-ligolo@v0.0.0-20240123134145-a858404967ba/pkg/tcpip/network/ipv4/ipv4_state_autogen.go (about)

     1  // automatically generated by stateify.
     2  
     3  package ipv4
     4  
     5  import (
     6  	"github.com/ttpreport/gvisor-ligolo/pkg/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 *icmpv4DestinationNetUnreachableSockError) StateTypeName() string {
    56  	return "pkg/tcpip/network/ipv4.icmpv4DestinationNetUnreachableSockError"
    57  }
    58  
    59  func (i *icmpv4DestinationNetUnreachableSockError) StateFields() []string {
    60  	return []string{
    61  		"icmpv4DestinationUnreachableSockError",
    62  	}
    63  }
    64  
    65  func (i *icmpv4DestinationNetUnreachableSockError) beforeSave() {}
    66  
    67  // +checklocksignore
    68  func (i *icmpv4DestinationNetUnreachableSockError) StateSave(stateSinkObject state.Sink) {
    69  	i.beforeSave()
    70  	stateSinkObject.Save(0, &i.icmpv4DestinationUnreachableSockError)
    71  }
    72  
    73  func (i *icmpv4DestinationNetUnreachableSockError) afterLoad() {}
    74  
    75  // +checklocksignore
    76  func (i *icmpv4DestinationNetUnreachableSockError) StateLoad(stateSourceObject state.Source) {
    77  	stateSourceObject.Load(0, &i.icmpv4DestinationUnreachableSockError)
    78  }
    79  
    80  func (i *icmpv4DestinationPortUnreachableSockError) StateTypeName() string {
    81  	return "pkg/tcpip/network/ipv4.icmpv4DestinationPortUnreachableSockError"
    82  }
    83  
    84  func (i *icmpv4DestinationPortUnreachableSockError) StateFields() []string {
    85  	return []string{
    86  		"icmpv4DestinationUnreachableSockError",
    87  	}
    88  }
    89  
    90  func (i *icmpv4DestinationPortUnreachableSockError) beforeSave() {}
    91  
    92  // +checklocksignore
    93  func (i *icmpv4DestinationPortUnreachableSockError) StateSave(stateSinkObject state.Sink) {
    94  	i.beforeSave()
    95  	stateSinkObject.Save(0, &i.icmpv4DestinationUnreachableSockError)
    96  }
    97  
    98  func (i *icmpv4DestinationPortUnreachableSockError) afterLoad() {}
    99  
   100  // +checklocksignore
   101  func (i *icmpv4DestinationPortUnreachableSockError) StateLoad(stateSourceObject state.Source) {
   102  	stateSourceObject.Load(0, &i.icmpv4DestinationUnreachableSockError)
   103  }
   104  
   105  func (i *icmpv4DestinationProtoUnreachableSockError) StateTypeName() string {
   106  	return "pkg/tcpip/network/ipv4.icmpv4DestinationProtoUnreachableSockError"
   107  }
   108  
   109  func (i *icmpv4DestinationProtoUnreachableSockError) StateFields() []string {
   110  	return []string{
   111  		"icmpv4DestinationUnreachableSockError",
   112  	}
   113  }
   114  
   115  func (i *icmpv4DestinationProtoUnreachableSockError) beforeSave() {}
   116  
   117  // +checklocksignore
   118  func (i *icmpv4DestinationProtoUnreachableSockError) StateSave(stateSinkObject state.Sink) {
   119  	i.beforeSave()
   120  	stateSinkObject.Save(0, &i.icmpv4DestinationUnreachableSockError)
   121  }
   122  
   123  func (i *icmpv4DestinationProtoUnreachableSockError) afterLoad() {}
   124  
   125  // +checklocksignore
   126  func (i *icmpv4DestinationProtoUnreachableSockError) StateLoad(stateSourceObject state.Source) {
   127  	stateSourceObject.Load(0, &i.icmpv4DestinationUnreachableSockError)
   128  }
   129  
   130  func (i *icmpv4SourceRouteFailedSockError) StateTypeName() string {
   131  	return "pkg/tcpip/network/ipv4.icmpv4SourceRouteFailedSockError"
   132  }
   133  
   134  func (i *icmpv4SourceRouteFailedSockError) StateFields() []string {
   135  	return []string{
   136  		"icmpv4DestinationUnreachableSockError",
   137  	}
   138  }
   139  
   140  func (i *icmpv4SourceRouteFailedSockError) beforeSave() {}
   141  
   142  // +checklocksignore
   143  func (i *icmpv4SourceRouteFailedSockError) StateSave(stateSinkObject state.Sink) {
   144  	i.beforeSave()
   145  	stateSinkObject.Save(0, &i.icmpv4DestinationUnreachableSockError)
   146  }
   147  
   148  func (i *icmpv4SourceRouteFailedSockError) afterLoad() {}
   149  
   150  // +checklocksignore
   151  func (i *icmpv4SourceRouteFailedSockError) StateLoad(stateSourceObject state.Source) {
   152  	stateSourceObject.Load(0, &i.icmpv4DestinationUnreachableSockError)
   153  }
   154  
   155  func (i *icmpv4SourceHostIsolatedSockError) StateTypeName() string {
   156  	return "pkg/tcpip/network/ipv4.icmpv4SourceHostIsolatedSockError"
   157  }
   158  
   159  func (i *icmpv4SourceHostIsolatedSockError) StateFields() []string {
   160  	return []string{
   161  		"icmpv4DestinationUnreachableSockError",
   162  	}
   163  }
   164  
   165  func (i *icmpv4SourceHostIsolatedSockError) beforeSave() {}
   166  
   167  // +checklocksignore
   168  func (i *icmpv4SourceHostIsolatedSockError) StateSave(stateSinkObject state.Sink) {
   169  	i.beforeSave()
   170  	stateSinkObject.Save(0, &i.icmpv4DestinationUnreachableSockError)
   171  }
   172  
   173  func (i *icmpv4SourceHostIsolatedSockError) afterLoad() {}
   174  
   175  // +checklocksignore
   176  func (i *icmpv4SourceHostIsolatedSockError) StateLoad(stateSourceObject state.Source) {
   177  	stateSourceObject.Load(0, &i.icmpv4DestinationUnreachableSockError)
   178  }
   179  
   180  func (i *icmpv4DestinationHostUnknownSockError) StateTypeName() string {
   181  	return "pkg/tcpip/network/ipv4.icmpv4DestinationHostUnknownSockError"
   182  }
   183  
   184  func (i *icmpv4DestinationHostUnknownSockError) StateFields() []string {
   185  	return []string{
   186  		"icmpv4DestinationUnreachableSockError",
   187  	}
   188  }
   189  
   190  func (i *icmpv4DestinationHostUnknownSockError) beforeSave() {}
   191  
   192  // +checklocksignore
   193  func (i *icmpv4DestinationHostUnknownSockError) StateSave(stateSinkObject state.Sink) {
   194  	i.beforeSave()
   195  	stateSinkObject.Save(0, &i.icmpv4DestinationUnreachableSockError)
   196  }
   197  
   198  func (i *icmpv4DestinationHostUnknownSockError) afterLoad() {}
   199  
   200  // +checklocksignore
   201  func (i *icmpv4DestinationHostUnknownSockError) StateLoad(stateSourceObject state.Source) {
   202  	stateSourceObject.Load(0, &i.icmpv4DestinationUnreachableSockError)
   203  }
   204  
   205  func (e *icmpv4FragmentationNeededSockError) StateTypeName() string {
   206  	return "pkg/tcpip/network/ipv4.icmpv4FragmentationNeededSockError"
   207  }
   208  
   209  func (e *icmpv4FragmentationNeededSockError) StateFields() []string {
   210  	return []string{
   211  		"icmpv4DestinationUnreachableSockError",
   212  		"mtu",
   213  	}
   214  }
   215  
   216  func (e *icmpv4FragmentationNeededSockError) beforeSave() {}
   217  
   218  // +checklocksignore
   219  func (e *icmpv4FragmentationNeededSockError) StateSave(stateSinkObject state.Sink) {
   220  	e.beforeSave()
   221  	stateSinkObject.Save(0, &e.icmpv4DestinationUnreachableSockError)
   222  	stateSinkObject.Save(1, &e.mtu)
   223  }
   224  
   225  func (e *icmpv4FragmentationNeededSockError) afterLoad() {}
   226  
   227  // +checklocksignore
   228  func (e *icmpv4FragmentationNeededSockError) StateLoad(stateSourceObject state.Source) {
   229  	stateSourceObject.Load(0, &e.icmpv4DestinationUnreachableSockError)
   230  	stateSourceObject.Load(1, &e.mtu)
   231  }
   232  
   233  func init() {
   234  	state.Register((*icmpv4DestinationUnreachableSockError)(nil))
   235  	state.Register((*icmpv4DestinationHostUnreachableSockError)(nil))
   236  	state.Register((*icmpv4DestinationNetUnreachableSockError)(nil))
   237  	state.Register((*icmpv4DestinationPortUnreachableSockError)(nil))
   238  	state.Register((*icmpv4DestinationProtoUnreachableSockError)(nil))
   239  	state.Register((*icmpv4SourceRouteFailedSockError)(nil))
   240  	state.Register((*icmpv4SourceHostIsolatedSockError)(nil))
   241  	state.Register((*icmpv4DestinationHostUnknownSockError)(nil))
   242  	state.Register((*icmpv4FragmentationNeededSockError)(nil))
   243  }