github.com/MerlinKodo/gvisor@v0.0.0-20231110090155-957f62ecf90e/pkg/tcpip/tcpip_state_autogen.go (about) 1 // automatically generated by stateify. 2 3 package tcpip 4 5 import ( 6 "github.com/MerlinKodo/gvisor/pkg/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 *ErrHostUnreachable) StateTypeName() string { 556 return "pkg/tcpip.ErrHostUnreachable" 557 } 558 559 func (e *ErrHostUnreachable) StateFields() []string { 560 return []string{} 561 } 562 563 func (e *ErrHostUnreachable) beforeSave() {} 564 565 // +checklocksignore 566 func (e *ErrHostUnreachable) StateSave(stateSinkObject state.Sink) { 567 e.beforeSave() 568 } 569 570 func (e *ErrHostUnreachable) afterLoad() {} 571 572 // +checklocksignore 573 func (e *ErrHostUnreachable) StateLoad(stateSourceObject state.Source) { 574 } 575 576 func (e *ErrHostDown) StateTypeName() string { 577 return "pkg/tcpip.ErrHostDown" 578 } 579 580 func (e *ErrHostDown) StateFields() []string { 581 return []string{} 582 } 583 584 func (e *ErrHostDown) beforeSave() {} 585 586 // +checklocksignore 587 func (e *ErrHostDown) StateSave(stateSinkObject state.Sink) { 588 e.beforeSave() 589 } 590 591 func (e *ErrHostDown) afterLoad() {} 592 593 // +checklocksignore 594 func (e *ErrHostDown) StateLoad(stateSourceObject state.Source) { 595 } 596 597 func (e *ErrNoNet) StateTypeName() string { 598 return "pkg/tcpip.ErrNoNet" 599 } 600 601 func (e *ErrNoNet) StateFields() []string { 602 return []string{} 603 } 604 605 func (e *ErrNoNet) beforeSave() {} 606 607 // +checklocksignore 608 func (e *ErrNoNet) StateSave(stateSinkObject state.Sink) { 609 e.beforeSave() 610 } 611 612 func (e *ErrNoNet) afterLoad() {} 613 614 // +checklocksignore 615 func (e *ErrNoNet) StateLoad(stateSourceObject state.Source) { 616 } 617 618 func (e *ErrNoSuchFile) StateTypeName() string { 619 return "pkg/tcpip.ErrNoSuchFile" 620 } 621 622 func (e *ErrNoSuchFile) StateFields() []string { 623 return []string{} 624 } 625 626 func (e *ErrNoSuchFile) beforeSave() {} 627 628 // +checklocksignore 629 func (e *ErrNoSuchFile) StateSave(stateSinkObject state.Sink) { 630 e.beforeSave() 631 } 632 633 func (e *ErrNoSuchFile) afterLoad() {} 634 635 // +checklocksignore 636 func (e *ErrNoSuchFile) StateLoad(stateSourceObject state.Source) { 637 } 638 639 func (e *ErrNotConnected) StateTypeName() string { 640 return "pkg/tcpip.ErrNotConnected" 641 } 642 643 func (e *ErrNotConnected) StateFields() []string { 644 return []string{} 645 } 646 647 func (e *ErrNotConnected) beforeSave() {} 648 649 // +checklocksignore 650 func (e *ErrNotConnected) StateSave(stateSinkObject state.Sink) { 651 e.beforeSave() 652 } 653 654 func (e *ErrNotConnected) afterLoad() {} 655 656 // +checklocksignore 657 func (e *ErrNotConnected) StateLoad(stateSourceObject state.Source) { 658 } 659 660 func (e *ErrNotPermitted) StateTypeName() string { 661 return "pkg/tcpip.ErrNotPermitted" 662 } 663 664 func (e *ErrNotPermitted) StateFields() []string { 665 return []string{} 666 } 667 668 func (e *ErrNotPermitted) beforeSave() {} 669 670 // +checklocksignore 671 func (e *ErrNotPermitted) StateSave(stateSinkObject state.Sink) { 672 e.beforeSave() 673 } 674 675 func (e *ErrNotPermitted) afterLoad() {} 676 677 // +checklocksignore 678 func (e *ErrNotPermitted) StateLoad(stateSourceObject state.Source) { 679 } 680 681 func (e *ErrNotSupported) StateTypeName() string { 682 return "pkg/tcpip.ErrNotSupported" 683 } 684 685 func (e *ErrNotSupported) StateFields() []string { 686 return []string{} 687 } 688 689 func (e *ErrNotSupported) beforeSave() {} 690 691 // +checklocksignore 692 func (e *ErrNotSupported) StateSave(stateSinkObject state.Sink) { 693 e.beforeSave() 694 } 695 696 func (e *ErrNotSupported) afterLoad() {} 697 698 // +checklocksignore 699 func (e *ErrNotSupported) StateLoad(stateSourceObject state.Source) { 700 } 701 702 func (e *ErrPortInUse) StateTypeName() string { 703 return "pkg/tcpip.ErrPortInUse" 704 } 705 706 func (e *ErrPortInUse) StateFields() []string { 707 return []string{} 708 } 709 710 func (e *ErrPortInUse) beforeSave() {} 711 712 // +checklocksignore 713 func (e *ErrPortInUse) StateSave(stateSinkObject state.Sink) { 714 e.beforeSave() 715 } 716 717 func (e *ErrPortInUse) afterLoad() {} 718 719 // +checklocksignore 720 func (e *ErrPortInUse) StateLoad(stateSourceObject state.Source) { 721 } 722 723 func (e *ErrQueueSizeNotSupported) StateTypeName() string { 724 return "pkg/tcpip.ErrQueueSizeNotSupported" 725 } 726 727 func (e *ErrQueueSizeNotSupported) StateFields() []string { 728 return []string{} 729 } 730 731 func (e *ErrQueueSizeNotSupported) beforeSave() {} 732 733 // +checklocksignore 734 func (e *ErrQueueSizeNotSupported) StateSave(stateSinkObject state.Sink) { 735 e.beforeSave() 736 } 737 738 func (e *ErrQueueSizeNotSupported) afterLoad() {} 739 740 // +checklocksignore 741 func (e *ErrQueueSizeNotSupported) StateLoad(stateSourceObject state.Source) { 742 } 743 744 func (e *ErrTimeout) StateTypeName() string { 745 return "pkg/tcpip.ErrTimeout" 746 } 747 748 func (e *ErrTimeout) StateFields() []string { 749 return []string{} 750 } 751 752 func (e *ErrTimeout) beforeSave() {} 753 754 // +checklocksignore 755 func (e *ErrTimeout) StateSave(stateSinkObject state.Sink) { 756 e.beforeSave() 757 } 758 759 func (e *ErrTimeout) afterLoad() {} 760 761 // +checklocksignore 762 func (e *ErrTimeout) StateLoad(stateSourceObject state.Source) { 763 } 764 765 func (e *ErrUnknownDevice) StateTypeName() string { 766 return "pkg/tcpip.ErrUnknownDevice" 767 } 768 769 func (e *ErrUnknownDevice) StateFields() []string { 770 return []string{} 771 } 772 773 func (e *ErrUnknownDevice) beforeSave() {} 774 775 // +checklocksignore 776 func (e *ErrUnknownDevice) StateSave(stateSinkObject state.Sink) { 777 e.beforeSave() 778 } 779 780 func (e *ErrUnknownDevice) afterLoad() {} 781 782 // +checklocksignore 783 func (e *ErrUnknownDevice) StateLoad(stateSourceObject state.Source) { 784 } 785 786 func (e *ErrUnknownNICID) StateTypeName() string { 787 return "pkg/tcpip.ErrUnknownNICID" 788 } 789 790 func (e *ErrUnknownNICID) StateFields() []string { 791 return []string{} 792 } 793 794 func (e *ErrUnknownNICID) beforeSave() {} 795 796 // +checklocksignore 797 func (e *ErrUnknownNICID) StateSave(stateSinkObject state.Sink) { 798 e.beforeSave() 799 } 800 801 func (e *ErrUnknownNICID) afterLoad() {} 802 803 // +checklocksignore 804 func (e *ErrUnknownNICID) StateLoad(stateSourceObject state.Source) { 805 } 806 807 func (e *ErrUnknownProtocol) StateTypeName() string { 808 return "pkg/tcpip.ErrUnknownProtocol" 809 } 810 811 func (e *ErrUnknownProtocol) StateFields() []string { 812 return []string{} 813 } 814 815 func (e *ErrUnknownProtocol) beforeSave() {} 816 817 // +checklocksignore 818 func (e *ErrUnknownProtocol) StateSave(stateSinkObject state.Sink) { 819 e.beforeSave() 820 } 821 822 func (e *ErrUnknownProtocol) afterLoad() {} 823 824 // +checklocksignore 825 func (e *ErrUnknownProtocol) StateLoad(stateSourceObject state.Source) { 826 } 827 828 func (e *ErrUnknownProtocolOption) StateTypeName() string { 829 return "pkg/tcpip.ErrUnknownProtocolOption" 830 } 831 832 func (e *ErrUnknownProtocolOption) StateFields() []string { 833 return []string{} 834 } 835 836 func (e *ErrUnknownProtocolOption) beforeSave() {} 837 838 // +checklocksignore 839 func (e *ErrUnknownProtocolOption) StateSave(stateSinkObject state.Sink) { 840 e.beforeSave() 841 } 842 843 func (e *ErrUnknownProtocolOption) afterLoad() {} 844 845 // +checklocksignore 846 func (e *ErrUnknownProtocolOption) StateLoad(stateSourceObject state.Source) { 847 } 848 849 func (e *ErrWouldBlock) StateTypeName() string { 850 return "pkg/tcpip.ErrWouldBlock" 851 } 852 853 func (e *ErrWouldBlock) StateFields() []string { 854 return []string{} 855 } 856 857 func (e *ErrWouldBlock) beforeSave() {} 858 859 // +checklocksignore 860 func (e *ErrWouldBlock) StateSave(stateSinkObject state.Sink) { 861 e.beforeSave() 862 } 863 864 func (e *ErrWouldBlock) afterLoad() {} 865 866 // +checklocksignore 867 func (e *ErrWouldBlock) StateLoad(stateSourceObject state.Source) { 868 } 869 870 func (e *ErrMissingRequiredFields) StateTypeName() string { 871 return "pkg/tcpip.ErrMissingRequiredFields" 872 } 873 874 func (e *ErrMissingRequiredFields) StateFields() []string { 875 return []string{} 876 } 877 878 func (e *ErrMissingRequiredFields) beforeSave() {} 879 880 // +checklocksignore 881 func (e *ErrMissingRequiredFields) StateSave(stateSinkObject state.Sink) { 882 e.beforeSave() 883 } 884 885 func (e *ErrMissingRequiredFields) afterLoad() {} 886 887 // +checklocksignore 888 func (e *ErrMissingRequiredFields) StateLoad(stateSourceObject state.Source) { 889 } 890 891 func (e *ErrMulticastInputCannotBeOutput) StateTypeName() string { 892 return "pkg/tcpip.ErrMulticastInputCannotBeOutput" 893 } 894 895 func (e *ErrMulticastInputCannotBeOutput) StateFields() []string { 896 return []string{} 897 } 898 899 func (e *ErrMulticastInputCannotBeOutput) beforeSave() {} 900 901 // +checklocksignore 902 func (e *ErrMulticastInputCannotBeOutput) StateSave(stateSinkObject state.Sink) { 903 e.beforeSave() 904 } 905 906 func (e *ErrMulticastInputCannotBeOutput) afterLoad() {} 907 908 // +checklocksignore 909 func (e *ErrMulticastInputCannotBeOutput) StateLoad(stateSourceObject state.Source) { 910 } 911 912 func (l *sockErrorList) StateTypeName() string { 913 return "pkg/tcpip.sockErrorList" 914 } 915 916 func (l *sockErrorList) StateFields() []string { 917 return []string{ 918 "head", 919 "tail", 920 } 921 } 922 923 func (l *sockErrorList) beforeSave() {} 924 925 // +checklocksignore 926 func (l *sockErrorList) StateSave(stateSinkObject state.Sink) { 927 l.beforeSave() 928 stateSinkObject.Save(0, &l.head) 929 stateSinkObject.Save(1, &l.tail) 930 } 931 932 func (l *sockErrorList) afterLoad() {} 933 934 // +checklocksignore 935 func (l *sockErrorList) StateLoad(stateSourceObject state.Source) { 936 stateSourceObject.Load(0, &l.head) 937 stateSourceObject.Load(1, &l.tail) 938 } 939 940 func (e *sockErrorEntry) StateTypeName() string { 941 return "pkg/tcpip.sockErrorEntry" 942 } 943 944 func (e *sockErrorEntry) StateFields() []string { 945 return []string{ 946 "next", 947 "prev", 948 } 949 } 950 951 func (e *sockErrorEntry) beforeSave() {} 952 953 // +checklocksignore 954 func (e *sockErrorEntry) StateSave(stateSinkObject state.Sink) { 955 e.beforeSave() 956 stateSinkObject.Save(0, &e.next) 957 stateSinkObject.Save(1, &e.prev) 958 } 959 960 func (e *sockErrorEntry) afterLoad() {} 961 962 // +checklocksignore 963 func (e *sockErrorEntry) StateLoad(stateSourceObject state.Source) { 964 stateSourceObject.Load(0, &e.next) 965 stateSourceObject.Load(1, &e.prev) 966 } 967 968 func (so *SocketOptions) StateTypeName() string { 969 return "pkg/tcpip.SocketOptions" 970 } 971 972 func (so *SocketOptions) StateFields() []string { 973 return []string{ 974 "handler", 975 "broadcastEnabled", 976 "passCredEnabled", 977 "noChecksumEnabled", 978 "reuseAddressEnabled", 979 "reusePortEnabled", 980 "keepAliveEnabled", 981 "multicastLoopEnabled", 982 "receiveTOSEnabled", 983 "receiveTTLEnabled", 984 "receiveHopLimitEnabled", 985 "receiveTClassEnabled", 986 "receivePacketInfoEnabled", 987 "receiveIPv6PacketInfoEnabled", 988 "hdrIncludedEnabled", 989 "v6OnlyEnabled", 990 "quickAckEnabled", 991 "delayOptionEnabled", 992 "corkOptionEnabled", 993 "receiveOriginalDstAddress", 994 "ipv4RecvErrEnabled", 995 "ipv6RecvErrEnabled", 996 "errQueue", 997 "bindToDevice", 998 "sendBufferSize", 999 "receiveBufferSize", 1000 "linger", 1001 "rcvlowat", 1002 } 1003 } 1004 1005 func (so *SocketOptions) beforeSave() {} 1006 1007 // +checklocksignore 1008 func (so *SocketOptions) StateSave(stateSinkObject state.Sink) { 1009 so.beforeSave() 1010 stateSinkObject.Save(0, &so.handler) 1011 stateSinkObject.Save(1, &so.broadcastEnabled) 1012 stateSinkObject.Save(2, &so.passCredEnabled) 1013 stateSinkObject.Save(3, &so.noChecksumEnabled) 1014 stateSinkObject.Save(4, &so.reuseAddressEnabled) 1015 stateSinkObject.Save(5, &so.reusePortEnabled) 1016 stateSinkObject.Save(6, &so.keepAliveEnabled) 1017 stateSinkObject.Save(7, &so.multicastLoopEnabled) 1018 stateSinkObject.Save(8, &so.receiveTOSEnabled) 1019 stateSinkObject.Save(9, &so.receiveTTLEnabled) 1020 stateSinkObject.Save(10, &so.receiveHopLimitEnabled) 1021 stateSinkObject.Save(11, &so.receiveTClassEnabled) 1022 stateSinkObject.Save(12, &so.receivePacketInfoEnabled) 1023 stateSinkObject.Save(13, &so.receiveIPv6PacketInfoEnabled) 1024 stateSinkObject.Save(14, &so.hdrIncludedEnabled) 1025 stateSinkObject.Save(15, &so.v6OnlyEnabled) 1026 stateSinkObject.Save(16, &so.quickAckEnabled) 1027 stateSinkObject.Save(17, &so.delayOptionEnabled) 1028 stateSinkObject.Save(18, &so.corkOptionEnabled) 1029 stateSinkObject.Save(19, &so.receiveOriginalDstAddress) 1030 stateSinkObject.Save(20, &so.ipv4RecvErrEnabled) 1031 stateSinkObject.Save(21, &so.ipv6RecvErrEnabled) 1032 stateSinkObject.Save(22, &so.errQueue) 1033 stateSinkObject.Save(23, &so.bindToDevice) 1034 stateSinkObject.Save(24, &so.sendBufferSize) 1035 stateSinkObject.Save(25, &so.receiveBufferSize) 1036 stateSinkObject.Save(26, &so.linger) 1037 stateSinkObject.Save(27, &so.rcvlowat) 1038 } 1039 1040 func (so *SocketOptions) afterLoad() {} 1041 1042 // +checklocksignore 1043 func (so *SocketOptions) StateLoad(stateSourceObject state.Source) { 1044 stateSourceObject.Load(0, &so.handler) 1045 stateSourceObject.Load(1, &so.broadcastEnabled) 1046 stateSourceObject.Load(2, &so.passCredEnabled) 1047 stateSourceObject.Load(3, &so.noChecksumEnabled) 1048 stateSourceObject.Load(4, &so.reuseAddressEnabled) 1049 stateSourceObject.Load(5, &so.reusePortEnabled) 1050 stateSourceObject.Load(6, &so.keepAliveEnabled) 1051 stateSourceObject.Load(7, &so.multicastLoopEnabled) 1052 stateSourceObject.Load(8, &so.receiveTOSEnabled) 1053 stateSourceObject.Load(9, &so.receiveTTLEnabled) 1054 stateSourceObject.Load(10, &so.receiveHopLimitEnabled) 1055 stateSourceObject.Load(11, &so.receiveTClassEnabled) 1056 stateSourceObject.Load(12, &so.receivePacketInfoEnabled) 1057 stateSourceObject.Load(13, &so.receiveIPv6PacketInfoEnabled) 1058 stateSourceObject.Load(14, &so.hdrIncludedEnabled) 1059 stateSourceObject.Load(15, &so.v6OnlyEnabled) 1060 stateSourceObject.Load(16, &so.quickAckEnabled) 1061 stateSourceObject.Load(17, &so.delayOptionEnabled) 1062 stateSourceObject.Load(18, &so.corkOptionEnabled) 1063 stateSourceObject.Load(19, &so.receiveOriginalDstAddress) 1064 stateSourceObject.Load(20, &so.ipv4RecvErrEnabled) 1065 stateSourceObject.Load(21, &so.ipv6RecvErrEnabled) 1066 stateSourceObject.Load(22, &so.errQueue) 1067 stateSourceObject.Load(23, &so.bindToDevice) 1068 stateSourceObject.Load(24, &so.sendBufferSize) 1069 stateSourceObject.Load(25, &so.receiveBufferSize) 1070 stateSourceObject.Load(26, &so.linger) 1071 stateSourceObject.Load(27, &so.rcvlowat) 1072 } 1073 1074 func (l *LocalSockError) StateTypeName() string { 1075 return "pkg/tcpip.LocalSockError" 1076 } 1077 1078 func (l *LocalSockError) StateFields() []string { 1079 return []string{ 1080 "info", 1081 } 1082 } 1083 1084 func (l *LocalSockError) beforeSave() {} 1085 1086 // +checklocksignore 1087 func (l *LocalSockError) StateSave(stateSinkObject state.Sink) { 1088 l.beforeSave() 1089 stateSinkObject.Save(0, &l.info) 1090 } 1091 1092 func (l *LocalSockError) afterLoad() {} 1093 1094 // +checklocksignore 1095 func (l *LocalSockError) StateLoad(stateSourceObject state.Source) { 1096 stateSourceObject.Load(0, &l.info) 1097 } 1098 1099 func (s *SockError) StateTypeName() string { 1100 return "pkg/tcpip.SockError" 1101 } 1102 1103 func (s *SockError) StateFields() []string { 1104 return []string{ 1105 "sockErrorEntry", 1106 "Err", 1107 "Cause", 1108 "Payload", 1109 "Dst", 1110 "Offender", 1111 "NetProto", 1112 } 1113 } 1114 1115 func (s *SockError) beforeSave() {} 1116 1117 // +checklocksignore 1118 func (s *SockError) StateSave(stateSinkObject state.Sink) { 1119 s.beforeSave() 1120 stateSinkObject.Save(0, &s.sockErrorEntry) 1121 stateSinkObject.Save(1, &s.Err) 1122 stateSinkObject.Save(2, &s.Cause) 1123 stateSinkObject.Save(3, &s.Payload) 1124 stateSinkObject.Save(4, &s.Dst) 1125 stateSinkObject.Save(5, &s.Offender) 1126 stateSinkObject.Save(6, &s.NetProto) 1127 } 1128 1129 func (s *SockError) afterLoad() {} 1130 1131 // +checklocksignore 1132 func (s *SockError) StateLoad(stateSourceObject state.Source) { 1133 stateSourceObject.Load(0, &s.sockErrorEntry) 1134 stateSourceObject.Load(1, &s.Err) 1135 stateSourceObject.Load(2, &s.Cause) 1136 stateSourceObject.Load(3, &s.Payload) 1137 stateSourceObject.Load(4, &s.Dst) 1138 stateSourceObject.Load(5, &s.Offender) 1139 stateSourceObject.Load(6, &s.NetProto) 1140 } 1141 1142 func (s *stdClock) StateTypeName() string { 1143 return "pkg/tcpip.stdClock" 1144 } 1145 1146 func (s *stdClock) StateFields() []string { 1147 return []string{ 1148 "monotonicOffset", 1149 } 1150 } 1151 1152 // +checklocksignore 1153 func (s *stdClock) StateSave(stateSinkObject state.Sink) { 1154 s.beforeSave() 1155 stateSinkObject.Save(0, &s.monotonicOffset) 1156 } 1157 1158 // +checklocksignore 1159 func (s *stdClock) StateLoad(stateSourceObject state.Source) { 1160 stateSourceObject.Load(0, &s.monotonicOffset) 1161 stateSourceObject.AfterLoad(s.afterLoad) 1162 } 1163 1164 func (mt *MonotonicTime) StateTypeName() string { 1165 return "pkg/tcpip.MonotonicTime" 1166 } 1167 1168 func (mt *MonotonicTime) StateFields() []string { 1169 return []string{ 1170 "nanoseconds", 1171 } 1172 } 1173 1174 func (mt *MonotonicTime) beforeSave() {} 1175 1176 // +checklocksignore 1177 func (mt *MonotonicTime) StateSave(stateSinkObject state.Sink) { 1178 mt.beforeSave() 1179 stateSinkObject.Save(0, &mt.nanoseconds) 1180 } 1181 1182 func (mt *MonotonicTime) afterLoad() {} 1183 1184 // +checklocksignore 1185 func (mt *MonotonicTime) StateLoad(stateSourceObject state.Source) { 1186 stateSourceObject.Load(0, &mt.nanoseconds) 1187 } 1188 1189 func (a *Address) StateTypeName() string { 1190 return "pkg/tcpip.Address" 1191 } 1192 1193 func (a *Address) StateFields() []string { 1194 return []string{ 1195 "addr", 1196 "length", 1197 } 1198 } 1199 1200 func (a *Address) beforeSave() {} 1201 1202 // +checklocksignore 1203 func (a *Address) StateSave(stateSinkObject state.Sink) { 1204 a.beforeSave() 1205 stateSinkObject.Save(0, &a.addr) 1206 stateSinkObject.Save(1, &a.length) 1207 } 1208 1209 func (a *Address) afterLoad() {} 1210 1211 // +checklocksignore 1212 func (a *Address) StateLoad(stateSourceObject state.Source) { 1213 stateSourceObject.Load(0, &a.addr) 1214 stateSourceObject.Load(1, &a.length) 1215 } 1216 1217 func (m *AddressMask) StateTypeName() string { 1218 return "pkg/tcpip.AddressMask" 1219 } 1220 1221 func (m *AddressMask) StateFields() []string { 1222 return []string{ 1223 "mask", 1224 } 1225 } 1226 1227 func (m *AddressMask) beforeSave() {} 1228 1229 // +checklocksignore 1230 func (m *AddressMask) StateSave(stateSinkObject state.Sink) { 1231 m.beforeSave() 1232 stateSinkObject.Save(0, &m.mask) 1233 } 1234 1235 func (m *AddressMask) afterLoad() {} 1236 1237 // +checklocksignore 1238 func (m *AddressMask) StateLoad(stateSourceObject state.Source) { 1239 stateSourceObject.Load(0, &m.mask) 1240 } 1241 1242 func (f *FullAddress) StateTypeName() string { 1243 return "pkg/tcpip.FullAddress" 1244 } 1245 1246 func (f *FullAddress) StateFields() []string { 1247 return []string{ 1248 "NIC", 1249 "Addr", 1250 "Port", 1251 "LinkAddr", 1252 } 1253 } 1254 1255 func (f *FullAddress) beforeSave() {} 1256 1257 // +checklocksignore 1258 func (f *FullAddress) StateSave(stateSinkObject state.Sink) { 1259 f.beforeSave() 1260 stateSinkObject.Save(0, &f.NIC) 1261 stateSinkObject.Save(1, &f.Addr) 1262 stateSinkObject.Save(2, &f.Port) 1263 stateSinkObject.Save(3, &f.LinkAddr) 1264 } 1265 1266 func (f *FullAddress) afterLoad() {} 1267 1268 // +checklocksignore 1269 func (f *FullAddress) StateLoad(stateSourceObject state.Source) { 1270 stateSourceObject.Load(0, &f.NIC) 1271 stateSourceObject.Load(1, &f.Addr) 1272 stateSourceObject.Load(2, &f.Port) 1273 stateSourceObject.Load(3, &f.LinkAddr) 1274 } 1275 1276 func (s *SendableControlMessages) StateTypeName() string { 1277 return "pkg/tcpip.SendableControlMessages" 1278 } 1279 1280 func (s *SendableControlMessages) StateFields() []string { 1281 return []string{ 1282 "HasTTL", 1283 "TTL", 1284 "HasHopLimit", 1285 "HopLimit", 1286 "HasIPv6PacketInfo", 1287 "IPv6PacketInfo", 1288 } 1289 } 1290 1291 func (s *SendableControlMessages) beforeSave() {} 1292 1293 // +checklocksignore 1294 func (s *SendableControlMessages) StateSave(stateSinkObject state.Sink) { 1295 s.beforeSave() 1296 stateSinkObject.Save(0, &s.HasTTL) 1297 stateSinkObject.Save(1, &s.TTL) 1298 stateSinkObject.Save(2, &s.HasHopLimit) 1299 stateSinkObject.Save(3, &s.HopLimit) 1300 stateSinkObject.Save(4, &s.HasIPv6PacketInfo) 1301 stateSinkObject.Save(5, &s.IPv6PacketInfo) 1302 } 1303 1304 func (s *SendableControlMessages) afterLoad() {} 1305 1306 // +checklocksignore 1307 func (s *SendableControlMessages) StateLoad(stateSourceObject state.Source) { 1308 stateSourceObject.Load(0, &s.HasTTL) 1309 stateSourceObject.Load(1, &s.TTL) 1310 stateSourceObject.Load(2, &s.HasHopLimit) 1311 stateSourceObject.Load(3, &s.HopLimit) 1312 stateSourceObject.Load(4, &s.HasIPv6PacketInfo) 1313 stateSourceObject.Load(5, &s.IPv6PacketInfo) 1314 } 1315 1316 func (c *ReceivableControlMessages) StateTypeName() string { 1317 return "pkg/tcpip.ReceivableControlMessages" 1318 } 1319 1320 func (c *ReceivableControlMessages) StateFields() []string { 1321 return []string{ 1322 "Timestamp", 1323 "HasInq", 1324 "Inq", 1325 "HasTOS", 1326 "TOS", 1327 "HasTTL", 1328 "TTL", 1329 "HasHopLimit", 1330 "HopLimit", 1331 "HasTimestamp", 1332 "HasTClass", 1333 "TClass", 1334 "HasIPPacketInfo", 1335 "PacketInfo", 1336 "HasIPv6PacketInfo", 1337 "IPv6PacketInfo", 1338 "HasOriginalDstAddress", 1339 "OriginalDstAddress", 1340 "SockErr", 1341 } 1342 } 1343 1344 func (c *ReceivableControlMessages) beforeSave() {} 1345 1346 // +checklocksignore 1347 func (c *ReceivableControlMessages) StateSave(stateSinkObject state.Sink) { 1348 c.beforeSave() 1349 var TimestampValue int64 1350 TimestampValue = c.saveTimestamp() 1351 stateSinkObject.SaveValue(0, TimestampValue) 1352 stateSinkObject.Save(1, &c.HasInq) 1353 stateSinkObject.Save(2, &c.Inq) 1354 stateSinkObject.Save(3, &c.HasTOS) 1355 stateSinkObject.Save(4, &c.TOS) 1356 stateSinkObject.Save(5, &c.HasTTL) 1357 stateSinkObject.Save(6, &c.TTL) 1358 stateSinkObject.Save(7, &c.HasHopLimit) 1359 stateSinkObject.Save(8, &c.HopLimit) 1360 stateSinkObject.Save(9, &c.HasTimestamp) 1361 stateSinkObject.Save(10, &c.HasTClass) 1362 stateSinkObject.Save(11, &c.TClass) 1363 stateSinkObject.Save(12, &c.HasIPPacketInfo) 1364 stateSinkObject.Save(13, &c.PacketInfo) 1365 stateSinkObject.Save(14, &c.HasIPv6PacketInfo) 1366 stateSinkObject.Save(15, &c.IPv6PacketInfo) 1367 stateSinkObject.Save(16, &c.HasOriginalDstAddress) 1368 stateSinkObject.Save(17, &c.OriginalDstAddress) 1369 stateSinkObject.Save(18, &c.SockErr) 1370 } 1371 1372 func (c *ReceivableControlMessages) afterLoad() {} 1373 1374 // +checklocksignore 1375 func (c *ReceivableControlMessages) StateLoad(stateSourceObject state.Source) { 1376 stateSourceObject.Load(1, &c.HasInq) 1377 stateSourceObject.Load(2, &c.Inq) 1378 stateSourceObject.Load(3, &c.HasTOS) 1379 stateSourceObject.Load(4, &c.TOS) 1380 stateSourceObject.Load(5, &c.HasTTL) 1381 stateSourceObject.Load(6, &c.TTL) 1382 stateSourceObject.Load(7, &c.HasHopLimit) 1383 stateSourceObject.Load(8, &c.HopLimit) 1384 stateSourceObject.Load(9, &c.HasTimestamp) 1385 stateSourceObject.Load(10, &c.HasTClass) 1386 stateSourceObject.Load(11, &c.TClass) 1387 stateSourceObject.Load(12, &c.HasIPPacketInfo) 1388 stateSourceObject.Load(13, &c.PacketInfo) 1389 stateSourceObject.Load(14, &c.HasIPv6PacketInfo) 1390 stateSourceObject.Load(15, &c.IPv6PacketInfo) 1391 stateSourceObject.Load(16, &c.HasOriginalDstAddress) 1392 stateSourceObject.Load(17, &c.OriginalDstAddress) 1393 stateSourceObject.Load(18, &c.SockErr) 1394 stateSourceObject.LoadValue(0, new(int64), func(y any) { c.loadTimestamp(y.(int64)) }) 1395 } 1396 1397 func (l *LinkPacketInfo) StateTypeName() string { 1398 return "pkg/tcpip.LinkPacketInfo" 1399 } 1400 1401 func (l *LinkPacketInfo) StateFields() []string { 1402 return []string{ 1403 "Protocol", 1404 "PktType", 1405 } 1406 } 1407 1408 func (l *LinkPacketInfo) beforeSave() {} 1409 1410 // +checklocksignore 1411 func (l *LinkPacketInfo) StateSave(stateSinkObject state.Sink) { 1412 l.beforeSave() 1413 stateSinkObject.Save(0, &l.Protocol) 1414 stateSinkObject.Save(1, &l.PktType) 1415 } 1416 1417 func (l *LinkPacketInfo) afterLoad() {} 1418 1419 // +checklocksignore 1420 func (l *LinkPacketInfo) StateLoad(stateSourceObject state.Source) { 1421 stateSourceObject.Load(0, &l.Protocol) 1422 stateSourceObject.Load(1, &l.PktType) 1423 } 1424 1425 func (f *ICMPv6Filter) StateTypeName() string { 1426 return "pkg/tcpip.ICMPv6Filter" 1427 } 1428 1429 func (f *ICMPv6Filter) StateFields() []string { 1430 return []string{ 1431 "DenyType", 1432 } 1433 } 1434 1435 func (f *ICMPv6Filter) beforeSave() {} 1436 1437 // +checklocksignore 1438 func (f *ICMPv6Filter) StateSave(stateSinkObject state.Sink) { 1439 f.beforeSave() 1440 stateSinkObject.Save(0, &f.DenyType) 1441 } 1442 1443 func (f *ICMPv6Filter) afterLoad() {} 1444 1445 // +checklocksignore 1446 func (f *ICMPv6Filter) StateLoad(stateSourceObject state.Source) { 1447 stateSourceObject.Load(0, &f.DenyType) 1448 } 1449 1450 func (l *LingerOption) StateTypeName() string { 1451 return "pkg/tcpip.LingerOption" 1452 } 1453 1454 func (l *LingerOption) StateFields() []string { 1455 return []string{ 1456 "Enabled", 1457 "Timeout", 1458 } 1459 } 1460 1461 func (l *LingerOption) beforeSave() {} 1462 1463 // +checklocksignore 1464 func (l *LingerOption) StateSave(stateSinkObject state.Sink) { 1465 l.beforeSave() 1466 stateSinkObject.Save(0, &l.Enabled) 1467 stateSinkObject.Save(1, &l.Timeout) 1468 } 1469 1470 func (l *LingerOption) afterLoad() {} 1471 1472 // +checklocksignore 1473 func (l *LingerOption) StateLoad(stateSourceObject state.Source) { 1474 stateSourceObject.Load(0, &l.Enabled) 1475 stateSourceObject.Load(1, &l.Timeout) 1476 } 1477 1478 func (i *IPPacketInfo) StateTypeName() string { 1479 return "pkg/tcpip.IPPacketInfo" 1480 } 1481 1482 func (i *IPPacketInfo) StateFields() []string { 1483 return []string{ 1484 "NIC", 1485 "LocalAddr", 1486 "DestinationAddr", 1487 } 1488 } 1489 1490 func (i *IPPacketInfo) beforeSave() {} 1491 1492 // +checklocksignore 1493 func (i *IPPacketInfo) StateSave(stateSinkObject state.Sink) { 1494 i.beforeSave() 1495 stateSinkObject.Save(0, &i.NIC) 1496 stateSinkObject.Save(1, &i.LocalAddr) 1497 stateSinkObject.Save(2, &i.DestinationAddr) 1498 } 1499 1500 func (i *IPPacketInfo) afterLoad() {} 1501 1502 // +checklocksignore 1503 func (i *IPPacketInfo) StateLoad(stateSourceObject state.Source) { 1504 stateSourceObject.Load(0, &i.NIC) 1505 stateSourceObject.Load(1, &i.LocalAddr) 1506 stateSourceObject.Load(2, &i.DestinationAddr) 1507 } 1508 1509 func (i *IPv6PacketInfo) StateTypeName() string { 1510 return "pkg/tcpip.IPv6PacketInfo" 1511 } 1512 1513 func (i *IPv6PacketInfo) StateFields() []string { 1514 return []string{ 1515 "Addr", 1516 "NIC", 1517 } 1518 } 1519 1520 func (i *IPv6PacketInfo) beforeSave() {} 1521 1522 // +checklocksignore 1523 func (i *IPv6PacketInfo) StateSave(stateSinkObject state.Sink) { 1524 i.beforeSave() 1525 stateSinkObject.Save(0, &i.Addr) 1526 stateSinkObject.Save(1, &i.NIC) 1527 } 1528 1529 func (i *IPv6PacketInfo) afterLoad() {} 1530 1531 // +checklocksignore 1532 func (i *IPv6PacketInfo) StateLoad(stateSourceObject state.Source) { 1533 stateSourceObject.Load(0, &i.Addr) 1534 stateSourceObject.Load(1, &i.NIC) 1535 } 1536 1537 func (s *StatCounter) StateTypeName() string { 1538 return "pkg/tcpip.StatCounter" 1539 } 1540 1541 func (s *StatCounter) StateFields() []string { 1542 return []string{ 1543 "count", 1544 } 1545 } 1546 1547 func (s *StatCounter) beforeSave() {} 1548 1549 // +checklocksignore 1550 func (s *StatCounter) StateSave(stateSinkObject state.Sink) { 1551 s.beforeSave() 1552 stateSinkObject.Save(0, &s.count) 1553 } 1554 1555 func (s *StatCounter) afterLoad() {} 1556 1557 // +checklocksignore 1558 func (s *StatCounter) StateLoad(stateSourceObject state.Source) { 1559 stateSourceObject.Load(0, &s.count) 1560 } 1561 1562 func (r *ReceiveErrors) StateTypeName() string { 1563 return "pkg/tcpip.ReceiveErrors" 1564 } 1565 1566 func (r *ReceiveErrors) StateFields() []string { 1567 return []string{ 1568 "ReceiveBufferOverflow", 1569 "MalformedPacketsReceived", 1570 "ClosedReceiver", 1571 "ChecksumErrors", 1572 } 1573 } 1574 1575 func (r *ReceiveErrors) beforeSave() {} 1576 1577 // +checklocksignore 1578 func (r *ReceiveErrors) StateSave(stateSinkObject state.Sink) { 1579 r.beforeSave() 1580 stateSinkObject.Save(0, &r.ReceiveBufferOverflow) 1581 stateSinkObject.Save(1, &r.MalformedPacketsReceived) 1582 stateSinkObject.Save(2, &r.ClosedReceiver) 1583 stateSinkObject.Save(3, &r.ChecksumErrors) 1584 } 1585 1586 func (r *ReceiveErrors) afterLoad() {} 1587 1588 // +checklocksignore 1589 func (r *ReceiveErrors) StateLoad(stateSourceObject state.Source) { 1590 stateSourceObject.Load(0, &r.ReceiveBufferOverflow) 1591 stateSourceObject.Load(1, &r.MalformedPacketsReceived) 1592 stateSourceObject.Load(2, &r.ClosedReceiver) 1593 stateSourceObject.Load(3, &r.ChecksumErrors) 1594 } 1595 1596 func (s *SendErrors) StateTypeName() string { 1597 return "pkg/tcpip.SendErrors" 1598 } 1599 1600 func (s *SendErrors) StateFields() []string { 1601 return []string{ 1602 "SendToNetworkFailed", 1603 "NoRoute", 1604 } 1605 } 1606 1607 func (s *SendErrors) beforeSave() {} 1608 1609 // +checklocksignore 1610 func (s *SendErrors) StateSave(stateSinkObject state.Sink) { 1611 s.beforeSave() 1612 stateSinkObject.Save(0, &s.SendToNetworkFailed) 1613 stateSinkObject.Save(1, &s.NoRoute) 1614 } 1615 1616 func (s *SendErrors) afterLoad() {} 1617 1618 // +checklocksignore 1619 func (s *SendErrors) StateLoad(stateSourceObject state.Source) { 1620 stateSourceObject.Load(0, &s.SendToNetworkFailed) 1621 stateSourceObject.Load(1, &s.NoRoute) 1622 } 1623 1624 func (r *ReadErrors) StateTypeName() string { 1625 return "pkg/tcpip.ReadErrors" 1626 } 1627 1628 func (r *ReadErrors) StateFields() []string { 1629 return []string{ 1630 "ReadClosed", 1631 "InvalidEndpointState", 1632 "NotConnected", 1633 } 1634 } 1635 1636 func (r *ReadErrors) beforeSave() {} 1637 1638 // +checklocksignore 1639 func (r *ReadErrors) StateSave(stateSinkObject state.Sink) { 1640 r.beforeSave() 1641 stateSinkObject.Save(0, &r.ReadClosed) 1642 stateSinkObject.Save(1, &r.InvalidEndpointState) 1643 stateSinkObject.Save(2, &r.NotConnected) 1644 } 1645 1646 func (r *ReadErrors) afterLoad() {} 1647 1648 // +checklocksignore 1649 func (r *ReadErrors) StateLoad(stateSourceObject state.Source) { 1650 stateSourceObject.Load(0, &r.ReadClosed) 1651 stateSourceObject.Load(1, &r.InvalidEndpointState) 1652 stateSourceObject.Load(2, &r.NotConnected) 1653 } 1654 1655 func (w *WriteErrors) StateTypeName() string { 1656 return "pkg/tcpip.WriteErrors" 1657 } 1658 1659 func (w *WriteErrors) StateFields() []string { 1660 return []string{ 1661 "WriteClosed", 1662 "InvalidEndpointState", 1663 "InvalidArgs", 1664 } 1665 } 1666 1667 func (w *WriteErrors) beforeSave() {} 1668 1669 // +checklocksignore 1670 func (w *WriteErrors) StateSave(stateSinkObject state.Sink) { 1671 w.beforeSave() 1672 stateSinkObject.Save(0, &w.WriteClosed) 1673 stateSinkObject.Save(1, &w.InvalidEndpointState) 1674 stateSinkObject.Save(2, &w.InvalidArgs) 1675 } 1676 1677 func (w *WriteErrors) afterLoad() {} 1678 1679 // +checklocksignore 1680 func (w *WriteErrors) StateLoad(stateSourceObject state.Source) { 1681 stateSourceObject.Load(0, &w.WriteClosed) 1682 stateSourceObject.Load(1, &w.InvalidEndpointState) 1683 stateSourceObject.Load(2, &w.InvalidArgs) 1684 } 1685 1686 func (src *TransportEndpointStats) StateTypeName() string { 1687 return "pkg/tcpip.TransportEndpointStats" 1688 } 1689 1690 func (src *TransportEndpointStats) StateFields() []string { 1691 return []string{ 1692 "PacketsReceived", 1693 "PacketsSent", 1694 "ReceiveErrors", 1695 "ReadErrors", 1696 "SendErrors", 1697 "WriteErrors", 1698 } 1699 } 1700 1701 func (src *TransportEndpointStats) beforeSave() {} 1702 1703 // +checklocksignore 1704 func (src *TransportEndpointStats) StateSave(stateSinkObject state.Sink) { 1705 src.beforeSave() 1706 stateSinkObject.Save(0, &src.PacketsReceived) 1707 stateSinkObject.Save(1, &src.PacketsSent) 1708 stateSinkObject.Save(2, &src.ReceiveErrors) 1709 stateSinkObject.Save(3, &src.ReadErrors) 1710 stateSinkObject.Save(4, &src.SendErrors) 1711 stateSinkObject.Save(5, &src.WriteErrors) 1712 } 1713 1714 func (src *TransportEndpointStats) afterLoad() {} 1715 1716 // +checklocksignore 1717 func (src *TransportEndpointStats) StateLoad(stateSourceObject state.Source) { 1718 stateSourceObject.Load(0, &src.PacketsReceived) 1719 stateSourceObject.Load(1, &src.PacketsSent) 1720 stateSourceObject.Load(2, &src.ReceiveErrors) 1721 stateSourceObject.Load(3, &src.ReadErrors) 1722 stateSourceObject.Load(4, &src.SendErrors) 1723 stateSourceObject.Load(5, &src.WriteErrors) 1724 } 1725 1726 func (a *AddressWithPrefix) StateTypeName() string { 1727 return "pkg/tcpip.AddressWithPrefix" 1728 } 1729 1730 func (a *AddressWithPrefix) StateFields() []string { 1731 return []string{ 1732 "Address", 1733 "PrefixLen", 1734 } 1735 } 1736 1737 func (a *AddressWithPrefix) beforeSave() {} 1738 1739 // +checklocksignore 1740 func (a *AddressWithPrefix) StateSave(stateSinkObject state.Sink) { 1741 a.beforeSave() 1742 stateSinkObject.Save(0, &a.Address) 1743 stateSinkObject.Save(1, &a.PrefixLen) 1744 } 1745 1746 func (a *AddressWithPrefix) afterLoad() {} 1747 1748 // +checklocksignore 1749 func (a *AddressWithPrefix) StateLoad(stateSourceObject state.Source) { 1750 stateSourceObject.Load(0, &a.Address) 1751 stateSourceObject.Load(1, &a.PrefixLen) 1752 } 1753 1754 func init() { 1755 state.Register((*ErrAborted)(nil)) 1756 state.Register((*ErrAddressFamilyNotSupported)(nil)) 1757 state.Register((*ErrAlreadyBound)(nil)) 1758 state.Register((*ErrAlreadyConnected)(nil)) 1759 state.Register((*ErrAlreadyConnecting)(nil)) 1760 state.Register((*ErrBadAddress)(nil)) 1761 state.Register((*ErrBadBuffer)(nil)) 1762 state.Register((*ErrBadLocalAddress)(nil)) 1763 state.Register((*ErrBroadcastDisabled)(nil)) 1764 state.Register((*ErrClosedForReceive)(nil)) 1765 state.Register((*ErrClosedForSend)(nil)) 1766 state.Register((*ErrConnectStarted)(nil)) 1767 state.Register((*ErrConnectionAborted)(nil)) 1768 state.Register((*ErrConnectionRefused)(nil)) 1769 state.Register((*ErrConnectionReset)(nil)) 1770 state.Register((*ErrDestinationRequired)(nil)) 1771 state.Register((*ErrDuplicateAddress)(nil)) 1772 state.Register((*ErrDuplicateNICID)(nil)) 1773 state.Register((*ErrInvalidEndpointState)(nil)) 1774 state.Register((*ErrInvalidOptionValue)(nil)) 1775 state.Register((*ErrInvalidPortRange)(nil)) 1776 state.Register((*ErrMalformedHeader)(nil)) 1777 state.Register((*ErrMessageTooLong)(nil)) 1778 state.Register((*ErrNetworkUnreachable)(nil)) 1779 state.Register((*ErrNoBufferSpace)(nil)) 1780 state.Register((*ErrNoPortAvailable)(nil)) 1781 state.Register((*ErrHostUnreachable)(nil)) 1782 state.Register((*ErrHostDown)(nil)) 1783 state.Register((*ErrNoNet)(nil)) 1784 state.Register((*ErrNoSuchFile)(nil)) 1785 state.Register((*ErrNotConnected)(nil)) 1786 state.Register((*ErrNotPermitted)(nil)) 1787 state.Register((*ErrNotSupported)(nil)) 1788 state.Register((*ErrPortInUse)(nil)) 1789 state.Register((*ErrQueueSizeNotSupported)(nil)) 1790 state.Register((*ErrTimeout)(nil)) 1791 state.Register((*ErrUnknownDevice)(nil)) 1792 state.Register((*ErrUnknownNICID)(nil)) 1793 state.Register((*ErrUnknownProtocol)(nil)) 1794 state.Register((*ErrUnknownProtocolOption)(nil)) 1795 state.Register((*ErrWouldBlock)(nil)) 1796 state.Register((*ErrMissingRequiredFields)(nil)) 1797 state.Register((*ErrMulticastInputCannotBeOutput)(nil)) 1798 state.Register((*sockErrorList)(nil)) 1799 state.Register((*sockErrorEntry)(nil)) 1800 state.Register((*SocketOptions)(nil)) 1801 state.Register((*LocalSockError)(nil)) 1802 state.Register((*SockError)(nil)) 1803 state.Register((*stdClock)(nil)) 1804 state.Register((*MonotonicTime)(nil)) 1805 state.Register((*Address)(nil)) 1806 state.Register((*AddressMask)(nil)) 1807 state.Register((*FullAddress)(nil)) 1808 state.Register((*SendableControlMessages)(nil)) 1809 state.Register((*ReceivableControlMessages)(nil)) 1810 state.Register((*LinkPacketInfo)(nil)) 1811 state.Register((*ICMPv6Filter)(nil)) 1812 state.Register((*LingerOption)(nil)) 1813 state.Register((*IPPacketInfo)(nil)) 1814 state.Register((*IPv6PacketInfo)(nil)) 1815 state.Register((*StatCounter)(nil)) 1816 state.Register((*ReceiveErrors)(nil)) 1817 state.Register((*SendErrors)(nil)) 1818 state.Register((*ReadErrors)(nil)) 1819 state.Register((*WriteErrors)(nil)) 1820 state.Register((*TransportEndpointStats)(nil)) 1821 state.Register((*AddressWithPrefix)(nil)) 1822 }