package
0.0.0-20240428053021-e691de28565f
Repository: https://github.com/sagernet/gvisor.git
Documentation: pkg.go.dev
# Functions
MakePacketFragmenter prepares the struct needed for packet fragmentation.
NewFragmentation creates a new Fragmentation.
# Variables
ErrFragmentConflict indicates that, during reassembly, some fragments are in conflict with one another.
ErrFragmentOverlap indicates that, during reassembly, a fragment overlaps with another one.
ErrInvalidArgs indicates to the caller that an invalid argument was provided.
# Structs
Fragmentation is the main structure that other modules of the stack should use to implement IP Fragmentation.
FragmentID is the identifier for a fragment.
PacketFragmenter is the book-keeping struct for packet fragmentation.
# Interfaces
TimeoutHandler is consulted if a packet reassembly has timed out.