func (*endpoint) Capabilities() stack.LinkEndpointCapabilities {
	return stack.CapabilityChecksumOffload | stack.CapabilitySaveRestore | stack.CapabilityLoopback
}
Capabilities implements stack.LinkEndpoint.Capabilities. Loopback advertises
itself as supporting checksum offload, but in reality it's just omitted.
package loopback
import (
	"log"
	"github.com/brewlin/net-protocol/pkg/buffer"
	tcpip "github.com/brewlin/net-protocol/protocol"
	"github.com/brewlin/net-protocol/stack"
)
type endpoint struct {
	dispatcher stack.NetworkDispatcher
}
func New() tcpip.LinkEndpointID {
	return stack.RegisterLinkEndpoint(&endpoint{})
}
func (e *endpoint) Attach(dispatcher stack.NetworkDispatcher) {
	e.dispatcher = dispatcher
}
func (e *endpoint) IsAttached() bool {
	return e.dispatcher != nil
}
func (*endpoint) MTU() uint32 {
	return 65536
}