inet.af/netstack@v0.0.0-20220214151720-7585b01ddccf/tcpip/tcpip_state_autogen.go (about)

     1  // automatically generated by stateify.
     2  
     3  package tcpip
     4  
     5  import (
     6  	"inet.af/netstack/state"
     7  )
     8  
     9  func (e *ErrAborted) StateTypeName() string {
    10  	return "pkg/tcpip.ErrAborted"
    11  }
    12  
    13  func (e *ErrAborted) StateFields() []string {
    14  	return []string{}
    15  }
    16  
    17  func (e *ErrAborted) beforeSave() {}
    18  
    19  // +checklocksignore
    20  func (e *ErrAborted) StateSave(stateSinkObject state.Sink) {
    21  	e.beforeSave()
    22  }
    23  
    24  func (e *ErrAborted) afterLoad() {}
    25  
    26  // +checklocksignore
    27  func (e *ErrAborted) StateLoad(stateSourceObject state.Source) {
    28  }
    29  
    30  func (e *ErrAddressFamilyNotSupported) StateTypeName() string {
    31  	return "pkg/tcpip.ErrAddressFamilyNotSupported"
    32  }
    33  
    34  func (e *ErrAddressFamilyNotSupported) StateFields() []string {
    35  	return []string{}
    36  }
    37  
    38  func (e *ErrAddressFamilyNotSupported) beforeSave() {}
    39  
    40  // +checklocksignore
    41  func (e *ErrAddressFamilyNotSupported) StateSave(stateSinkObject state.Sink) {
    42  	e.beforeSave()
    43  }
    44  
    45  func (e *ErrAddressFamilyNotSupported) afterLoad() {}
    46  
    47  // +checklocksignore
    48  func (e *ErrAddressFamilyNotSupported) StateLoad(stateSourceObject state.Source) {
    49  }
    50  
    51  func (e *ErrAlreadyBound) StateTypeName() string {
    52  	return "pkg/tcpip.ErrAlreadyBound"
    53  }
    54  
    55  func (e *ErrAlreadyBound) StateFields() []string {
    56  	return []string{}
    57  }
    58  
    59  func (e *ErrAlreadyBound) beforeSave() {}
    60  
    61  // +checklocksignore
    62  func (e *ErrAlreadyBound) StateSave(stateSinkObject state.Sink) {
    63  	e.beforeSave()
    64  }
    65  
    66  func (e *ErrAlreadyBound) afterLoad() {}
    67  
    68  // +checklocksignore
    69  func (e *ErrAlreadyBound) StateLoad(stateSourceObject state.Source) {
    70  }
    71  
    72  func (e *ErrAlreadyConnected) StateTypeName() string {
    73  	return "pkg/tcpip.ErrAlreadyConnected"
    74  }
    75  
    76  func (e *ErrAlreadyConnected) StateFields() []string {
    77  	return []string{}
    78  }
    79  
    80  func (e *ErrAlreadyConnected) beforeSave() {}
    81  
    82  // +checklocksignore
    83  func (e *ErrAlreadyConnected) StateSave(stateSinkObject state.Sink) {
    84  	e.beforeSave()
    85  }
    86  
    87  func (e *ErrAlreadyConnected) afterLoad() {}
    88  
    89  // +checklocksignore
    90  func (e *ErrAlreadyConnected) StateLoad(stateSourceObject state.Source) {
    91  }
    92  
    93  func (e *ErrAlreadyConnecting) StateTypeName() string {
    94  	return "pkg/tcpip.ErrAlreadyConnecting"
    95  }
    96  
    97  func (e *ErrAlreadyConnecting) StateFields() []string {
    98  	return []string{}
    99  }
   100  
   101  func (e *ErrAlreadyConnecting) beforeSave() {}
   102  
   103  // +checklocksignore
   104  func (e *ErrAlreadyConnecting) StateSave(stateSinkObject state.Sink) {
   105  	e.beforeSave()
   106  }
   107  
   108  func (e *ErrAlreadyConnecting) afterLoad() {}
   109  
   110  // +checklocksignore
   111  func (e *ErrAlreadyConnecting) StateLoad(stateSourceObject state.Source) {
   112  }
   113  
   114  func (e *ErrBadAddress) StateTypeName() string {
   115  	return "pkg/tcpip.ErrBadAddress"
   116  }
   117  
   118  func (e *ErrBadAddress) StateFields() []string {
   119  	return []string{}
   120  }
   121  
   122  func (e *ErrBadAddress) beforeSave() {}
   123  
   124  // +checklocksignore
   125  func (e *ErrBadAddress) StateSave(stateSinkObject state.Sink) {
   126  	e.beforeSave()
   127  }
   128  
   129  func (e *ErrBadAddress) afterLoad() {}
   130  
   131  // +checklocksignore
   132  func (e *ErrBadAddress) StateLoad(stateSourceObject state.Source) {
   133  }
   134  
   135  func (e *ErrBadBuffer) StateTypeName() string {
   136  	return "pkg/tcpip.ErrBadBuffer"
   137  }
   138  
   139  func (e *ErrBadBuffer) StateFields() []string {
   140  	return []string{}
   141  }
   142  
   143  func (e *ErrBadBuffer) beforeSave() {}
   144  
   145  // +checklocksignore
   146  func (e *ErrBadBuffer) StateSave(stateSinkObject state.Sink) {
   147  	e.beforeSave()
   148  }
   149  
   150  func (e *ErrBadBuffer) afterLoad() {}
   151  
   152  // +checklocksignore
   153  func (e *ErrBadBuffer) StateLoad(stateSourceObject state.Source) {
   154  }
   155  
   156  func (e *ErrBadLocalAddress) StateTypeName() string {
   157  	return "pkg/tcpip.ErrBadLocalAddress"
   158  }
   159  
   160  func (e *ErrBadLocalAddress) StateFields() []string {
   161  	return []string{}
   162  }
   163  
   164  func (e *ErrBadLocalAddress) beforeSave() {}
   165  
   166  // +checklocksignore
   167  func (e *ErrBadLocalAddress) StateSave(stateSinkObject state.Sink) {
   168  	e.beforeSave()
   169  }
   170  
   171  func (e *ErrBadLocalAddress) afterLoad() {}
   172  
   173  // +checklocksignore
   174  func (e *ErrBadLocalAddress) StateLoad(stateSourceObject state.Source) {
   175  }
   176  
   177  func (e *ErrBroadcastDisabled) StateTypeName() string {
   178  	return "pkg/tcpip.ErrBroadcastDisabled"
   179  }
   180  
   181  func (e *ErrBroadcastDisabled) StateFields() []string {
   182  	return []string{}
   183  }
   184  
   185  func (e *ErrBroadcastDisabled) beforeSave() {}
   186  
   187  // +checklocksignore
   188  func (e *ErrBroadcastDisabled) StateSave(stateSinkObject state.Sink) {
   189  	e.beforeSave()
   190  }
   191  
   192  func (e *ErrBroadcastDisabled) afterLoad() {}
   193  
   194  // +checklocksignore
   195  func (e *ErrBroadcastDisabled) StateLoad(stateSourceObject state.Source) {
   196  }
   197  
   198  func (e *ErrClosedForReceive) StateTypeName() string {
   199  	return "pkg/tcpip.ErrClosedForReceive"
   200  }
   201  
   202  func (e *ErrClosedForReceive) StateFields() []string {
   203  	return []string{}
   204  }
   205  
   206  func (e *ErrClosedForReceive) beforeSave() {}
   207  
   208  // +checklocksignore
   209  func (e *ErrClosedForReceive) StateSave(stateSinkObject state.Sink) {
   210  	e.beforeSave()
   211  }
   212  
   213  func (e *ErrClosedForReceive) afterLoad() {}
   214  
   215  // +checklocksignore
   216  func (e *ErrClosedForReceive) StateLoad(stateSourceObject state.Source) {
   217  }
   218  
   219  func (e *ErrClosedForSend) StateTypeName() string {
   220  	return "pkg/tcpip.ErrClosedForSend"
   221  }
   222  
   223  func (e *ErrClosedForSend) StateFields() []string {
   224  	return []string{}
   225  }
   226  
   227  func (e *ErrClosedForSend) beforeSave() {}
   228  
   229  // +checklocksignore
   230  func (e *ErrClosedForSend) StateSave(stateSinkObject state.Sink) {
   231  	e.beforeSave()
   232  }
   233  
   234  func (e *ErrClosedForSend) afterLoad() {}
   235  
   236  // +checklocksignore
   237  func (e *ErrClosedForSend) StateLoad(stateSourceObject state.Source) {
   238  }
   239  
   240  func (e *ErrConnectStarted) StateTypeName() string {
   241  	return "pkg/tcpip.ErrConnectStarted"
   242  }
   243  
   244  func (e *ErrConnectStarted) StateFields() []string {
   245  	return []string{}
   246  }
   247  
   248  func (e *ErrConnectStarted) beforeSave() {}
   249  
   250  // +checklocksignore
   251  func (e *ErrConnectStarted) StateSave(stateSinkObject state.Sink) {
   252  	e.beforeSave()
   253  }
   254  
   255  func (e *ErrConnectStarted) afterLoad() {}
   256  
   257  // +checklocksignore
   258  func (e *ErrConnectStarted) StateLoad(stateSourceObject state.Source) {
   259  }
   260  
   261  func (e *ErrConnectionAborted) StateTypeName() string {
   262  	return "pkg/tcpip.ErrConnectionAborted"
   263  }
   264  
   265  func (e *ErrConnectionAborted) StateFields() []string {
   266  	return []string{}
   267  }
   268  
   269  func (e *ErrConnectionAborted) beforeSave() {}
   270  
   271  // +checklocksignore
   272  func (e *ErrConnectionAborted) StateSave(stateSinkObject state.Sink) {
   273  	e.beforeSave()
   274  }
   275  
   276  func (e *ErrConnectionAborted) afterLoad() {}
   277  
   278  // +checklocksignore
   279  func (e *ErrConnectionAborted) StateLoad(stateSourceObject state.Source) {
   280  }
   281  
   282  func (e *ErrConnectionRefused) StateTypeName() string {
   283  	return "pkg/tcpip.ErrConnectionRefused"
   284  }
   285  
   286  func (e *ErrConnectionRefused) StateFields() []string {
   287  	return []string{}
   288  }
   289  
   290  func (e *ErrConnectionRefused) beforeSave() {}
   291  
   292  // +checklocksignore
   293  func (e *ErrConnectionRefused) StateSave(stateSinkObject state.Sink) {
   294  	e.beforeSave()
   295  }
   296  
   297  func (e *ErrConnectionRefused) afterLoad() {}
   298  
   299  // +checklocksignore
   300  func (e *ErrConnectionRefused) StateLoad(stateSourceObject state.Source) {
   301  }
   302  
   303  func (e *ErrConnectionReset) StateTypeName() string {
   304  	return "pkg/tcpip.ErrConnectionReset"
   305  }
   306  
   307  func (e *ErrConnectionReset) StateFields() []string {
   308  	return []string{}
   309  }
   310  
   311  func (e *ErrConnectionReset) beforeSave() {}
   312  
   313  // +checklocksignore
   314  func (e *ErrConnectionReset) StateSave(stateSinkObject state.Sink) {
   315  	e.beforeSave()
   316  }
   317  
   318  func (e *ErrConnectionReset) afterLoad() {}
   319  
   320  // +checklocksignore
   321  func (e *ErrConnectionReset) StateLoad(stateSourceObject state.Source) {
   322  }
   323  
   324  func (e *ErrDestinationRequired) StateTypeName() string {
   325  	return "pkg/tcpip.ErrDestinationRequired"
   326  }
   327  
   328  func (e *ErrDestinationRequired) StateFields() []string {
   329  	return []string{}
   330  }
   331  
   332  func (e *ErrDestinationRequired) beforeSave() {}
   333  
   334  // +checklocksignore
   335  func (e *ErrDestinationRequired) StateSave(stateSinkObject state.Sink) {
   336  	e.beforeSave()
   337  }
   338  
   339  func (e *ErrDestinationRequired) afterLoad() {}
   340  
   341  // +checklocksignore
   342  func (e *ErrDestinationRequired) StateLoad(stateSourceObject state.Source) {
   343  }
   344  
   345  func (e *ErrDuplicateAddress) StateTypeName() string {
   346  	return "pkg/tcpip.ErrDuplicateAddress"
   347  }
   348  
   349  func (e *ErrDuplicateAddress) StateFields() []string {
   350  	return []string{}
   351  }
   352  
   353  func (e *ErrDuplicateAddress) beforeSave() {}
   354  
   355  // +checklocksignore
   356  func (e *ErrDuplicateAddress) StateSave(stateSinkObject state.Sink) {
   357  	e.beforeSave()
   358  }
   359  
   360  func (e *ErrDuplicateAddress) afterLoad() {}
   361  
   362  // +checklocksignore
   363  func (e *ErrDuplicateAddress) StateLoad(stateSourceObject state.Source) {
   364  }
   365  
   366  func (e *ErrDuplicateNICID) StateTypeName() string {
   367  	return "pkg/tcpip.ErrDuplicateNICID"
   368  }
   369  
   370  func (e *ErrDuplicateNICID) StateFields() []string {
   371  	return []string{}
   372  }
   373  
   374  func (e *ErrDuplicateNICID) beforeSave() {}
   375  
   376  // +checklocksignore
   377  func (e *ErrDuplicateNICID) StateSave(stateSinkObject state.Sink) {
   378  	e.beforeSave()
   379  }
   380  
   381  func (e *ErrDuplicateNICID) afterLoad() {}
   382  
   383  // +checklocksignore
   384  func (e *ErrDuplicateNICID) StateLoad(stateSourceObject state.Source) {
   385  }
   386  
   387  func (e *ErrInvalidEndpointState) StateTypeName() string {
   388  	return "pkg/tcpip.ErrInvalidEndpointState"
   389  }
   390  
   391  func (e *ErrInvalidEndpointState) StateFields() []string {
   392  	return []string{}
   393  }
   394  
   395  func (e *ErrInvalidEndpointState) beforeSave() {}
   396  
   397  // +checklocksignore
   398  func (e *ErrInvalidEndpointState) StateSave(stateSinkObject state.Sink) {
   399  	e.beforeSave()
   400  }
   401  
   402  func (e *ErrInvalidEndpointState) afterLoad() {}
   403  
   404  // +checklocksignore
   405  func (e *ErrInvalidEndpointState) StateLoad(stateSourceObject state.Source) {
   406  }
   407  
   408  func (e *ErrInvalidOptionValue) StateTypeName() string {
   409  	return "pkg/tcpip.ErrInvalidOptionValue"
   410  }
   411  
   412  func (e *ErrInvalidOptionValue) StateFields() []string {
   413  	return []string{}
   414  }
   415  
   416  func (e *ErrInvalidOptionValue) beforeSave() {}
   417  
   418  // +checklocksignore
   419  func (e *ErrInvalidOptionValue) StateSave(stateSinkObject state.Sink) {
   420  	e.beforeSave()
   421  }
   422  
   423  func (e *ErrInvalidOptionValue) afterLoad() {}
   424  
   425  // +checklocksignore
   426  func (e *ErrInvalidOptionValue) StateLoad(stateSourceObject state.Source) {
   427  }
   428  
   429  func (e *ErrInvalidPortRange) StateTypeName() string {
   430  	return "pkg/tcpip.ErrInvalidPortRange"
   431  }
   432  
   433  func (e *ErrInvalidPortRange) StateFields() []string {
   434  	return []string{}
   435  }
   436  
   437  func (e *ErrInvalidPortRange) beforeSave() {}
   438  
   439  // +checklocksignore
   440  func (e *ErrInvalidPortRange) StateSave(stateSinkObject state.Sink) {
   441  	e.beforeSave()
   442  }
   443  
   444  func (e *ErrInvalidPortRange) afterLoad() {}
   445  
   446  // +checklocksignore
   447  func (e *ErrInvalidPortRange) StateLoad(stateSourceObject state.Source) {
   448  }
   449  
   450  func (e *ErrMalformedHeader) StateTypeName() string {
   451  	return "pkg/tcpip.ErrMalformedHeader"
   452  }
   453  
   454  func (e *ErrMalformedHeader) StateFields() []string {
   455  	return []string{}
   456  }
   457  
   458  func (e *ErrMalformedHeader) beforeSave() {}
   459  
   460  // +checklocksignore
   461  func (e *ErrMalformedHeader) StateSave(stateSinkObject state.Sink) {
   462  	e.beforeSave()
   463  }
   464  
   465  func (e *ErrMalformedHeader) afterLoad() {}
   466  
   467  // +checklocksignore
   468  func (e *ErrMalformedHeader) StateLoad(stateSourceObject state.Source) {
   469  }
   470  
   471  func (e *ErrMessageTooLong) StateTypeName() string {
   472  	return "pkg/tcpip.ErrMessageTooLong"
   473  }
   474  
   475  func (e *ErrMessageTooLong) StateFields() []string {
   476  	return []string{}
   477  }
   478  
   479  func (e *ErrMessageTooLong) beforeSave() {}
   480  
   481  // +checklocksignore
   482  func (e *ErrMessageTooLong) StateSave(stateSinkObject state.Sink) {
   483  	e.beforeSave()
   484  }
   485  
   486  func (e *ErrMessageTooLong) afterLoad() {}
   487  
   488  // +checklocksignore
   489  func (e *ErrMessageTooLong) StateLoad(stateSourceObject state.Source) {
   490  }
   491  
   492  func (e *ErrNetworkUnreachable) StateTypeName() string {
   493  	return "pkg/tcpip.ErrNetworkUnreachable"
   494  }
   495  
   496  func (e *ErrNetworkUnreachable) StateFields() []string {
   497  	return []string{}
   498  }
   499  
   500  func (e *ErrNetworkUnreachable) beforeSave() {}
   501  
   502  // +checklocksignore
   503  func (e *ErrNetworkUnreachable) StateSave(stateSinkObject state.Sink) {
   504  	e.beforeSave()
   505  }
   506  
   507  func (e *ErrNetworkUnreachable) afterLoad() {}
   508  
   509  // +checklocksignore
   510  func (e *ErrNetworkUnreachable) StateLoad(stateSourceObject state.Source) {
   511  }
   512  
   513  func (e *ErrNoBufferSpace) StateTypeName() string {
   514  	return "pkg/tcpip.ErrNoBufferSpace"
   515  }
   516  
   517  func (e *ErrNoBufferSpace) StateFields() []string {
   518  	return []string{}
   519  }
   520  
   521  func (e *ErrNoBufferSpace) beforeSave() {}
   522  
   523  // +checklocksignore
   524  func (e *ErrNoBufferSpace) StateSave(stateSinkObject state.Sink) {
   525  	e.beforeSave()
   526  }
   527  
   528  func (e *ErrNoBufferSpace) afterLoad() {}
   529  
   530  // +checklocksignore
   531  func (e *ErrNoBufferSpace) StateLoad(stateSourceObject state.Source) {
   532  }
   533  
   534  func (e *ErrNoPortAvailable) StateTypeName() string {
   535  	return "pkg/tcpip.ErrNoPortAvailable"
   536  }
   537  
   538  func (e *ErrNoPortAvailable) StateFields() []string {
   539  	return []string{}
   540  }
   541  
   542  func (e *ErrNoPortAvailable) beforeSave() {}
   543  
   544  // +checklocksignore
   545  func (e *ErrNoPortAvailable) StateSave(stateSinkObject state.Sink) {
   546  	e.beforeSave()
   547  }
   548  
   549  func (e *ErrNoPortAvailable) afterLoad() {}
   550  
   551  // +checklocksignore
   552  func (e *ErrNoPortAvailable) StateLoad(stateSourceObject state.Source) {
   553  }
   554  
   555  func (e *ErrNoRoute) StateTypeName() string {
   556  	return "pkg/tcpip.ErrNoRoute"
   557  }
   558  
   559  func (e *ErrNoRoute) StateFields() []string {
   560  	return []string{}
   561  }
   562  
   563  func (e *ErrNoRoute) beforeSave() {}
   564  
   565  // +checklocksignore
   566  func (e *ErrNoRoute) StateSave(stateSinkObject state.Sink) {
   567  	e.beforeSave()
   568  }
   569  
   570  func (e *ErrNoRoute) afterLoad() {}
   571  
   572  // +checklocksignore
   573  func (e *ErrNoRoute) StateLoad(stateSourceObject state.Source) {
   574  }
   575  
   576  func (e *ErrNoSuchFile) StateTypeName() string {
   577  	return "pkg/tcpip.ErrNoSuchFile"
   578  }
   579  
   580  func (e *ErrNoSuchFile) StateFields() []string {
   581  	return []string{}
   582  }
   583  
   584  func (e *ErrNoSuchFile) beforeSave() {}
   585  
   586  // +checklocksignore
   587  func (e *ErrNoSuchFile) StateSave(stateSinkObject state.Sink) {
   588  	e.beforeSave()
   589  }
   590  
   591  func (e *ErrNoSuchFile) afterLoad() {}
   592  
   593  // +checklocksignore
   594  func (e *ErrNoSuchFile) StateLoad(stateSourceObject state.Source) {
   595  }
   596  
   597  func (e *ErrNotConnected) StateTypeName() string {
   598  	return "pkg/tcpip.ErrNotConnected"
   599  }
   600  
   601  func (e *ErrNotConnected) StateFields() []string {
   602  	return []string{}
   603  }
   604  
   605  func (e *ErrNotConnected) beforeSave() {}
   606  
   607  // +checklocksignore
   608  func (e *ErrNotConnected) StateSave(stateSinkObject state.Sink) {
   609  	e.beforeSave()
   610  }
   611  
   612  func (e *ErrNotConnected) afterLoad() {}
   613  
   614  // +checklocksignore
   615  func (e *ErrNotConnected) StateLoad(stateSourceObject state.Source) {
   616  }
   617  
   618  func (e *ErrNotPermitted) StateTypeName() string {
   619  	return "pkg/tcpip.ErrNotPermitted"
   620  }
   621  
   622  func (e *ErrNotPermitted) StateFields() []string {
   623  	return []string{}
   624  }
   625  
   626  func (e *ErrNotPermitted) beforeSave() {}
   627  
   628  // +checklocksignore
   629  func (e *ErrNotPermitted) StateSave(stateSinkObject state.Sink) {
   630  	e.beforeSave()
   631  }
   632  
   633  func (e *ErrNotPermitted) afterLoad() {}
   634  
   635  // +checklocksignore
   636  func (e *ErrNotPermitted) StateLoad(stateSourceObject state.Source) {
   637  }
   638  
   639  func (e *ErrNotSupported) StateTypeName() string {
   640  	return "pkg/tcpip.ErrNotSupported"
   641  }
   642  
   643  func (e *ErrNotSupported) StateFields() []string {
   644  	return []string{}
   645  }
   646  
   647  func (e *ErrNotSupported) beforeSave() {}
   648  
   649  // +checklocksignore
   650  func (e *ErrNotSupported) StateSave(stateSinkObject state.Sink) {
   651  	e.beforeSave()
   652  }
   653  
   654  func (e *ErrNotSupported) afterLoad() {}
   655  
   656  // +checklocksignore
   657  func (e *ErrNotSupported) StateLoad(stateSourceObject state.Source) {
   658  }
   659  
   660  func (e *ErrPortInUse) StateTypeName() string {
   661  	return "pkg/tcpip.ErrPortInUse"
   662  }
   663  
   664  func (e *ErrPortInUse) StateFields() []string {
   665  	return []string{}
   666  }
   667  
   668  func (e *ErrPortInUse) beforeSave() {}
   669  
   670  // +checklocksignore
   671  func (e *ErrPortInUse) StateSave(stateSinkObject state.Sink) {
   672  	e.beforeSave()
   673  }
   674  
   675  func (e *ErrPortInUse) afterLoad() {}
   676  
   677  // +checklocksignore
   678  func (e *ErrPortInUse) StateLoad(stateSourceObject state.Source) {
   679  }
   680  
   681  func (e *ErrQueueSizeNotSupported) StateTypeName() string {
   682  	return "pkg/tcpip.ErrQueueSizeNotSupported"
   683  }
   684  
   685  func (e *ErrQueueSizeNotSupported) StateFields() []string {
   686  	return []string{}
   687  }
   688  
   689  func (e *ErrQueueSizeNotSupported) beforeSave() {}
   690  
   691  // +checklocksignore
   692  func (e *ErrQueueSizeNotSupported) StateSave(stateSinkObject state.Sink) {
   693  	e.beforeSave()
   694  }
   695  
   696  func (e *ErrQueueSizeNotSupported) afterLoad() {}
   697  
   698  // +checklocksignore
   699  func (e *ErrQueueSizeNotSupported) StateLoad(stateSourceObject state.Source) {
   700  }
   701  
   702  func (e *ErrTimeout) StateTypeName() string {
   703  	return "pkg/tcpip.ErrTimeout"
   704  }
   705  
   706  func (e *ErrTimeout) StateFields() []string {
   707  	return []string{}
   708  }
   709  
   710  func (e *ErrTimeout) beforeSave() {}
   711  
   712  // +checklocksignore
   713  func (e *ErrTimeout) StateSave(stateSinkObject state.Sink) {
   714  	e.beforeSave()
   715  }
   716  
   717  func (e *ErrTimeout) afterLoad() {}
   718  
   719  // +checklocksignore
   720  func (e *ErrTimeout) StateLoad(stateSourceObject state.Source) {
   721  }
   722  
   723  func (e *ErrUnknownDevice) StateTypeName() string {
   724  	return "pkg/tcpip.ErrUnknownDevice"
   725  }
   726  
   727  func (e *ErrUnknownDevice) StateFields() []string {
   728  	return []string{}
   729  }
   730  
   731  func (e *ErrUnknownDevice) beforeSave() {}
   732  
   733  // +checklocksignore
   734  func (e *ErrUnknownDevice) StateSave(stateSinkObject state.Sink) {
   735  	e.beforeSave()
   736  }
   737  
   738  func (e *ErrUnknownDevice) afterLoad() {}
   739  
   740  // +checklocksignore
   741  func (e *ErrUnknownDevice) StateLoad(stateSourceObject state.Source) {
   742  }
   743  
   744  func (e *ErrUnknownNICID) StateTypeName() string {
   745  	return "pkg/tcpip.ErrUnknownNICID"
   746  }
   747  
   748  func (e *ErrUnknownNICID) StateFields() []string {
   749  	return []string{}
   750  }
   751  
   752  func (e *ErrUnknownNICID) beforeSave() {}
   753  
   754  // +checklocksignore
   755  func (e *ErrUnknownNICID) StateSave(stateSinkObject state.Sink) {
   756  	e.beforeSave()
   757  }
   758  
   759  func (e *ErrUnknownNICID) afterLoad() {}
   760  
   761  // +checklocksignore
   762  func (e *ErrUnknownNICID) StateLoad(stateSourceObject state.Source) {
   763  }
   764  
   765  func (e *ErrUnknownProtocol) StateTypeName() string {
   766  	return "pkg/tcpip.ErrUnknownProtocol"
   767  }
   768  
   769  func (e *ErrUnknownProtocol) StateFields() []string {
   770  	return []string{}
   771  }
   772  
   773  func (e *ErrUnknownProtocol) beforeSave() {}
   774  
   775  // +checklocksignore
   776  func (e *ErrUnknownProtocol) StateSave(stateSinkObject state.Sink) {
   777  	e.beforeSave()
   778  }
   779  
   780  func (e *ErrUnknownProtocol) afterLoad() {}
   781  
   782  // +checklocksignore
   783  func (e *ErrUnknownProtocol) StateLoad(stateSourceObject state.Source) {
   784  }
   785  
   786  func (e *ErrUnknownProtocolOption) StateTypeName() string {
   787  	return "pkg/tcpip.ErrUnknownProtocolOption"
   788  }
   789  
   790  func (e *ErrUnknownProtocolOption) StateFields() []string {
   791  	return []string{}
   792  }
   793  
   794  func (e *ErrUnknownProtocolOption) beforeSave() {}
   795  
   796  // +checklocksignore
   797  func (e *ErrUnknownProtocolOption) StateSave(stateSinkObject state.Sink) {
   798  	e.beforeSave()
   799  }
   800  
   801  func (e *ErrUnknownProtocolOption) afterLoad() {}
   802  
   803  // +checklocksignore
   804  func (e *ErrUnknownProtocolOption) StateLoad(stateSourceObject state.Source) {
   805  }
   806  
   807  func (e *ErrWouldBlock) StateTypeName() string {
   808  	return "pkg/tcpip.ErrWouldBlock"
   809  }
   810  
   811  func (e *ErrWouldBlock) StateFields() []string {
   812  	return []string{}
   813  }
   814  
   815  func (e *ErrWouldBlock) beforeSave() {}
   816  
   817  // +checklocksignore
   818  func (e *ErrWouldBlock) StateSave(stateSinkObject state.Sink) {
   819  	e.beforeSave()
   820  }
   821  
   822  func (e *ErrWouldBlock) afterLoad() {}
   823  
   824  // +checklocksignore
   825  func (e *ErrWouldBlock) StateLoad(stateSourceObject state.Source) {
   826  }
   827  
   828  func (l *sockErrorList) StateTypeName() string {
   829  	return "pkg/tcpip.sockErrorList"
   830  }
   831  
   832  func (l *sockErrorList) StateFields() []string {
   833  	return []string{
   834  		"head",
   835  		"tail",
   836  	}
   837  }
   838  
   839  func (l *sockErrorList) beforeSave() {}
   840  
   841  // +checklocksignore
   842  func (l *sockErrorList) StateSave(stateSinkObject state.Sink) {
   843  	l.beforeSave()
   844  	stateSinkObject.Save(0, &l.head)
   845  	stateSinkObject.Save(1, &l.tail)
   846  }
   847  
   848  func (l *sockErrorList) afterLoad() {}
   849  
   850  // +checklocksignore
   851  func (l *sockErrorList) StateLoad(stateSourceObject state.Source) {
   852  	stateSourceObject.Load(0, &l.head)
   853  	stateSourceObject.Load(1, &l.tail)
   854  }
   855  
   856  func (e *sockErrorEntry) StateTypeName() string {
   857  	return "pkg/tcpip.sockErrorEntry"
   858  }
   859  
   860  func (e *sockErrorEntry) StateFields() []string {
   861  	return []string{
   862  		"next",
   863  		"prev",
   864  	}
   865  }
   866  
   867  func (e *sockErrorEntry) beforeSave() {}
   868  
   869  // +checklocksignore
   870  func (e *sockErrorEntry) StateSave(stateSinkObject state.Sink) {
   871  	e.beforeSave()
   872  	stateSinkObject.Save(0, &e.next)
   873  	stateSinkObject.Save(1, &e.prev)
   874  }
   875  
   876  func (e *sockErrorEntry) afterLoad() {}
   877  
   878  // +checklocksignore
   879  func (e *sockErrorEntry) StateLoad(stateSourceObject state.Source) {
   880  	stateSourceObject.Load(0, &e.next)
   881  	stateSourceObject.Load(1, &e.prev)
   882  }
   883  
   884  func (so *SocketOptions) StateTypeName() string {
   885  	return "pkg/tcpip.SocketOptions"
   886  }
   887  
   888  func (so *SocketOptions) StateFields() []string {
   889  	return []string{
   890  		"handler",
   891  		"broadcastEnabled",
   892  		"passCredEnabled",
   893  		"noChecksumEnabled",
   894  		"reuseAddressEnabled",
   895  		"reusePortEnabled",
   896  		"keepAliveEnabled",
   897  		"multicastLoopEnabled",
   898  		"receiveTOSEnabled",
   899  		"receiveTClassEnabled",
   900  		"receivePacketInfoEnabled",
   901  		"receiveIPv6PacketInfoEnabled",
   902  		"hdrIncludedEnabled",
   903  		"v6OnlyEnabled",
   904  		"quickAckEnabled",
   905  		"delayOptionEnabled",
   906  		"corkOptionEnabled",
   907  		"receiveOriginalDstAddress",
   908  		"recvErrEnabled",
   909  		"errQueue",
   910  		"bindToDevice",
   911  		"sendBufferSize",
   912  		"receiveBufferSize",
   913  		"linger",
   914  	}
   915  }
   916  
   917  func (so *SocketOptions) beforeSave() {}
   918  
   919  // +checklocksignore
   920  func (so *SocketOptions) StateSave(stateSinkObject state.Sink) {
   921  	so.beforeSave()
   922  	stateSinkObject.Save(0, &so.handler)
   923  	stateSinkObject.Save(1, &so.broadcastEnabled)
   924  	stateSinkObject.Save(2, &so.passCredEnabled)
   925  	stateSinkObject.Save(3, &so.noChecksumEnabled)
   926  	stateSinkObject.Save(4, &so.reuseAddressEnabled)
   927  	stateSinkObject.Save(5, &so.reusePortEnabled)
   928  	stateSinkObject.Save(6, &so.keepAliveEnabled)
   929  	stateSinkObject.Save(7, &so.multicastLoopEnabled)
   930  	stateSinkObject.Save(8, &so.receiveTOSEnabled)
   931  	stateSinkObject.Save(9, &so.receiveTClassEnabled)
   932  	stateSinkObject.Save(10, &so.receivePacketInfoEnabled)
   933  	stateSinkObject.Save(11, &so.receiveIPv6PacketInfoEnabled)
   934  	stateSinkObject.Save(12, &so.hdrIncludedEnabled)
   935  	stateSinkObject.Save(13, &so.v6OnlyEnabled)
   936  	stateSinkObject.Save(14, &so.quickAckEnabled)
   937  	stateSinkObject.Save(15, &so.delayOptionEnabled)
   938  	stateSinkObject.Save(16, &so.corkOptionEnabled)
   939  	stateSinkObject.Save(17, &so.receiveOriginalDstAddress)
   940  	stateSinkObject.Save(18, &so.recvErrEnabled)
   941  	stateSinkObject.Save(19, &so.errQueue)
   942  	stateSinkObject.Save(20, &so.bindToDevice)
   943  	stateSinkObject.Save(21, &so.sendBufferSize)
   944  	stateSinkObject.Save(22, &so.receiveBufferSize)
   945  	stateSinkObject.Save(23, &so.linger)
   946  }
   947  
   948  func (so *SocketOptions) afterLoad() {}
   949  
   950  // +checklocksignore
   951  func (so *SocketOptions) StateLoad(stateSourceObject state.Source) {
   952  	stateSourceObject.Load(0, &so.handler)
   953  	stateSourceObject.Load(1, &so.broadcastEnabled)
   954  	stateSourceObject.Load(2, &so.passCredEnabled)
   955  	stateSourceObject.Load(3, &so.noChecksumEnabled)
   956  	stateSourceObject.Load(4, &so.reuseAddressEnabled)
   957  	stateSourceObject.Load(5, &so.reusePortEnabled)
   958  	stateSourceObject.Load(6, &so.keepAliveEnabled)
   959  	stateSourceObject.Load(7, &so.multicastLoopEnabled)
   960  	stateSourceObject.Load(8, &so.receiveTOSEnabled)
   961  	stateSourceObject.Load(9, &so.receiveTClassEnabled)
   962  	stateSourceObject.Load(10, &so.receivePacketInfoEnabled)
   963  	stateSourceObject.Load(11, &so.receiveIPv6PacketInfoEnabled)
   964  	stateSourceObject.Load(12, &so.hdrIncludedEnabled)
   965  	stateSourceObject.Load(13, &so.v6OnlyEnabled)
   966  	stateSourceObject.Load(14, &so.quickAckEnabled)
   967  	stateSourceObject.Load(15, &so.delayOptionEnabled)
   968  	stateSourceObject.Load(16, &so.corkOptionEnabled)
   969  	stateSourceObject.Load(17, &so.receiveOriginalDstAddress)
   970  	stateSourceObject.Load(18, &so.recvErrEnabled)
   971  	stateSourceObject.Load(19, &so.errQueue)
   972  	stateSourceObject.Load(20, &so.bindToDevice)
   973  	stateSourceObject.Load(21, &so.sendBufferSize)
   974  	stateSourceObject.Load(22, &so.receiveBufferSize)
   975  	stateSourceObject.Load(23, &so.linger)
   976  }
   977  
   978  func (l *LocalSockError) StateTypeName() string {
   979  	return "pkg/tcpip.LocalSockError"
   980  }
   981  
   982  func (l *LocalSockError) StateFields() []string {
   983  	return []string{
   984  		"info",
   985  	}
   986  }
   987  
   988  func (l *LocalSockError) beforeSave() {}
   989  
   990  // +checklocksignore
   991  func (l *LocalSockError) StateSave(stateSinkObject state.Sink) {
   992  	l.beforeSave()
   993  	stateSinkObject.Save(0, &l.info)
   994  }
   995  
   996  func (l *LocalSockError) afterLoad() {}
   997  
   998  // +checklocksignore
   999  func (l *LocalSockError) StateLoad(stateSourceObject state.Source) {
  1000  	stateSourceObject.Load(0, &l.info)
  1001  }
  1002  
  1003  func (s *SockError) StateTypeName() string {
  1004  	return "pkg/tcpip.SockError"
  1005  }
  1006  
  1007  func (s *SockError) StateFields() []string {
  1008  	return []string{
  1009  		"sockErrorEntry",
  1010  		"Err",
  1011  		"Cause",
  1012  		"Payload",
  1013  		"Dst",
  1014  		"Offender",
  1015  		"NetProto",
  1016  	}
  1017  }
  1018  
  1019  func (s *SockError) beforeSave() {}
  1020  
  1021  // +checklocksignore
  1022  func (s *SockError) StateSave(stateSinkObject state.Sink) {
  1023  	s.beforeSave()
  1024  	stateSinkObject.Save(0, &s.sockErrorEntry)
  1025  	stateSinkObject.Save(1, &s.Err)
  1026  	stateSinkObject.Save(2, &s.Cause)
  1027  	stateSinkObject.Save(3, &s.Payload)
  1028  	stateSinkObject.Save(4, &s.Dst)
  1029  	stateSinkObject.Save(5, &s.Offender)
  1030  	stateSinkObject.Save(6, &s.NetProto)
  1031  }
  1032  
  1033  func (s *SockError) afterLoad() {}
  1034  
  1035  // +checklocksignore
  1036  func (s *SockError) StateLoad(stateSourceObject state.Source) {
  1037  	stateSourceObject.Load(0, &s.sockErrorEntry)
  1038  	stateSourceObject.Load(1, &s.Err)
  1039  	stateSourceObject.Load(2, &s.Cause)
  1040  	stateSourceObject.Load(3, &s.Payload)
  1041  	stateSourceObject.Load(4, &s.Dst)
  1042  	stateSourceObject.Load(5, &s.Offender)
  1043  	stateSourceObject.Load(6, &s.NetProto)
  1044  }
  1045  
  1046  func (s *stdClock) StateTypeName() string {
  1047  	return "pkg/tcpip.stdClock"
  1048  }
  1049  
  1050  func (s *stdClock) StateFields() []string {
  1051  	return []string{
  1052  		"maxMonotonic",
  1053  	}
  1054  }
  1055  
  1056  func (s *stdClock) beforeSave() {}
  1057  
  1058  // +checklocksignore
  1059  func (s *stdClock) StateSave(stateSinkObject state.Sink) {
  1060  	s.beforeSave()
  1061  	stateSinkObject.Save(0, &s.maxMonotonic)
  1062  }
  1063  
  1064  // +checklocksignore
  1065  func (s *stdClock) StateLoad(stateSourceObject state.Source) {
  1066  	stateSourceObject.Load(0, &s.maxMonotonic)
  1067  	stateSourceObject.AfterLoad(s.afterLoad)
  1068  }
  1069  
  1070  func (mt *MonotonicTime) StateTypeName() string {
  1071  	return "pkg/tcpip.MonotonicTime"
  1072  }
  1073  
  1074  func (mt *MonotonicTime) StateFields() []string {
  1075  	return []string{
  1076  		"nanoseconds",
  1077  	}
  1078  }
  1079  
  1080  func (mt *MonotonicTime) beforeSave() {}
  1081  
  1082  // +checklocksignore
  1083  func (mt *MonotonicTime) StateSave(stateSinkObject state.Sink) {
  1084  	mt.beforeSave()
  1085  	stateSinkObject.Save(0, &mt.nanoseconds)
  1086  }
  1087  
  1088  func (mt *MonotonicTime) afterLoad() {}
  1089  
  1090  // +checklocksignore
  1091  func (mt *MonotonicTime) StateLoad(stateSourceObject state.Source) {
  1092  	stateSourceObject.Load(0, &mt.nanoseconds)
  1093  }
  1094  
  1095  func (f *FullAddress) StateTypeName() string {
  1096  	return "pkg/tcpip.FullAddress"
  1097  }
  1098  
  1099  func (f *FullAddress) StateFields() []string {
  1100  	return []string{
  1101  		"NIC",
  1102  		"Addr",
  1103  		"Port",
  1104  	}
  1105  }
  1106  
  1107  func (f *FullAddress) beforeSave() {}
  1108  
  1109  // +checklocksignore
  1110  func (f *FullAddress) StateSave(stateSinkObject state.Sink) {
  1111  	f.beforeSave()
  1112  	stateSinkObject.Save(0, &f.NIC)
  1113  	stateSinkObject.Save(1, &f.Addr)
  1114  	stateSinkObject.Save(2, &f.Port)
  1115  }
  1116  
  1117  func (f *FullAddress) afterLoad() {}
  1118  
  1119  // +checklocksignore
  1120  func (f *FullAddress) StateLoad(stateSourceObject state.Source) {
  1121  	stateSourceObject.Load(0, &f.NIC)
  1122  	stateSourceObject.Load(1, &f.Addr)
  1123  	stateSourceObject.Load(2, &f.Port)
  1124  }
  1125  
  1126  func (c *ControlMessages) StateTypeName() string {
  1127  	return "pkg/tcpip.ControlMessages"
  1128  }
  1129  
  1130  func (c *ControlMessages) StateFields() []string {
  1131  	return []string{
  1132  		"HasTimestamp",
  1133  		"Timestamp",
  1134  		"HasInq",
  1135  		"Inq",
  1136  		"HasTOS",
  1137  		"TOS",
  1138  		"HasTClass",
  1139  		"TClass",
  1140  		"HasIPPacketInfo",
  1141  		"PacketInfo",
  1142  		"HasIPv6PacketInfo",
  1143  		"IPv6PacketInfo",
  1144  		"HasOriginalDstAddress",
  1145  		"OriginalDstAddress",
  1146  		"SockErr",
  1147  	}
  1148  }
  1149  
  1150  func (c *ControlMessages) beforeSave() {}
  1151  
  1152  // +checklocksignore
  1153  func (c *ControlMessages) StateSave(stateSinkObject state.Sink) {
  1154  	c.beforeSave()
  1155  	var TimestampValue int64
  1156  	TimestampValue = c.saveTimestamp()
  1157  	stateSinkObject.SaveValue(1, TimestampValue)
  1158  	stateSinkObject.Save(0, &c.HasTimestamp)
  1159  	stateSinkObject.Save(2, &c.HasInq)
  1160  	stateSinkObject.Save(3, &c.Inq)
  1161  	stateSinkObject.Save(4, &c.HasTOS)
  1162  	stateSinkObject.Save(5, &c.TOS)
  1163  	stateSinkObject.Save(6, &c.HasTClass)
  1164  	stateSinkObject.Save(7, &c.TClass)
  1165  	stateSinkObject.Save(8, &c.HasIPPacketInfo)
  1166  	stateSinkObject.Save(9, &c.PacketInfo)
  1167  	stateSinkObject.Save(10, &c.HasIPv6PacketInfo)
  1168  	stateSinkObject.Save(11, &c.IPv6PacketInfo)
  1169  	stateSinkObject.Save(12, &c.HasOriginalDstAddress)
  1170  	stateSinkObject.Save(13, &c.OriginalDstAddress)
  1171  	stateSinkObject.Save(14, &c.SockErr)
  1172  }
  1173  
  1174  func (c *ControlMessages) afterLoad() {}
  1175  
  1176  // +checklocksignore
  1177  func (c *ControlMessages) StateLoad(stateSourceObject state.Source) {
  1178  	stateSourceObject.Load(0, &c.HasTimestamp)
  1179  	stateSourceObject.Load(2, &c.HasInq)
  1180  	stateSourceObject.Load(3, &c.Inq)
  1181  	stateSourceObject.Load(4, &c.HasTOS)
  1182  	stateSourceObject.Load(5, &c.TOS)
  1183  	stateSourceObject.Load(6, &c.HasTClass)
  1184  	stateSourceObject.Load(7, &c.TClass)
  1185  	stateSourceObject.Load(8, &c.HasIPPacketInfo)
  1186  	stateSourceObject.Load(9, &c.PacketInfo)
  1187  	stateSourceObject.Load(10, &c.HasIPv6PacketInfo)
  1188  	stateSourceObject.Load(11, &c.IPv6PacketInfo)
  1189  	stateSourceObject.Load(12, &c.HasOriginalDstAddress)
  1190  	stateSourceObject.Load(13, &c.OriginalDstAddress)
  1191  	stateSourceObject.Load(14, &c.SockErr)
  1192  	stateSourceObject.LoadValue(1, new(int64), func(y interface{}) { c.loadTimestamp(y.(int64)) })
  1193  }
  1194  
  1195  func (l *LinkPacketInfo) StateTypeName() string {
  1196  	return "pkg/tcpip.LinkPacketInfo"
  1197  }
  1198  
  1199  func (l *LinkPacketInfo) StateFields() []string {
  1200  	return []string{
  1201  		"Protocol",
  1202  		"PktType",
  1203  	}
  1204  }
  1205  
  1206  func (l *LinkPacketInfo) beforeSave() {}
  1207  
  1208  // +checklocksignore
  1209  func (l *LinkPacketInfo) StateSave(stateSinkObject state.Sink) {
  1210  	l.beforeSave()
  1211  	stateSinkObject.Save(0, &l.Protocol)
  1212  	stateSinkObject.Save(1, &l.PktType)
  1213  }
  1214  
  1215  func (l *LinkPacketInfo) afterLoad() {}
  1216  
  1217  // +checklocksignore
  1218  func (l *LinkPacketInfo) StateLoad(stateSourceObject state.Source) {
  1219  	stateSourceObject.Load(0, &l.Protocol)
  1220  	stateSourceObject.Load(1, &l.PktType)
  1221  }
  1222  
  1223  func (l *LingerOption) StateTypeName() string {
  1224  	return "pkg/tcpip.LingerOption"
  1225  }
  1226  
  1227  func (l *LingerOption) StateFields() []string {
  1228  	return []string{
  1229  		"Enabled",
  1230  		"Timeout",
  1231  	}
  1232  }
  1233  
  1234  func (l *LingerOption) beforeSave() {}
  1235  
  1236  // +checklocksignore
  1237  func (l *LingerOption) StateSave(stateSinkObject state.Sink) {
  1238  	l.beforeSave()
  1239  	stateSinkObject.Save(0, &l.Enabled)
  1240  	stateSinkObject.Save(1, &l.Timeout)
  1241  }
  1242  
  1243  func (l *LingerOption) afterLoad() {}
  1244  
  1245  // +checklocksignore
  1246  func (l *LingerOption) StateLoad(stateSourceObject state.Source) {
  1247  	stateSourceObject.Load(0, &l.Enabled)
  1248  	stateSourceObject.Load(1, &l.Timeout)
  1249  }
  1250  
  1251  func (i *IPPacketInfo) StateTypeName() string {
  1252  	return "pkg/tcpip.IPPacketInfo"
  1253  }
  1254  
  1255  func (i *IPPacketInfo) StateFields() []string {
  1256  	return []string{
  1257  		"NIC",
  1258  		"LocalAddr",
  1259  		"DestinationAddr",
  1260  	}
  1261  }
  1262  
  1263  func (i *IPPacketInfo) beforeSave() {}
  1264  
  1265  // +checklocksignore
  1266  func (i *IPPacketInfo) StateSave(stateSinkObject state.Sink) {
  1267  	i.beforeSave()
  1268  	stateSinkObject.Save(0, &i.NIC)
  1269  	stateSinkObject.Save(1, &i.LocalAddr)
  1270  	stateSinkObject.Save(2, &i.DestinationAddr)
  1271  }
  1272  
  1273  func (i *IPPacketInfo) afterLoad() {}
  1274  
  1275  // +checklocksignore
  1276  func (i *IPPacketInfo) StateLoad(stateSourceObject state.Source) {
  1277  	stateSourceObject.Load(0, &i.NIC)
  1278  	stateSourceObject.Load(1, &i.LocalAddr)
  1279  	stateSourceObject.Load(2, &i.DestinationAddr)
  1280  }
  1281  
  1282  func (i *IPv6PacketInfo) StateTypeName() string {
  1283  	return "pkg/tcpip.IPv6PacketInfo"
  1284  }
  1285  
  1286  func (i *IPv6PacketInfo) StateFields() []string {
  1287  	return []string{
  1288  		"Addr",
  1289  		"NIC",
  1290  	}
  1291  }
  1292  
  1293  func (i *IPv6PacketInfo) beforeSave() {}
  1294  
  1295  // +checklocksignore
  1296  func (i *IPv6PacketInfo) StateSave(stateSinkObject state.Sink) {
  1297  	i.beforeSave()
  1298  	stateSinkObject.Save(0, &i.Addr)
  1299  	stateSinkObject.Save(1, &i.NIC)
  1300  }
  1301  
  1302  func (i *IPv6PacketInfo) afterLoad() {}
  1303  
  1304  // +checklocksignore
  1305  func (i *IPv6PacketInfo) StateLoad(stateSourceObject state.Source) {
  1306  	stateSourceObject.Load(0, &i.Addr)
  1307  	stateSourceObject.Load(1, &i.NIC)
  1308  }
  1309  
  1310  func (s *StatCounter) StateTypeName() string {
  1311  	return "pkg/tcpip.StatCounter"
  1312  }
  1313  
  1314  func (s *StatCounter) StateFields() []string {
  1315  	return []string{
  1316  		"count",
  1317  	}
  1318  }
  1319  
  1320  func (s *StatCounter) beforeSave() {}
  1321  
  1322  // +checklocksignore
  1323  func (s *StatCounter) StateSave(stateSinkObject state.Sink) {
  1324  	s.beforeSave()
  1325  	stateSinkObject.Save(0, &s.count)
  1326  }
  1327  
  1328  func (s *StatCounter) afterLoad() {}
  1329  
  1330  // +checklocksignore
  1331  func (s *StatCounter) StateLoad(stateSourceObject state.Source) {
  1332  	stateSourceObject.Load(0, &s.count)
  1333  }
  1334  
  1335  func (r *ReceiveErrors) StateTypeName() string {
  1336  	return "pkg/tcpip.ReceiveErrors"
  1337  }
  1338  
  1339  func (r *ReceiveErrors) StateFields() []string {
  1340  	return []string{
  1341  		"ReceiveBufferOverflow",
  1342  		"MalformedPacketsReceived",
  1343  		"ClosedReceiver",
  1344  		"ChecksumErrors",
  1345  	}
  1346  }
  1347  
  1348  func (r *ReceiveErrors) beforeSave() {}
  1349  
  1350  // +checklocksignore
  1351  func (r *ReceiveErrors) StateSave(stateSinkObject state.Sink) {
  1352  	r.beforeSave()
  1353  	stateSinkObject.Save(0, &r.ReceiveBufferOverflow)
  1354  	stateSinkObject.Save(1, &r.MalformedPacketsReceived)
  1355  	stateSinkObject.Save(2, &r.ClosedReceiver)
  1356  	stateSinkObject.Save(3, &r.ChecksumErrors)
  1357  }
  1358  
  1359  func (r *ReceiveErrors) afterLoad() {}
  1360  
  1361  // +checklocksignore
  1362  func (r *ReceiveErrors) StateLoad(stateSourceObject state.Source) {
  1363  	stateSourceObject.Load(0, &r.ReceiveBufferOverflow)
  1364  	stateSourceObject.Load(1, &r.MalformedPacketsReceived)
  1365  	stateSourceObject.Load(2, &r.ClosedReceiver)
  1366  	stateSourceObject.Load(3, &r.ChecksumErrors)
  1367  }
  1368  
  1369  func (s *SendErrors) StateTypeName() string {
  1370  	return "pkg/tcpip.SendErrors"
  1371  }
  1372  
  1373  func (s *SendErrors) StateFields() []string {
  1374  	return []string{
  1375  		"SendToNetworkFailed",
  1376  		"NoRoute",
  1377  	}
  1378  }
  1379  
  1380  func (s *SendErrors) beforeSave() {}
  1381  
  1382  // +checklocksignore
  1383  func (s *SendErrors) StateSave(stateSinkObject state.Sink) {
  1384  	s.beforeSave()
  1385  	stateSinkObject.Save(0, &s.SendToNetworkFailed)
  1386  	stateSinkObject.Save(1, &s.NoRoute)
  1387  }
  1388  
  1389  func (s *SendErrors) afterLoad() {}
  1390  
  1391  // +checklocksignore
  1392  func (s *SendErrors) StateLoad(stateSourceObject state.Source) {
  1393  	stateSourceObject.Load(0, &s.SendToNetworkFailed)
  1394  	stateSourceObject.Load(1, &s.NoRoute)
  1395  }
  1396  
  1397  func (r *ReadErrors) StateTypeName() string {
  1398  	return "pkg/tcpip.ReadErrors"
  1399  }
  1400  
  1401  func (r *ReadErrors) StateFields() []string {
  1402  	return []string{
  1403  		"ReadClosed",
  1404  		"InvalidEndpointState",
  1405  		"NotConnected",
  1406  	}
  1407  }
  1408  
  1409  func (r *ReadErrors) beforeSave() {}
  1410  
  1411  // +checklocksignore
  1412  func (r *ReadErrors) StateSave(stateSinkObject state.Sink) {
  1413  	r.beforeSave()
  1414  	stateSinkObject.Save(0, &r.ReadClosed)
  1415  	stateSinkObject.Save(1, &r.InvalidEndpointState)
  1416  	stateSinkObject.Save(2, &r.NotConnected)
  1417  }
  1418  
  1419  func (r *ReadErrors) afterLoad() {}
  1420  
  1421  // +checklocksignore
  1422  func (r *ReadErrors) StateLoad(stateSourceObject state.Source) {
  1423  	stateSourceObject.Load(0, &r.ReadClosed)
  1424  	stateSourceObject.Load(1, &r.InvalidEndpointState)
  1425  	stateSourceObject.Load(2, &r.NotConnected)
  1426  }
  1427  
  1428  func (w *WriteErrors) StateTypeName() string {
  1429  	return "pkg/tcpip.WriteErrors"
  1430  }
  1431  
  1432  func (w *WriteErrors) StateFields() []string {
  1433  	return []string{
  1434  		"WriteClosed",
  1435  		"InvalidEndpointState",
  1436  		"InvalidArgs",
  1437  	}
  1438  }
  1439  
  1440  func (w *WriteErrors) beforeSave() {}
  1441  
  1442  // +checklocksignore
  1443  func (w *WriteErrors) StateSave(stateSinkObject state.Sink) {
  1444  	w.beforeSave()
  1445  	stateSinkObject.Save(0, &w.WriteClosed)
  1446  	stateSinkObject.Save(1, &w.InvalidEndpointState)
  1447  	stateSinkObject.Save(2, &w.InvalidArgs)
  1448  }
  1449  
  1450  func (w *WriteErrors) afterLoad() {}
  1451  
  1452  // +checklocksignore
  1453  func (w *WriteErrors) StateLoad(stateSourceObject state.Source) {
  1454  	stateSourceObject.Load(0, &w.WriteClosed)
  1455  	stateSourceObject.Load(1, &w.InvalidEndpointState)
  1456  	stateSourceObject.Load(2, &w.InvalidArgs)
  1457  }
  1458  
  1459  func (src *TransportEndpointStats) StateTypeName() string {
  1460  	return "pkg/tcpip.TransportEndpointStats"
  1461  }
  1462  
  1463  func (src *TransportEndpointStats) StateFields() []string {
  1464  	return []string{
  1465  		"PacketsReceived",
  1466  		"PacketsSent",
  1467  		"ReceiveErrors",
  1468  		"ReadErrors",
  1469  		"SendErrors",
  1470  		"WriteErrors",
  1471  	}
  1472  }
  1473  
  1474  func (src *TransportEndpointStats) beforeSave() {}
  1475  
  1476  // +checklocksignore
  1477  func (src *TransportEndpointStats) StateSave(stateSinkObject state.Sink) {
  1478  	src.beforeSave()
  1479  	stateSinkObject.Save(0, &src.PacketsReceived)
  1480  	stateSinkObject.Save(1, &src.PacketsSent)
  1481  	stateSinkObject.Save(2, &src.ReceiveErrors)
  1482  	stateSinkObject.Save(3, &src.ReadErrors)
  1483  	stateSinkObject.Save(4, &src.SendErrors)
  1484  	stateSinkObject.Save(5, &src.WriteErrors)
  1485  }
  1486  
  1487  func (src *TransportEndpointStats) afterLoad() {}
  1488  
  1489  // +checklocksignore
  1490  func (src *TransportEndpointStats) StateLoad(stateSourceObject state.Source) {
  1491  	stateSourceObject.Load(0, &src.PacketsReceived)
  1492  	stateSourceObject.Load(1, &src.PacketsSent)
  1493  	stateSourceObject.Load(2, &src.ReceiveErrors)
  1494  	stateSourceObject.Load(3, &src.ReadErrors)
  1495  	stateSourceObject.Load(4, &src.SendErrors)
  1496  	stateSourceObject.Load(5, &src.WriteErrors)
  1497  }
  1498  
  1499  func init() {
  1500  	state.Register((*ErrAborted)(nil))
  1501  	state.Register((*ErrAddressFamilyNotSupported)(nil))
  1502  	state.Register((*ErrAlreadyBound)(nil))
  1503  	state.Register((*ErrAlreadyConnected)(nil))
  1504  	state.Register((*ErrAlreadyConnecting)(nil))
  1505  	state.Register((*ErrBadAddress)(nil))
  1506  	state.Register((*ErrBadBuffer)(nil))
  1507  	state.Register((*ErrBadLocalAddress)(nil))
  1508  	state.Register((*ErrBroadcastDisabled)(nil))
  1509  	state.Register((*ErrClosedForReceive)(nil))
  1510  	state.Register((*ErrClosedForSend)(nil))
  1511  	state.Register((*ErrConnectStarted)(nil))
  1512  	state.Register((*ErrConnectionAborted)(nil))
  1513  	state.Register((*ErrConnectionRefused)(nil))
  1514  	state.Register((*ErrConnectionReset)(nil))
  1515  	state.Register((*ErrDestinationRequired)(nil))
  1516  	state.Register((*ErrDuplicateAddress)(nil))
  1517  	state.Register((*ErrDuplicateNICID)(nil))
  1518  	state.Register((*ErrInvalidEndpointState)(nil))
  1519  	state.Register((*ErrInvalidOptionValue)(nil))
  1520  	state.Register((*ErrInvalidPortRange)(nil))
  1521  	state.Register((*ErrMalformedHeader)(nil))
  1522  	state.Register((*ErrMessageTooLong)(nil))
  1523  	state.Register((*ErrNetworkUnreachable)(nil))
  1524  	state.Register((*ErrNoBufferSpace)(nil))
  1525  	state.Register((*ErrNoPortAvailable)(nil))
  1526  	state.Register((*ErrNoRoute)(nil))
  1527  	state.Register((*ErrNoSuchFile)(nil))
  1528  	state.Register((*ErrNotConnected)(nil))
  1529  	state.Register((*ErrNotPermitted)(nil))
  1530  	state.Register((*ErrNotSupported)(nil))
  1531  	state.Register((*ErrPortInUse)(nil))
  1532  	state.Register((*ErrQueueSizeNotSupported)(nil))
  1533  	state.Register((*ErrTimeout)(nil))
  1534  	state.Register((*ErrUnknownDevice)(nil))
  1535  	state.Register((*ErrUnknownNICID)(nil))
  1536  	state.Register((*ErrUnknownProtocol)(nil))
  1537  	state.Register((*ErrUnknownProtocolOption)(nil))
  1538  	state.Register((*ErrWouldBlock)(nil))
  1539  	state.Register((*sockErrorList)(nil))
  1540  	state.Register((*sockErrorEntry)(nil))
  1541  	state.Register((*SocketOptions)(nil))
  1542  	state.Register((*LocalSockError)(nil))
  1543  	state.Register((*SockError)(nil))
  1544  	state.Register((*stdClock)(nil))
  1545  	state.Register((*MonotonicTime)(nil))
  1546  	state.Register((*FullAddress)(nil))
  1547  	state.Register((*ControlMessages)(nil))
  1548  	state.Register((*LinkPacketInfo)(nil))
  1549  	state.Register((*LingerOption)(nil))
  1550  	state.Register((*IPPacketInfo)(nil))
  1551  	state.Register((*IPv6PacketInfo)(nil))
  1552  	state.Register((*StatCounter)(nil))
  1553  	state.Register((*ReceiveErrors)(nil))
  1554  	state.Register((*SendErrors)(nil))
  1555  	state.Register((*ReadErrors)(nil))
  1556  	state.Register((*WriteErrors)(nil))
  1557  	state.Register((*TransportEndpointStats)(nil))
  1558  }